Table PPR problem when trigger Outside
Hi, I have a Requirement that when i select BooleanCheckBox which is outside the table with autosubmit,i need to trigger the value to inside the Table column, But the Value is Not trigged,I think the problem with the partialTriggering ID because When i place both components in the same Column,working fine. Sample Code: tr:selectBooleanCheckbox label=RemoveALL binding=#{backing_first.removeAll} id=removeAll autoSubmit=true/ tr:table binding=#{backing_first.MyTable} id=MyTable tr:column tr:outputText value=backing_first.removeAll.value id=remove1 partialTriggers=removeAll/ /column ... /tr:table Please Suggest me how can rectify the Problem.. I have seen some of the posts but this requiremnt is reverse to that. Thanking You, Ramesh. -- View this message in context: http://www.nabble.com/Table-PPR-problem-when-trigger-Outside-tf4370599.html#a12457228 Sent from the MyFaces - Users mailing list archive at Nabble.com.
CommandLink in dataTabl
Hello, I am a newbie learning JSF while trying to meet deadlines on a JSF refactoring project. The docs forums have helped me quite a lot untill now when I seem to be facing a wierd problem. Here is the context : I have a dataTable and a commandLink on every line. The actionListener associated with this commandLink should only update some db information for the concerned record(and then redisplay the same page again). My problem is that when i click on _one_ link the actionListener is called for every link from the dataTable. It is just like had clicked _all_ the links!! very weird. (If I have 30 links displayed, I click one link and the actionListener is called 30 times.. for all 30 rows) Environement : app server : WebLogic 8.1 SP4 jsf implementation : SUN RI 1.1 tomahawk version : 1.1.1 (the only one working with weblogic 8.1) ---THE VIEW--- #adminLogging.jsp## h:form id=displayLogForm t:dataTable id=logs value=#{logSort.loggers} var=log binding=#{logSort.dataTable} sortColumn=#{logSort.sort} sortAscending=#{ logSort.ascending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=loggerName arrow=true h:outputText value=LoggerName / /t:commandSortHeader /f:facet h:outputText value=#{log.loggerName } / /h:column h:column f:facet name=header h:outputText value=Change Log Level / /f:facet h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer3}/ /h:column /t:dataTable /h:form ## ---BACKING BEAN--- public class LogSortHelper extends SortableList{ private HtmlDataTable dataTable; public void modifyLogOnServer3(javax.faces.event.ActionEvent event) { LoggerBean row = (LoggerBean) dataTable.getRowData(); String attributeName = row.getLoggerName(); logger.debug(atribute Name:+attributeName+|); } ... } ---LOGGERBEAN--- public class LoggerBean { ... private String loggerName ; } in faces-config.xml, logSort = LogSortHelper Further on , I've tryed to get rid of the component binding stuff... (which in fact I only needed for the dataTable.getRowData() method) . So i did the following modifications : (http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters) ---VIEW--- h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer4} f:param name=logDebugId value=#{log.loggerName}/ /h:commandLink ---BACKING BEAN--- public String modifyLogOnServer4(javax.faces.event.ActionEvent event) { FacesContext context = FacesContext.getCurrentInstance(); Map map = context.getExternalContext().getRequestParameterMap(); String attributeName = (String) map.get(logDebugId); } Now I have my actionListener called 30 times... but for the same link( not anymore for all the links in the dataTable, but for the same link... 30 times) And then something else : I am having inconsistent behaviour when changing from commandButton to commandLink... IE : using commandButton my parameter is not passed to the backing bean.(with commandLink I see params in the backing bean) Anybody got any solutions? Regards, Radu Milos -- View this message in context: http://www.nabble.com/CommandLink-in-dataTabl-tf4370964.html#a12458281 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: CommandLink in dataTabl
Hi Radu, you've run into a compatibility problem between Sun RI 1.1 and Tomahawk, both in earlier versions. An upgrade to the latest 1.1 version of both libraries should help! regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: Hello, I am a newbie learning JSF while trying to meet deadlines on a JSF refactoring project. The docs forums have helped me quite a lot untill now when I seem to be facing a wierd problem. Here is the context : I have a dataTable and a commandLink on every line. The actionListener associated with this commandLink should only update some db information for the concerned record(and then redisplay the same page again). My problem is that when i click on _one_ link the actionListener is called for every link from the dataTable. It is just like had clicked _all_ the links!! very weird. (If I have 30 links displayed, I click one link and the actionListener is called 30 times.. for all 30 rows) Environement : app server : WebLogic 8.1 SP4 jsf implementation : SUN RI 1.1 tomahawk version : 1.1.1 (the only one working with weblogic 8.1) ---THE VIEW--- #adminLogging.jsp## h:form id=displayLogForm t:dataTable id=logs value=#{logSort.loggers} var=log binding=#{logSort.dataTable} sortColumn=#{logSort.sort} sortAscending=#{ logSort.ascending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=loggerName arrow=true h:outputText value=LoggerName / /t:commandSortHeader /f:facet h:outputText value=#{log.loggerName } / /h:column h:column f:facet name=header h:outputText value=Change Log Level / /f:facet h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer3}/ /h:column /t:dataTable /h:form ## ---BACKING BEAN--- public class LogSortHelper extends SortableList{ private HtmlDataTable dataTable; public void modifyLogOnServer3(javax.faces.event.ActionEvent event) { LoggerBean row = (LoggerBean) dataTable.getRowData(); String attributeName = row.getLoggerName(); logger.debug(atribute Name:+attributeName+|); } ... } ---LOGGERBEAN--- public class LoggerBean { ... private String loggerName ; } in faces-config.xml, logSort = LogSortHelper Further on , I've tryed to get rid of the component binding stuff... (which in fact I only needed for the dataTable.getRowData() method) . So i did the following modifications : (http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters) ---VIEW--- h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer4} f:param name=logDebugId value=#{log.loggerName}/ /h:commandLink ---BACKING BEAN--- public String modifyLogOnServer4(javax.faces.event.ActionEvent event) { FacesContext context = FacesContext.getCurrentInstance(); Map map = context.getExternalContext().getRequestParameterMap(); String attributeName = (String) map.get(logDebugId); } Now I have my actionListener called 30 times... but for the same link( not anymore for all the links in the dataTable, but for the same link... 30 times) And then something else : I am having inconsistent behaviour when changing from commandButton to commandLink... IE : using commandButton my parameter is not passed to the backing bean.(with commandLink I see params in the backing bean) Anybody got any solutions? Regards, Radu Milos -- View this message in context: http://www.nabble.com/CommandLink-in-dataTabl-tf4370964.html#a12458281 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Why so many components?
Hello, I know this use to be a obvious choice, but because I am a newcomer in the MyFaces world, what answer I would give to my manager if he ask me why am I using so many components? Now, following advices, I am planning to use MyFaces + Trinidad + Tomahawk + Facelets + Ajax4JSF and maybe Seam. I know each of them provide different resources, but is there a couple or three of them that could give me like 90% of all my requirements need? Thank you in advance. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
Re: Table PPR problem when trigger Outside
Have you by any chanсe tried 'partialTriggers=::removeAll'? tr:table is NamingContainer, so partialTriggers must be of special form when you refer components outside it from one of it's columns (or components inside tr:table from outer ones). Hi, I have a Requirement that when i select BooleanCheckBox which is outside the table with autosubmit,i need to trigger the value to inside the Table column, But the Value is Not trigged,I think the problem with the partialTriggering ID because When i place both components in the same Column,working fine. Sample Code: tr:selectBooleanCheckbox label=RemoveALL binding=#{backing_first.removeAll} id=removeAll autoSubmit=true/ tr:table binding=#{backing_first.MyTable} id=MyTable tr:column tr:outputText value=backing_first.removeAll.value id=remove1 partialTriggers=removeAll/ /column ... /tr:table Please Suggest me how can rectify the Problem.. I have seen some of the posts but this requiremnt is reverse to that. Thanking You, Ramesh. -- View this message in context: http://www.nabble.com/Table-PPR-problem-when-trigger-Outside-tf4370599.html#a12457228 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: CommandLink in dataTabl
First, thanks for the interest. Problem is that with WebLogic 8.1(this is my constrain) I am stuck to sun RI 1.1 and tomahawk 1.1.1 I've tryed the other versions of tomahawk (from 1.1.2 to 1.1.6) and I couldn't get them working. Radu Martin Marinschek wrote: Hi Radu, you've run into a compatibility problem between Sun RI 1.1 and Tomahawk, both in earlier versions. An upgrade to the latest 1.1 version of both libraries should help! regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: Hello, I am a newbie learning JSF while trying to meet deadlines on a JSF refactoring project. The docs forums have helped me quite a lot untill now when I seem to be facing a wierd problem. Here is the context : I have a dataTable and a commandLink on every line. The actionListener associated with this commandLink should only update some db information for the concerned record(and then redisplay the same page again). My problem is that when i click on _one_ link the actionListener is called for every link from the dataTable. It is just like had clicked _all_ the links!! very weird. (If I have 30 links displayed, I click one link and the actionListener is called 30 times.. for all 30 rows) Environement : app server : WebLogic 8.1 SP4 jsf implementation : SUN RI 1.1 tomahawk version : 1.1.1 (the only one working with weblogic 8.1) ---THE VIEW--- #adminLogging.jsp## h:form id=displayLogForm t:dataTable id=logs value=#{logSort.loggers} var=log binding=#{logSort.dataTable} sortColumn=#{logSort.sort} sortAscending=#{ logSort.ascending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=loggerName arrow=true h:outputText value=LoggerName / /t:commandSortHeader /f:facet h:outputText value=#{log.loggerName } / /h:column h:column f:facet name=header h:outputText value=Change Log Level / /f:facet h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer3}/ /h:column /t:dataTable /h:form ## ---BACKING BEAN--- public class LogSortHelper extends SortableList{ private HtmlDataTable dataTable; public void modifyLogOnServer3(javax.faces.event.ActionEvent event) { LoggerBean row = (LoggerBean) dataTable.getRowData(); String attributeName = row.getLoggerName(); logger.debug(atribute Name:+attributeName+|); } ... } ---LOGGERBEAN--- public class LoggerBean { ... private String loggerName ; } in faces-config.xml, logSort = LogSortHelper Further on , I've tryed to get rid of the component binding stuff... (which in fact I only needed for the dataTable.getRowData() method) . So i did the following modifications : (http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters) ---VIEW--- h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer4} f:param name=logDebugId value=#{log.loggerName}/ /h:commandLink ---BACKING BEAN--- public String modifyLogOnServer4(javax.faces.event.ActionEvent event) { FacesContext context = FacesContext.getCurrentInstance(); Map map = context.getExternalContext().getRequestParameterMap(); String attributeName = (String) map.get(logDebugId); } Now I have my actionListener called 30 times... but for the same link( not anymore for all the links in the dataTable, but for the same link... 30 times) And then something else : I am having inconsistent behaviour when changing from commandButton to commandLink... IE : using commandButton my parameter is not passed to the backing bean.(with commandLink I see params in the backing bean) Anybody got any solutions? Regards, Radu Milos -- View this message in context: http://www.nabble.com/CommandLink-in-dataTabl-tf4370964.html#a12458281 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- View this message in context: http://www.nabble.com/CommandLink-in-dataTabl-tf4370964.html#a12458540 Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: CommandLink in dataTabl
Hi Radu, Not sure why this problem exists, however a quick way to get rid of this could be passing a parameter (f:param) along with the command link; get this parameter in the action listener and then perform the necessary operation. ~Sandeep -Original Message- From: radu_milos [mailto:[EMAIL PROTECTED] Sent: Monday, September 03, 2007 2:55 PM To: users@myfaces.apache.org Subject: Re: CommandLink in dataTabl First, thanks for the interest. Problem is that with WebLogic 8.1(this is my constrain) I am stuck to sun RI 1.1 and tomahawk 1.1.1 I've tryed the other versions of tomahawk (from 1.1.2 to 1.1.6) and I couldn't get them working. Radu Martin Marinschek wrote: Hi Radu, you've run into a compatibility problem between Sun RI 1.1 and Tomahawk, both in earlier versions. An upgrade to the latest 1.1 version of both libraries should help! regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: Hello, I am a newbie learning JSF while trying to meet deadlines on a JSF refactoring project. The docs forums have helped me quite a lot untill now when I seem to be facing a wierd problem. Here is the context : I have a dataTable and a commandLink on every line. The actionListener associated with this commandLink should only update some db information for the concerned record(and then redisplay the same page again). My problem is that when i click on _one_ link the actionListener is called for every link from the dataTable. It is just like had clicked _all_ the links!! very weird. (If I have 30 links displayed, I click one link and the actionListener is called 30 times.. for all 30 rows) Environement : app server : WebLogic 8.1 SP4 jsf implementation : SUN RI 1.1 tomahawk version : 1.1.1 (the only one working with weblogic 8.1) ---THE VIEW--- #adminLogging.jsp### ### h:form id=displayLogForm t:dataTable id=logs value=#{logSort.loggers} var=log binding=#{logSort.dataTable} sortColumn=#{logSort.sort} sortAscending=#{ logSort.ascending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=loggerName arrow=true h:outputText value=LoggerName / /t:commandSortHeader /f:facet h:outputText value=#{log.loggerName } / /h:column h:column f:facet name=header h:outputText value=Change Log Level / /f:facet h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer3}/ /h:column /t:dataTable /h:form ## ---BACKING BEAN--- public class LogSortHelper extends SortableList{ private HtmlDataTable dataTable; public void modifyLogOnServer3(javax.faces.event.ActionEvent event) { LoggerBean row = (LoggerBean) dataTable.getRowData(); String attributeName = row.getLoggerName(); logger.debug(atribute Name:+attributeName+|); } ... } ---LOGGERBEAN--- public class LoggerBean { ... private String loggerName ; } in faces-config.xml, logSort = LogSortHelper Further on , I've tryed to get rid of the component binding stuff... (which in fact I only needed for the dataTable.getRowData() method) . So i did the following modifications : (http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters ) ---VIEW--- h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer4} f:param name=logDebugId value=#{log.loggerName}/ /h:commandLink ---BACKING BEAN--- public String modifyLogOnServer4(javax.faces.event.ActionEvent event) { FacesContext context = FacesContext.getCurrentInstance(); Map map = context.getExternalContext().getRequestParameterMap(); String attributeName = (String) map.get(logDebugId); } Now I have my actionListener called 30 times... but for the same link( not anymore for all the links in the dataTable, but for the same link... 30 times) And then something else : I am having inconsistent behaviour when changing from commandButton to commandLink... IE : using commandButton my parameter is not passed to the backing bean.(with commandLink I see params in the backing bean) Anybody got any solutions? Regards, Radu Milos -- View this message in context: http://www.nabble.com/CommandLink-in-dataTabl-tf4370964.html#a12458281 Sent from the MyFaces - Users mailing list archive at Nabble.com. --
Re: CommandLink in dataTabl
what where the problems with these other versions? We should probably better fix these... regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: First, thanks for the interest. Problem is that with WebLogic 8.1(this is my constrain) I am stuck to sun RI 1.1 and tomahawk 1.1.1 I've tryed the other versions of tomahawk (from 1.1.2 to 1.1.6) and I couldn't get them working. Radu Martin Marinschek wrote: Hi Radu, you've run into a compatibility problem between Sun RI 1.1 and Tomahawk, both in earlier versions. An upgrade to the latest 1.1 version of both libraries should help! regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: Hello, I am a newbie learning JSF while trying to meet deadlines on a JSF refactoring project. The docs forums have helped me quite a lot untill now when I seem to be facing a wierd problem. Here is the context : I have a dataTable and a commandLink on every line. The actionListener associated with this commandLink should only update some db information for the concerned record(and then redisplay the same page again). My problem is that when i click on _one_ link the actionListener is called for every link from the dataTable. It is just like had clicked _all_ the links!! very weird. (If I have 30 links displayed, I click one link and the actionListener is called 30 times.. for all 30 rows) Environement : app server : WebLogic 8.1 SP4 jsf implementation : SUN RI 1.1 tomahawk version : 1.1.1 (the only one working with weblogic 8.1) ---THE VIEW--- #adminLogging.jsp## h:form id=displayLogForm t:dataTable id=logs value=#{logSort.loggers} var=log binding=#{logSort.dataTable} sortColumn=#{logSort.sort} sortAscending=#{ logSort.ascending} preserveSort=true h:column f:facet name=header t:commandSortHeader columnName=loggerName arrow=true h:outputText value=LoggerName / /t:commandSortHeader /f:facet h:outputText value=#{log.loggerName } / /h:column h:column f:facet name=header h:outputText value=Change Log Level / /f:facet h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer3}/ /h:column /t:dataTable /h:form ## ---BACKING BEAN--- public class LogSortHelper extends SortableList{ private HtmlDataTable dataTable; public void modifyLogOnServer3(javax.faces.event.ActionEvent event) { LoggerBean row = (LoggerBean) dataTable.getRowData(); String attributeName = row.getLoggerName(); logger.debug(atribute Name:+attributeName+|); } ... } ---LOGGERBEAN--- public class LoggerBean { ... private String loggerName ; } in faces-config.xml, logSort = LogSortHelper Further on , I've tryed to get rid of the component binding stuff... (which in fact I only needed for the dataTable.getRowData() method) . So i did the following modifications : (http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters) ---VIEW--- h:commandLink value=Debug3 actionListener=#{logSort.modifyLogOnServer4} f:param name=logDebugId value=#{log.loggerName}/ /h:commandLink ---BACKING BEAN--- public String modifyLogOnServer4(javax.faces.event.ActionEvent event) { FacesContext context = FacesContext.getCurrentInstance(); Map map = context.getExternalContext().getRequestParameterMap(); String attributeName = (String) map.get(logDebugId); } Now I have my actionListener called 30 times... but for the same link( not anymore for all the links in the dataTable, but for the same link... 30 times) And then something else : I am having inconsistent behaviour when changing from commandButton to commandLink... IE : using commandButton my parameter is not passed to the backing bean.(with commandLink I see params in the backing bean) Anybody got any solutions? Regards, Radu Milos -- View this message in context: http://www.nabble.com/CommandLink-in-dataTabl-tf4370964.html#a12458281 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces -- View this message in context: http://www.nabble.com/CommandLink-in-dataTabl-tf4370964.html#a12458540 Sent from the MyFaces - Users mailing list archive at
[Trinidad] Possible to implement app specific view handler under Trinidad?
Dear User and Devs, My project use Facelets and Trinidad. Currently, the facelets ViewHandler is configure using the trinidad's context param in web.xml (org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER). So everything goes smoothly, but now, I would like to implement our app specific ViewHanlder (to handle authorization stuff), how can I add my ViewHandler into picture?? Env: Trinidad 1.2.1 / Faclets 1.1.12 / JSF 1.2 RI Best regards, Zarick
Security role question
Hi everyone, I'm trying to implement passive security on my application. Let me explain, although a user has logged in the application there are many pages where he couldn't enter (url navigation). I have worked with Struts and the way to manage the problem is setting a role in action definition. Then when you invoke this action, ControllerManager (method call previous to every action) checks if logged user can access to this specific page (DB relations user/role/page). What I want is to prevent logged user to url navigation. Is there any way to implements this behaviour with JSF tech? I think it is a basic functionality. Thanks so much!!! Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! . Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html
Re: Table PPR problem when trigger Outside
Hi, Yes,I tried with 'partialTriggers=MyTable:removeAll' eventhough no Effect. Please let me out from this issue. Thanks for Reply... Vadim Dmitriev wrote: Have you by any chanсe tried 'partialTriggers=::removeAll'? tr:table is NamingContainer, so partialTriggers must be of special form when you refer components outside it from one of it's columns (or components inside tr:table from outer ones). Hi, I have a Requirement that when i select BooleanCheckBox which is outside the table with autosubmit,i need to trigger the value to inside the Table column, But the Value is Not trigged,I think the problem with the partialTriggering ID because When i place both components in the same Column,working fine. Sample Code: tr:selectBooleanCheckbox label=RemoveALL binding=#{backing_first.removeAll} id=removeAll autoSubmit=true/ tr:table binding=#{backing_first.MyTable} id=MyTable tr:column tr:outputText value=backing_first.removeAll.value id=remove1 partialTriggers=removeAll/ /column ... /tr:table Please Suggest me how can rectify the Problem.. I have seen some of the posts but this requiremnt is reverse to that. Thanking You, Ramesh. -- View this message in context: http://www.nabble.com/Table-PPR-problem-when-trigger-Outside-tf4370599.html#a12457228 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Table-PPR-problem-when-trigger-Outside-tf4370599.html#a12459529 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Documentation for designers and programmers with different components?
Hello, If you as architect will provide a documentation to the designers and programmers, with the different components (eg. Trinidad + Facelets + Tomahawk + Ajax4JSF): 1. Do you gather the information of all the graphical components and explain each of them or only provide the link where to find the components? 2. How do you describe the components needed for each requirement, for example, when a web page contain a grid and two bottoms, how to define which component of which libraries of components (Myfaces) to use (e.g. Grid from Trinidad with the tagname and example, bottom from Facelets or Ajax4JSF with the tagname and example)? Thank you in advance for any thoughts we can share. Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/
Re: Table PPR problem when trigger Outside
'partialTriggers=MyTable:removeAll' will certainly have no effect in code snippet you provided. If you refer checkbox just outside of tr:table from that table's column, then trigger component refid should begin with ::, not some other id. Hi, Yes,I tried with 'partialTriggers=MyTable:removeAll' eventhough no Effect. Please let me out from this issue. Thanks for Reply... Vadim Dmitriev wrote: Have you by any chanсe tried 'partialTriggers=::removeAll'? tr:table is NamingContainer, so partialTriggers must be of special form when you refer components outside it from one of it's columns (or components inside tr:table from outer ones). Hi, I have a Requirement that when i select BooleanCheckBox which is outside the table with autosubmit,i need to trigger the value to inside the Table column, But the Value is Not trigged,I think the problem with the partialTriggering ID because When i place both components in the same Column,working fine. Sample Code: tr:selectBooleanCheckbox label=RemoveALL binding=#{backing_first.removeAll} id=removeAll autoSubmit=true/ tr:table binding=#{backing_first.MyTable} id=MyTable tr:column tr:outputText value=backing_first.removeAll.value id=remove1 partialTriggers=removeAll/ /column ... /tr:table Please Suggest me how can rectify the Problem.. I have seen some of the posts but this requiremnt is reverse to that. Thanking You, Ramesh. -- View this message in context: http://www.nabble.com/Table-PPR-problem-when-trigger-Outside-tf4370599.html#a12457228 Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/Table-PPR-problem-when-trigger-Outside-tf4370599.html#a12459529 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Why so many components?
This might help in your argument: http://www.jsfmatrix.net/ -= Gregg =- distillingweb wrote: Hello, I know this use to be a obvious choice, but because I am a newcomer in the MyFaces world, what answer I would give to my manager if he ask me why am I using so many components? Now, following advices, I am planning to use MyFaces + Trinidad + Tomahawk + Facelets + Ajax4JSF and maybe Seam. I know each of them provide different resources, but is there a couple or three of them that could give me like 90% of all my requirements need? Thank you in advance. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. signature.asc Description: OpenPGP digital signature
get name of the parent TreeNode
Hi, is there a possibility to get the name of a parentTreeNode? e.g.: docu = new TreeNodeBase(simpleNode, Documentation, false); faq = new treeNodeNavigation(navNode, FAQ, false, faq); userManual = new treeNodeNavigation(navNode, User Manual, false, userManual); docu.getChildren().add(faq); docu.getChildren().add(userManual); Something like this:faq.getParentName(); Cheers Wolfgang
Re: Why so many components?
Hello Gregg, Thank you but I have already seen this matrix. I would like maybe one sentence to communicate this decision about the components. However, agree with you. The matrix is very explanatory by itself. Regards. - Original Message From: Gregg Leichtman [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, September 3, 2007 12:47:49 PM Subject: Re: Why so many components? This might help in your argument: http://www.jsfmatrix.net/ -= Gregg =- distillingweb wrote: Hello, I know this use to be a obvious choice, but because I am a newcomer in the MyFaces world, what answer I would give to my manager if he ask me why am I using so many components? Now, following advices, I am planning to use MyFaces + Trinidad + Tomahawk + Facelets + Ajax4JSF and maybe Seam. I know each of them provide different resources, but is there a couple or three of them that could give me like 90% of all my requirements need? Thank you in advance. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/
Re: CommandLink in dataTabl
Being stuck with WebLogic 8.1 unfortunatelly means I am stuck with java 1.4 :( this is why I am using sun RI and tomahawk 1.1.1 However, retried again tomahawk 1.1.6 and got an incompatible tld error : /startPage.jsp(3): Could not parse deployment descriptor: java.io.IOException: cannot resolve 'http://myfaces.apache.org/tomahawk' into a valid tag library probably occurred due to an error in /startPage.jsp line 3: %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t % mybe some log from the weblogic server could bring some light : weblogic.servlet.jsp.JspException: (line 3): Could not parse deployment descriptor: java.io.IOException: cannot resolve 'http://myfaces.apache .org/tomahawk' into a valid tag library at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:712) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5067) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4891) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4737) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2147) at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1933) at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1806) at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963) at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106) at weblogic.servlet.jsp.JspParser.parse(JspParser.java:234) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:388) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) Radu Martin Marinschek wrote: what where the problems with these other versions? We should probably better fix these... regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: First, thanks for the interest. Problem is that with WebLogic 8.1(this is my constrain) I am stuck to sun RI 1.1 and tomahawk 1.1.1 I've tryed the other versions of tomahawk (from 1.1.2 to 1.1.6) and I couldn't get them working. Radu Martin Marinschek wrote: Hi Radu, you've run into a compatibility problem between Sun RI 1.1 and Tomahawk, both in earlier versions. An upgrade to the latest 1.1 version of both libraries should help! regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: Hello, I am a newbie learning JSF while trying to meet deadlines on a JSF refactoring project. The docs forums have helped me quite a lot untill now when I seem to be facing a wierd problem. Here is the context : I have a dataTable and a commandLink on every line. The actionListener associated with this commandLink should only update some db information for the concerned record(and then redisplay the same page again). My problem is that when i click on _one_ link the actionListener is called for every link from the dataTable. It is just like had clicked _all_ the links!! very weird. (If I have 30 links displayed, I
Re: get name of the parent TreeNode
Hi Wolfgang, I'd recommend extending TreeNodeBase to get the parent node name. You could try adding a parent-attribute to the implementation and your own adder-methods to add child elements. Cheers, Christopher Wolfgang schrieb: Hi, is there a possibility to get the name of a parentTreeNode? e.g.: docu = new TreeNodeBase(simpleNode, Documentation, false); faq = new treeNodeNavigation(navNode, FAQ, false, faq); userManual = new treeNodeNavigation(navNode, User Manual, false, userManual); docu.getChildren().add(faq); docu.getChildren().add(userManual); Something like this:faq.getParentName(); Cheers Wolfgang
[Trinidad] tr:messages - EL expressions in components' labels are not evaluated
Hi. tr:messages by default outputs messages in form label - massage. In my application I actively use EL expressions in components labels. Problem is that these labels got printed by tr:messages like this EL expressions are simple strings. For example #{resourceBundle['some.label']} - value required instead of Some label - value required. I tried different properties files locales/faces-config locale configuration and somehow it began to work. When i was searching for exact step that managed to fix that error, i broke it again and now it doesn't work at all. Have anybody experienced such problems? Maybe I miss some required configuration? Thanks.
Re: Trinidad 1.2.1: SelectOrderShuttle leading/trailingDescShown Fails For Me
I have found a bug in the generated _javascript_ for the Select*Shuttle components. A patch follows: TrShuttleProxy._getDescArray = function(listName) { // var descArray = window[listName.replace(':','_') + '_desc']; var descArray = window[listName.replace(/:/g,'_') + '_desc']; // gsl fix return descArray; } where listName is content:shuttle1:leading. The problem is that the listName is not using a global replace; therefore only the first ':' is being replaced. This worked fine in ADF Faces before porting to Trinidad where the listName was just "shuttle1:leading". Note, however, that Trinidad now adds an additional "content" prefix to the generated inline _javascript_ variables: content_shuttle1_leading_desc=new Array('The First Item Desc', 'The Second Item Desc', 'The Third Item Desc',''); content_shuttle1_trailing_desc=new Array(''); This means that a global replace needs to be done to create the proper variable name for matching in the _javascript_ code. I will report this on Jira for the Trinidad project. I don't have access to the latest snapshots. The last one I see is from July 11th at: http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/trinidad/trinidad-impl/1.2.1-SNAPSHOT/ If this has been fixed already, then please clear my bug report which should have the side benefit of letting people know that the bug has been found and fixed already. -= Gregg =- Gregg Leichtman wrote: I am trying to get the leadingDescShown and trailingDescShown attributes to work for the Trinidad v1.2.1 SelectOrderShuttle. I have the shuttle working for everything except for displaying the description of a selected item in the textarea below the leading or trailing shuttle. I'm running under Linux and Eclipse 3.3 Europa using J2EE5 with JSF 1.2 and Tiles 2.0.4. I have a tile as follows: %@ taglib uri="http://java.sun.com/jsf/core" prefix="f" % %@ taglib uri="http://java.sun.com/jsf/html" prefix="h" % %@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" % %@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" % %@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"% tr:form tr:panelGroupLayout layout="vertical" f:facet name="separator" tr:separator / /f:facet tr:messages/ tr:selectOrderShuttle id="shuttle1" label="Selected Values" leadingHeader="Available values:" leadingDescShown="true" trailingHeader="Selected values:" trailingDescShown="true" binding="#{editor.component}" valueChangeListener="#{list.valueChanged}" value="#{list.stringArray}" tr:selectItem shortDesc="The First Item Desc" longDesc="" label="First" value="foo"/ tr:selectItem shortDesc="The Second Item Desc" longDesc="" label="Second" value="bar"/ tr:selectItem shortDesc="The Third Item Desc" longDesc="" label="Third" value="baz"/ /tr:selectOrderShuttle tr:message for=""/ tr:commandButton text="Submit"/ /tr:panelGroupLayout /tr:form The layout page uses f:view wrapping trh:html, trh:head and trh:body. The trh:body element wraps one of several subviews which wrap several tiles one of which is the above tile. An excerpt from the generated page looks like this: ... form id="content:j_id_jsp_709084578_0pc4" name="content:j_id_jsp_709084578_0pc4" style="margin:0px" method="POST" action=""!--Start: org.apache.myfaces.trinidad.Panel["j_id_jsp_709084578_1pc4"]--div!--Start: org.apache.myfaces.trinidad.Messages["j_id_jsp_709084578_3pc4"]--span id="content:j_id_jsp_709084578_3pc4"/spandiv!--Start: org.apache.myfaces.trinidad.Object["j_id_jsp_709084578_2pc4"]-- hr class="af_separator" /divscriptvar _shuttle_no_items='There are no items to move.';var _shuttle_no_items_selected='Please select the items to move first.';/script!--Start: org.apache.myfaces.trinidad.SelectOrder["shuttle1"]--table cellpadding="0" cellspacing="0" border="0" width="10%" summary="" id="content:shuttle1" class="af_selectManyShuttle"tr td class="x9u" valign="bottom"Available values:/td td/td td class="x9u" valign="bottom"Selected values:/td /trtr td!--Start: org.apache.myfaces.trinidad.SelectOrder["shuttle1"]--table class="af_selectOrderShuttle_box" style="width:100%" cellpadding="0" cellspacing="0" border="0" summary=""tbodytr td class="af_selectOrderShuttle_box-top-start"/td td class="af_selectOrderShuttle_box-top"/td td class="af_selectOrderShuttle_box-top-end"/td /trtr td class="af_selectOrderShuttle_box-start"/td
Hi All ,Is it possibility Pipe(|) or Divider in DataScroller Pagination.....
Hi Folks, I am new to Jsf / Myfaces. is there possibility to get the Pipe or Divider in DataScroller? i am using datascroller in that scroller i want to use pipe(|) symbol. in jsf/myfaces how to implement that. If any body know the solution for this plz send rep as soon as possible Now onto my question..I would like to have a divider (|), but I don't know how to implement it. I know it is possible to do a border only on one side, but then one always ends up after the Next button. Is there any way to do this? Thanks! i am using this attribute in the datascroller paginatorColumnClass=pipe .pipe{ background-image:url(../images/divider.gif); background-repeat:repeat-y; } But it not a correct approach and it willn't working properly e.g.: Like such type of pipe symbol(|) i want to use in between those number. 1 | 2 | 3 | 4| 5 | So plz Kindly response my request. -- View this message in context: http://www.nabble.com/Hi-All-%2CIs-it-possibility-Pipe%28%7C%29-or-Divider-in-DataScroller-Pagination.-tf4372197.html#a12461710 Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: Security role question
I had the same problem, and my solution was to use plain jsp means for this. I wrote a custom pagePermission Tag, which is included in every protected page. The necessary data (which permission should be checked) is given to the tag via EL expressions. The Tag then checks the permission, and throws an exception if the user has no permission. The exception is handled by a custom error handling mechanism (although one could also use then ew error handling from myfaces 1.2.1 snapshots) Note, however, that this solution has a philosophy problem: Permissions are treated like visual components. For my use case, however, the simplicity of the solution outweighs this. If there are better solutions around, I'd also be interested in alternatives. Thomas Angel Miralles Arevalo [EMAIL PROTECTED] schrieb am 03.09.2007 12:16:43: Hi everyone, I'm trying to implement passive security on my application. Let me explain, although a user has logged in the application there are many pages where he couldn't enter (url navigation). I have worked with Struts and the way to manage the problem is setting a role in action definition. Then when you invoke this action, ControllerManager (method call previous to every action) checks if logged user can access to this specific page (DB relations user/role/page). What I want is to prevent logged user to url navigation. Is there any way to implements this behaviour with JSF tech? I think it is a basic functionality. Thanks so much!!! Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! . Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .
[Trinidad] tr:messages - EL expressions in components' labels are not evaluated
Small follow-up: seems that labels are displayed correctly while client-side validation processes errors. When server-side validation kicks in - tr:messages labels turn to EL Hi. tr:messages by default outputs messages in form label - massage. In my application I actively use EL expressions in components labels. Problem is that these labels got printed by tr:messages like this EL expressions are simple strings. For example #{resourceBundle['some.label']} - value required instead of Some label - value required. I tried different properties files locales/faces-config locale configuration and somehow it began to work. When i was searching for exact step that managed to fix that error, i broke it again and now it doesn't work at all. Have anybody experienced such problems? Maybe I miss some required configuration? Thanks.
[Trinidad] chart component in a h:datatable leads to javax.faces.el.PropertyNotFoundException - Base is null:
Hi, I am trying to use the tr:chart component inside a h:datatable But it gives an exception like this: javax.faces.el.PropertyNotFoundException: Base is null: campaign at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBin dingImpl.java:463) at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:25 1) at org.apache.myfaces.application.ApplicationImpl.createComponent(Applicati onImpl.java:447) at javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag .java:881) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:768) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:472) at org.apache.myfaces.trinidad.webapp.UIXComponentTag.doStartTag(UIXCompone ntTag.java:102) The following jsf code has been used: ... h:form id=campaignform h:dataTable headerClass=standardtable-header-left rowClasses=standardtable-row-1,standardtable-row-1 var=campaign value=#{IndexChartBean.campaigns} h:column f:facet name=header h:outputText value=#{messages.chartLabel}/ /f:facet tr:outputText value=#{campaign.campaignChart.value.title}/ tr:outputText value=#{campaign.campaignChart.chart.type}/ tr:chart id=chart YMajorGridLineCount=3 value=#{campaign.campaignChart.value} inlineStyle=width:680px; height:120px; binding=#{campaign.campaignChart.chart}/ /h:column /h:dataTable /h:form ... If I remove the tr:chart part, the page works fine and the tr:outputText elements inserted for test are shown correctly in the table. I am also able to use the chart component outside a h:datatable without any problems. Any suggestions? Regards, Claus Elsborg
Simple question about what component to use
Hello, Let's say that I am using Trinidad + RichFaces + Tomahawk and I need to render a simple button. How could I decide which component to use to reach this simple requirement? Is there any criteria? Thanks in advance. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433
fwd: Simple question about what component to use
Sorry, please add Ajax4JSF in the list. - Original Message From: distillingweb [EMAIL PROTECTED] To: users@myfaces.apache.org Sent: Monday, September 3, 2007 4:24:29 PM Subject: Simple question about what component to use Hello, Let's say that I am using Trinidad + RichFaces + Tomahawk and I need to render a simple button. How could I decide which component to use to reach this simple requirement? Is there any criteria? Thanks in advance. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
Re: Simple question about what component to use
..depends on what you need ;) Generally the Trinidad components are more refined and offer more functionality. E.g. the Trinidad goButton offers pure client-side javascript handler, the commandButton offers PPR, etc. It would be interesting to see a requirements table matched against the diverse button types.. distillingweb [EMAIL PROTECTED] 03.09.2007 16:24 Bitte antworten an MyFaces Discussion users@myfaces.apache.org An users@myfaces.apache.org Kopie Thema Simple question about what component to use Hello, Let's say that I am using Trinidad + RichFaces + Tomahawk and I need to render a simple button. How could I decide which component to use to reach this simple requirement? Is there any criteria? Thanks in advance. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
Re: Events are fired twice for unknown reasons
Thanks Bernhard, from a user's view, what's the impact to JSF applications of this issue? And in what cases this problem can be reproduced? Is there anyway that I can mitigate it if brings about any problem before this issue is fixed? Fan Bernhard Huemer-2 wrote: Hello, I've encountered the same problem recently and I've also figured out the reason. It's because the method setProperties() is called twice. Usually you wouldn't notice this behaviour as most properties just will be overridden but that's not the case for a ValueChangeListener (or an ActionListener). For a better understanding of this issue, I'll describe the call hierachy (somewhat simplified): /// // myfaces/core/branches/1_2_1/api/javax/faces/webapp/UIComponentClassicTagBase.java protected UIComponent findComponent(FacesContext context) { // ... // around line 1097 _componentInstance = findComponent(parent,id); if (_componentInstance == null) { _componentInstance = createComponent(context, id); _created = true; setProperties(_componentInstance); // here is the first call // \\\ /// // myfaces/core/branches/1_2_1/api/javax/faces/webapp/UIComponentELTag.java protected UIComponent createComponent(FacesContext context, String newId) { // ... // around line 98 component.setId(newId); setProperties(component); // her is the second call (it's actually the first, but it's the one I would omit) return component; } \\\ I'll create a JIRA issue (including the appropriate patch) in a few hours, or maybe anyone else might be taking a look in the meantime. regards, Bernhard Fan Shao wrote: Hi, When trying to trace down the problem I posted a few days ago (http://www.nabble.com/Button-must-be-clicked-once-before-it-could-actually-do-something-tf4297733.html#a12234990) I found some of the events are fired twice, where they are supposed to be fired only once. The screen contains a datatable, and a dropdown box. When the user selects a value of the dropdown box, the form is submitted using this.form.submit(), and the datatable is reloaded according to user's selection. Everytime the datatable is reloaded its associated handler is called twice. Anyone has any idea about this? Many thanks! Fan -- View this message in context: http://www.nabble.com/Events-are-fired-twice-for-unknown-reasons-tf4352767.html#a12462673 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Simple question about what component to use
Thanks for your reply. The idea about the requirement table is very good. However, I would like to have the generics ones, like buttons, grids and so on. Thanks also for the explanation about the different component styles. Do you know where could I find this kind of components comparison behavior? Thank you again. - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, September 3, 2007 4:36:02 PM Subject: Re: Simple question about what component to use ..depends on what you need ;) Generally the Trinidad components are more refined and offer more functionality. E.g. the Trinidad goButton offers pure client-side javascript handler, the commandButton offers PPR, etc. It would be interesting to see a requirements table matched against the diverse button types.. distillingweb [EMAIL PROTECTED] 03.09.2007 16:24 Bitte antworten an MyFaces Discussion users@myfaces.apache.org An users@myfaces.apache.org Kopie Thema Simple question about what component to use Hello, Let's say that I am using Trinidad + RichFaces + Tomahawk and I need to render a simple button. How could I decide which component to use to reach this simple requirement? Is there any criteria? Thanks in advance. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz
Re: Hi All ,Is it possibility Pipe(|) or Divider in DataScroller Pagination.....
Extend the renderer class of the data scroller or use JavaScript to insert the pipes :). 2007/9/3, inalasuresh [EMAIL PROTECTED]: Hi Folks, I am new to Jsf / Myfaces. is there possibility to get the Pipe or Divider in DataScroller? i am using datascroller in that scroller i want to use pipe(|) symbol. in jsf/myfaces how to implement that. If any body know the solution for this plz send rep as soon as possible Now onto my question..I would like to have a divider (|), but I don't know how to implement it. I know it is possible to do a border only on one side, but then one always ends up after the Next button. Is there any way to do this? Thanks! i am using this attribute in the datascroller paginatorColumnClass=pipe .pipe{ background-image:url(../images/divider.gif); background-repeat:repeat-y; } But it not a correct approach and it willn't working properly e.g.: Like such type of pipe symbol(|) i want to use in between those number. 1 | 2 | 3 | 4| 5 | So plz Kindly response my request. -- View this message in context: Hi All ,Is it possibility Pipe(|) or Divider in DataScroller Pagination.http://www.nabble.com/Hi-All-%2CIs-it-possibility-Pipe%28%7C%29-or-Divider-in-DataScroller-Pagination.-tf4372197.html#a12461710 Sent from the MyFaces - Users mailing list archivehttp://www.nabble.com/MyFaces---Users-f181.htmlat Nabble.com.
[Tobago] EmptyStackException in datepicker
Hi, in the current snapshot the datepicker is broken. You get an EmptyStackException when you click on the picker image. You can see this in the demo. Regards Helmut
Re: Simple question about what component to use
Can I say that always the best practice as to get the best component feature would be to use Ajax4JSF and if not work could I go for Trinindad, Tomahowk, and so on? - Original Message From: distillingweb [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, September 3, 2007 4:54:08 PM Subject: Re: Simple question about what component to use Thanks for your reply. The idea about the requirement table is very good. However, I would like to have the generics ones, like buttons, grids and so on. Thanks also for the explanation about the different component styles. Do you know where could I find this kind of components comparison behavior? Thank you again. - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: MyFaces Discussion users@myfaces.apache.org Sent: Monday, September 3, 2007 4:36:02 PM Subject: Re: Simple question about what component to use ..depends on what you need ;) Generally the Trinidad components are more refined and offer more functionality. E.g. the Trinidad goButton offers pure client-side javascript handler, the commandButton offers PPR, etc. It would be interesting to see a requirements table matched against the diverse button types.. distillingweb [EMAIL PROTECTED] 03.09.2007 16:24 Bitte antworten an MyFaces Discussion users@myfaces.apache.org An users@myfaces.apache.org Kopie Thema Simple question about what component to use Hello, Let's say that I am using Trinidad + RichFaces + Tomahawk and I need to render a simple button. How could I decide which component to use to reach this simple requirement? Is there any criteria? Thanks in advance. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. Shape Yahoo! in your own image. Join our Network Research Panel today! Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/
Re: Events are fired twice for unknown reasons
Hello, You could use Facelets as it doesn't use the JSP TagHandler classes of MyFaces, though I haven't tried yet. At least I can't remember facing this issue when using Facelets. By the way, here is the bug report: http://issues.apache.org/jira/browse/MYFACES-1712 regards, Bernhard Fan Shao wrote: Thanks Bernhard, from a user's view, what's the impact to JSF applications of this issue? And in what cases this problem can be reproduced? Is there anyway that I can mitigate it if brings about any problem before this issue is fixed? Fan Bernhard Huemer-2 wrote: Hello, I've encountered the same problem recently and I've also figured out the reason. It's because the method setProperties() is called twice. Usually you wouldn't notice this behaviour as most properties just will be overridden but that's not the case for a ValueChangeListener (or an ActionListener). For a better understanding of this issue, I'll describe the call hierachy (somewhat simplified): /// // myfaces/core/branches/1_2_1/api/javax/faces/webapp/UIComponentClassicTagBase.java protected UIComponent findComponent(FacesContext context) { // ... // around line 1097 _componentInstance = findComponent(parent,id); if (_componentInstance == null) { _componentInstance = createComponent(context, id); _created = true; setProperties(_componentInstance); // here is the first call // \\\ /// // myfaces/core/branches/1_2_1/api/javax/faces/webapp/UIComponentELTag.java protected UIComponent createComponent(FacesContext context, String newId) { // ... // around line 98 component.setId(newId); setProperties(component); // her is the second call (it's actually the first, but it's the one I would omit) return component; } \\\ I'll create a JIRA issue (including the appropriate patch) in a few hours, or maybe anyone else might be taking a look in the meantime. regards, Bernhard Fan Shao wrote: Hi, When trying to trace down the problem I posted a few days ago (http://www.nabble.com/Button-must-be-clicked-once-before-it-could-actually-do-something-tf4297733.html#a12234990) I found some of the events are fired twice, where they are supposed to be fired only once. The screen contains a datatable, and a dropdown box. When the user selects a value of the dropdown box, the form is submitted using this.form.submit(), and the datatable is reloaded according to user's selection. Everytime the datatable is reloaded its associated handler is called twice. Anyone has any idea about this? Many thanks! Fan
sandbox and faclets
I configured the taglib file but my fieldset is still not being rendered. It writes out s:fieldset I have this in the top of my xhtml file: xmlns:s=http://myfaces.apache.org/sandbox; and I have this in my web.xml context-param param-namefacelets.LIBRARIES/param-name param-value /WEB-INF/config/taglib/tomahawk.taglib.xml;/WEB-INF/config/taglib/sandbox.taglib.xml;/WEB-INF/config/taglib/a4j.taglib.xml /param-value /context-param Any help would be appreciated. Shawn
Re: CommandLink in dataTabl
Interesting - it looks as if the tomahawk-tld couldn't be resolved. You might want to try to add the tld into your project directly, and see if this works. regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: Being stuck with WebLogic 8.1 unfortunatelly means I am stuck with java 1.4 :( this is why I am using sun RI and tomahawk 1.1.1 However, retried again tomahawk 1.1.6 and got an incompatible tld error : /startPage.jsp(3): Could not parse deployment descriptor: java.io.IOException: cannot resolve 'http://myfaces.apache.org/tomahawk' into a valid tag library probably occurred due to an error in /startPage.jsp line 3: %@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t % mybe some log from the weblogic server could bring some light : weblogic.servlet.jsp.JspException: (line 3): Could not parse deployment descriptor: java.io.IOException: cannot resolve 'http://myfaces.apache .org/tomahawk' into a valid tag library at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:712) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5067) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4891) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4737) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2147) at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1933) at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1806) at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:963) at weblogic.servlet.jsp.JspParser.doit(JspParser.java:106) at weblogic.servlet.jsp.JspParser.parse(JspParser.java:234) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:125) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:388) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:238) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:188) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:535) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:373) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) Radu Martin Marinschek wrote: what where the problems with these other versions? We should probably better fix these... regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: First, thanks for the interest. Problem is that with WebLogic 8.1(this is my constrain) I am stuck to sun RI 1.1 and tomahawk 1.1.1 I've tryed the other versions of tomahawk (from 1.1.2 to 1.1.6) and I couldn't get them working. Radu Martin Marinschek wrote: Hi Radu, you've run into a compatibility problem between Sun RI 1.1 and Tomahawk, both in earlier versions. An upgrade to the latest 1.1 version of both libraries should help! regards, Martin On 9/3/07, radu_milos [EMAIL PROTECTED] wrote: Hello, I am a newbie learning JSF while trying to meet deadlines on a JSF refactoring project. The docs forums have helped me quite a lot untill now when I seem to be facing a wierd problem. Here is the context : I have a dataTable and a commandLink on every line. The actionListener associated with this
Re: Dynamic forms with JSF
Martin, Thanks for the reply. Unfortunately, I don't know which half of the emails you are getting... At the moment, we can't use 1.2 b/c we need to run on an Oracle OAS 10.1.3.1 AppServer. I will check out Facelets. We are currently using the ADF af:table tag. We will be changing over to use Trinidad. I have found a partial workaround for the problem. If I don't bind the components and instead use EL expressions for the attributes I get around the 'PropertyNotFoundException : error setting property in bean type null' problem. My current problem is that if I use a af:inputDate with a af:chooseDate and link them with the chooseId and id attributes, I get a TrRequestQueue.getInstance is not a function JavaScript error. The error happens when there are multiple forms (more than one plan). I tried to fix this by dynamically generating the id for the chooseDate but found that this is not allowed from the post, RE: Dynamic id's with Partial Page Rendering from 03/04/07. Do you think that the TrRequestQueue.getInstance is not a function' is a bug or is using multiple inputDates and chooseDates in a tr:forEach not a supported usage? I am using Trinidad 1.0.2 Thanks, Richard Martin Marinschek wrote: Hi Richard, I only seem to see half of your mails, but here some possible ways to get to such functionality easily: - use JSF 1.2 - c:forEach should work - use Facelets - c:forEach should work - Tomahawk t:dataList or Facelets ui:repeat or Standard table and Tomahawk Sandbox s:selectOneRow - Trinidad tr:table (has automatic selection features) regards, Martin On 9/3/07, Richard Yee [EMAIL PROTECTED] wrote: Is it possible to have a dynamic number of forms in a JSF page? I would like to have a forEach tag in my page that iterates over a list of objects that contain a list if items to display in a multiselect table and some UI components that will get updated based on the rows that get selected. I have seen other postings that seem to indicate that UI components cannot be inside a forEach tag and use the variable from the var attribute. Is there any way to do this? Ex. Plan A == || Name | Association | -++--- | [] | aaa | XYZ | -++--- | [] | bbb | BBB | -++--- | [] | ccc | CCC | - SelectOneChoice Checkbox SelectOneChoice Plan B == || Name | Association | -++--- | [] | aaa | XYZ | -++--- | [] | bbb | BBB | -++--- | [] | ccc | CCC | - SelectOneChoice Checkbox SelectOneChoice .. possibly more Plans... APPLY CANCEL Thanks, Richard
Problem solved!!!
Hi there, Thank u guys for your warm help, I eventually find out the cause of this problem. In that page I have a drop-down box, which has a valueChangeListener, and bound to a property of a managed bean. When the managed bean is created, the default value of the drop-down property was not set(ramains null). So when the first time the user visits this page, and clicks the submit button, the valueChangeEvent is fired (old value is null, now it gets a non-null value), and the response is sent and the page is rendered in the valueChangeListener. So for the user it seems nothing is done but refreshing the screen when he clicks the button. Assigning a default value to the drop-down box solves this problem. Lots of thanks again! Fan Fan Shao wrote: Hi there, I've written a JSF page using Facelets template. I have a form in the page and a button. Every time I restarted the webapp, the first time I click the button it just refreshes the page and resets all the input fields. After that the button works normally with all the fields correctly submitted. This means I have to click the button once before I can do any work everytime the server is restarted. Anyone has any idea about this problem? -- View this message in context: http://www.nabble.com/Button-must-be-clicked-once-before-it-could-actually-do-something-tf4297733.html#a12464541 Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Security role question
Hi, Some possible solutions would be; - Using old school container security (None JSF solution) - Phaselistener approach, run security logic after viewid is set(RestoreView Phase) - Proxying the FacesServlet, similar way as using filters. - Acegi if you've spring already Cagatay On 9/3/07, Thomas Fischer [EMAIL PROTECTED] wrote: I had the same problem, and my solution was to use plain jsp means for this. I wrote a custom pagePermission Tag, which is included in every protected page. The necessary data (which permission should be checked) is given to the tag via EL expressions. The Tag then checks the permission, and throws an exception if the user has no permission. The exception is handled by a custom error handling mechanism (although one could also use then ew error handling from myfaces 1.2.1 snapshots) Note, however, that this solution has a philosophy problem: Permissions are treated like visual components. For my use case, however, the simplicity of the solution outweighs this. If there are better solutions around, I'd also be interested in alternatives. Thomas Angel Miralles Arevalo [EMAIL PROTECTED] schrieb am 03.09.2007 12:16:43: Hi everyone, I'm trying to implement passive security on my application. Let me explain, although a user has logged in the application there are many pages where he couldn't enter (url navigation). I have worked with Struts and the way to manage the problem is setting a role in action definition. Then when you invoke this action, ControllerManager (method call previous to every action) checks if logged user can access to this specific page (DB relations user/role/page). What I want is to prevent logged user to url navigation. Is there any way to implements this behaviour with JSF tech? I think it is a basic functionality. Thanks so much!!! Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! . Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .
Re: How stable is the latest snapshots of myfaces and tomahawk?
Oki, thx... :) BTJ On Mon, 3 Sep 2007 04:07:53 +0200 Martin Marinschek [EMAIL PROTECTED] wrote: Hi BTJ, currently it is pretty stable and I suppose you can do this, but this can change with next day's snapshot without notice ;). So if you really want to do this, a good idea would be to put the version you want to rely on into your repository under a fixed version number. regards, Martin On 9/2/07, Bjørn T Johansen [EMAIL PROTECTED] wrote: On Fri, 31 Aug 2007 12:10:37 +0200 Bjørn T Johansen [EMAIL PROTECTED] wrote: Can it be used in a production environment without any problems? Regards, BTJ No one knows this? BTJ
Re: [Trinidad] Possible to implement app specific view handler under Trinidad?
Since Trindad delegates to the ALTERNATE one, what you can do: Extend FaceletViewHandler with your custom one. Then register that one as the org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER On 9/3/07, Zarick Lau [EMAIL PROTECTED] wrote: Dear User and Devs, My project use Facelets and Trinidad. Currently, the facelets ViewHandler is configure using the trinidad's context param in web.xml (org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER). So everything goes smoothly, but now, I would like to implement our app specific ViewHanlder (to handle authorization stuff), how can I add my ViewHandler into picture?? Env: Trinidad 1.2.1 / Faclets 1.1.12 / JSF 1.2 RI Best regards, Zarick
Re: Why so many components?
FYI, I don't recommend that you use A4J in that combination unless you need RichFaces. Just use the PPR functionality in Trinidad. You will most likely have rendering problems with Trinidad+A4J See http://myfaces.apache.org/trinidad/devguide/ppr.html for information on Trinidad's AJAX -Andrew On 9/3/07, distillingweb [EMAIL PROTECTED] wrote: Hello, I know this use to be a obvious choice, but because I am a newcomer in the MyFaces world, what answer I would give to my manager if he ask me why am I using so many components? Now, following advices, I am planning to use MyFaces + Trinidad + Tomahawk + Facelets + Ajax4JSF and maybe Seam. I know each of them provide different resources, but is there a couple or three of them that could give me like 90% of all my requirements need? Thank you in advance. Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
Re: [Trinidad] - Javascript errors Integrating with JSF 1.2 RI / Facelets
servlet-mapping servlet-nameresources/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping ... is wrong. It needs to be: servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping ... like it says at : http://myfaces.apache.org/trinidad/installation.html -- Adam On 8/29/07, Rich Schramm [EMAIL PROTECTED] wrote: Adam, See below for my web.xml as per your request. Any feedback appreciated. Rich ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; descriptionFacelets StarterKit/description display-namemyapp/display-name context-param param-namejavax.faces.DEFAULT_SUFFIX/param-name param-value.jspx/param-value /context-param context-param param-namefacelets.REFRESH_PERIOD/param-name param-value2/param-value /context-param context-param param-namefacelets.DEVELOPMENT/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueserver/param-value /context-param context-param param-namecom.sun.faces.validateXml/param-name param-valuetrue/param-value /context-param context-param param-namecom.sun.faces.verifyObjects/param-name param-valuetrue/param-value /context-param context-param param-nameorg.ajax4jsf.SKIN/param-name param-valueclassic/param-value /context-param context-param param-namecom.exadel.vcp.trialKey/param-name param-valuetrial_key_goes_here/param-value /context-param !-- Trinidad Mappings -- context-param param-nameorg.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER/param-name param-valuecom.sun.facelets.FaceletViewHandler/param-value /context-param context-param param-namefacelets.VIEW_MAPPINGS/param-name param-value*.jspx/param-value /context-param filter filter-nametrinidad/filter-name filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class /filter filter-mapping filter-nametrinidad/filter-name servlet-nameFaces Servlet/servlet-name dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping servlet servlet-nameresources/servlet-name servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class /servlet servlet-mapping servlet-nameresources/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping !-- End Trinidad Mapping -- filter display-nameAjax4jsf Filter/display-name filter-nameajax4jsf/filter-name filter-classorg.ajax4jsf.Filter/filter-class /filter filter-mapping filter-nameajax4jsf/filter-name servlet-nameFaces Servlet/servlet-name dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.jsf/url-pattern /servlet-mapping /web-app From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 29, 2007 8:01 PM To: MyFaces Discussion Subject: Re: [Trinidad] - Javascript errors Integrating with JSF 1.2 RI / Facelets Could we see your web.xml? -- Adam On 8/29/07, Rich Schramm [EMAIL PROTECTED] wrote: Hi, I would like to use the color picker and calendar components in Trinidad. I am currently running JSF 1.2 RI with facelets and richfaces. I have configured the installation as per the instructions. When I display a page with the choosecolor component, it renders the table, but the transparent image is shows an error (a box with a broken image) and the javascript shows an error TrColorConverter is undefined. Additionally, when I use the requestContext palette, instead of showing the colors, it causes an exception in the page showing that the long list of AWT color elements is a string and not a list. Thinking maybe it was interference with the RichFaces tags, I created a very simple page using the demo chooseColor page in demo war. It looks like: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; version=2.0
Re: [Trinidad] ppr: partialTriggers doesn't work if there are validation messages?
This all seems like enormous overkill *just* to get messages sent down. We have Javascript that can insert messages on the client. All we need to do is lean slightly on that code to reuse it for inserting server-side messages, and this'll work fine without any architectural changes at all. -- Adam On 8/29/07, Andrew Robinson [EMAIL PROTECTED] wrote: After thinking it on some more and researching how Trinidad is handling the PPR triggers more, I thought that maybe the best solution is just a new component. I am already using such a component in my own project for a site I own. I just posted the code to JIRA so that you all can see it, comment on it and decide if you would like to have it as a core component of Trinidad. The issue: https://issues.apache.org/jira/browse/TRINIDAD-663 -Andrew
Re: [Trinidad] tr:messages - EL expressions in components' labels are not evaluated
I see what's going on: this looks like a recent bug introduced in the new MessageBoxRenderer. I've filed: https://issues.apache.org/jira/browse/TRINIDAD-679 -- Adam On 9/3/07, Vadim Dmitriev [EMAIL PROTECTED] wrote: Small follow-up: seems that labels are displayed correctly while client-side validation processes errors. When server-side validation kicks in - tr:messages labels turn to EL Hi. tr:messages by default outputs messages in form label - massage. In my application I actively use EL expressions in components labels. Problem is that these labels got printed by tr:messages like this EL expressions are simple strings. For example #{resourceBundle['some.label']} - value required instead of Some label - value required. I tried different properties files locales/faces-config locale configuration and somehow it began to work. When i was searching for exact step that managed to fix that error, i broke it again and now it doesn't work at all. Have anybody experienced such problems? Maybe I miss some required configuration? Thanks.
Re: [Trinidad] Trinidad 1.2.1 demo on Tomcat 6.0.13
This doesn't make much sense to me. That line is a tr:forEach element. In 1.2.1, the tld for forEach has attribute description the ending index /description nameend/name deferred-value typejava.lang.Integer/type /deferred-value /attribute ... so end absolutely supports EL. Whether there's a Tomcat bug or a setup issue here, I don't know. -- Adam On 8/30/07, Thai Dang Vu [EMAIL PROTECTED] wrote: Hi everybody, I dropped the trinidad 1.2.1 demo war file in the webapps folder of Tomcat 6, run tomcat so that it deployed that war file, stopped tomcat to dropped jsf-impl-1.2_04-p02.jar, jsf-api-1.2_04-p02.jar and jstl-1.2.jar in the trinidad-1.2.1-demo/WEB-INF/lib folder, started tomcat again and the Component Guide worked, but the Progress Step Demo didn't. This is the error: org.apache.jasper.JasperException: /demos/progressSteps.jspx(68,58) According to TLD or attribute directive in tag file, attribute end does not accept any expressions org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :148) org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes( Validator.java:1119) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:819) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:838) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:838) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:838) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:838) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:838) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:838) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:838) org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav a:515) org.apache.jasper.compiler.Node$JspRoot.accept(Node.java:566) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392) org.apache.jasper.compiler.Node$Root.accept(Node.java:489) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Validator.validate(Validator.java:1737) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178) org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Re: trinidad outputFormat and f:param support
BTW, for all of these examples, you should just use tr:outputText instead of tr:outputFormatted. outputFormatted really has nothing to do with outputFormat. What tr:outputFormatted gives you is support for (a subset of) HTML formatting without opening the security hole of escape=false. -- Adam On 8/30/07, Andrew Robinson [EMAIL PROTECTED] wrote: Well you could do: tr:outputFormatted value=#{myfunc:format2(str, arg1, arg2)} / where you could write format1, format2, etc. EL functions to do the work. You could also do: t:buffer into=#{formattedString} h:outputFormat value=#{message.key} f:param value=param1 / /h:outputFormat /t:buffer tr:outputFormatted value=#{formattedString} / On 8/30/07, Paul Mander [EMAIL PROTECTED] wrote: Andrew Robinson-5 wrote: Well, that is not localizable I think the use case that he means is more like: tr:outputFormatted value=#{messages.str} f:param value=#{myarg} / /tr:outputFormatted messages.properties str = Test {0} param That's a better example. -- View this message in context: http://www.nabble.com/trinidad-outputFormat-and-f%3Aparam-support-tf4347417.html#a12401317 Sent from the MyFaces - Users mailing list archive at Nabble.com.