RE: storing errors in session with multiple screens
I have t:messages for validations and errorMsg property to have the other messages. I have 2 types of messages. You could do as you mentioned depending on your requirement -Original Message- From: Kalra, Ashwani [mailto:ashwani.ka...@capgemini.com] Sent: Thursday, July 22, 2010 4:24 AM To: MyFaces Discussion Subject: RE: storing errors in session with multiple screens Hi, Thanks for this info. Are you putting your backing bean in session and have written custom validators for each control to store and clear the errors in session? -Original Message- From: Vinaya Tirikkovalluru [mailto:vinaya.tirikkovall...@converge.com] Sent: Wednesday, July 21, 2010 6:20 PM To: MyFaces Discussion Subject: RE: storing errors in session with multiple screens My page is in session and I can display the previous pages errors. But the not with the t:messages. I display them with a t:output And errors are the property of the bean underneath the page. -Original Message- From: Kalra, Ashwani [mailto:ashwani.ka...@capgemini.com] Sent: Wednesday, July 21, 2010 11:59 AM To: myfaces (users@myfaces.apache.org) Subject: storing errors in session with multiple screens Hi, In our Myfaces(1.2x) application, the business logic is split into multiple screens. Each page is having validate, Previous, Next button. Let us say screens are S1... S7 When user presses the validate button on S3 screen, he should be able to see the error messages for that screen. (Both page specific and on the fields). When he navigates to S7, he should see the error messages for S7 and so on. Also when user presses the next button, even if the current page is having errors, I need to move to next page, silently storing the errors so that if he comes back on this page, I can show the errors. So I need to store the errors in session. Can someone provide inputs if they have done similar thing in their projects. Regards Ashwani /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: storing errors in session with multiple screens
My page is in session and I can display the previous pages errors. But the not with the t:messages. I display them with a t:output And errors are the property of the bean underneath the page. -Original Message- From: Kalra, Ashwani [mailto:ashwani.ka...@capgemini.com] Sent: Wednesday, July 21, 2010 11:59 AM To: myfaces (users@myfaces.apache.org) Subject: storing errors in session with multiple screens Hi, In our Myfaces(1.2x) application, the business logic is split into multiple screens. Each page is having validate, Previous, Next button. Let us say screens are S1... S7 When user presses the validate button on S3 screen, he should be able to see the error messages for that screen. (Both page specific and on the fields). When he navigates to S7, he should see the error messages for S7 and so on. Also when user presses the next button, even if the current page is having errors, I need to move to next page, silently storing the errors so that if he comes back on this page, I can show the errors. So I need to store the errors in session. Can someone provide inputs if they have done similar thing in their projects. Regards Ashwani /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Set values to t:selectManyPicklist
Hi, I am trying to set the values of the t:selectManyPicklist t:selectManyPicklist value=#{user.selectedList} addButtonStyleClass=button addAllButtonStyle=true style=width:350px size=10 f:selectItems value=#{user.availableList} / /t:selectManyPicklist But the other list is not populated. I also do not get the Button Style working. I have seen one example in the forums which was s:selectManyPicklist. I am little confused. Did anyone have done this with Myfaces 1.2? Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Iframes with Myfaces
Hi, Can anyone help me with iframes code in Myfaces? I need to have a expandable frame under every row and the data of the frame should be triggered on the click. The master detail table would not work for me as the detail data needs to be queried along with the master data. This is causing a lot of performance hit. Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Nested s:modalDialog
Hi, I have a requirement where a popup A calls another popup B. As popup A is of more size than B, B is hidden. Is there any way to show the popup always on top? Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Nested s:modalDialog
Well, I could get the popup B to popup on A. However I am not able to enter any values in B. Thanks Vinaya -Original Message- From: Vinaya Tirikkovalluru [mailto:vinaya.tirikkovall...@converge.com] Sent: Friday, February 26, 2010 1:28 PM To: MyFaces Discussion Subject: Nested s:modalDialog Hi, I have a requirement where a popup A calls another popup B. As popup A is of more size than B, B is hidden. Is there any way to show the popup always on top? Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
rowSpan for t:PanelGrid
Hi, Did any of you implement the rowSpan/colSpan for t:panelGrid Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Is it possible to do this with dataTables?
Yes, It is possible. After the all the columns /t:column, use the facet f:facet name=detailStamp t:panelGrid id=soMpn1 columns=1 width=100% test /t:panelGrid hr / /t:panelGrid /f:facet Vinaya -Original Message- From: laredotornado [mailto:laredotorn...@gmail.com] Sent: Thursday, January 28, 2010 3:55 PM To: users@myfaces.apache.org Subject: Is it possible to do this with dataTables? Hi, We're using Tomahawk 1.1.6 with MyFaces 1.1.5. We want to use a t:dataTable to display our data, but there is one fly in the ointment. We have 5 columns of data, but after each row of data, we wish to display another row that spans the five columns. Is it possible to do this with JSF's dataTable, and if so, how? Thanks, - Dave -- View this message in context: http://old.nabble.com/Is-it-possible-to-do-this-with-dataTables--tp27360 096p27360096.html Sent from the MyFaces - Users mailing list archive at Nabble.com. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
PanelGrid Vs Html Table
Hi, I am using t:panelGrid. Can I use html table instead? I can align the tables well with table I agree that using t:panelGrid would have the capability of rendering based on a variable. I am not using that any ways and will not be using it. I think instead of using nested panelgrids which get converted to tables I can use tables themselves, if do not need the extra functionality available with t:panelGrid Any suggestions? Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: PanelGrid Vs Html Table
Tomahawk 1.1.9 -Original Message- From: sethfromaust...@gmail.com [mailto:sethfromaust...@gmail.com] On Behalf Of Jakob Korherr Sent: Wednesday, January 06, 2010 3:33 PM To: MyFaces Discussion Subject: Re: PanelGrid Vs Html Table Hi, What version of MyFaces are you using? Regards, Jakob Korherr 2010/1/6 Vinaya Tirikkovalluru vinaya.tirikkovall...@converge.com Hi, I am using t:panelGrid. Can I use html table instead? I can align the tables well with table I agree that using t:panelGrid would have the capability of rendering based on a variable. I am not using that any ways and will not be using it. I think instead of using nested panelgrids which get converted to tables I can use tables themselves, if do not need the extra functionality available with t:panelGrid Any suggestions? Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: PanelGrid Vs Html Table
1.2 I there any advantage/disadvantage is using t:panelgrid Vs table -Original Message- From: sethfromaust...@gmail.com [mailto:sethfromaust...@gmail.com] On Behalf Of Jakob Korherr Sent: Wednesday, January 06, 2010 4:02 PM To: MyFaces Discussion Subject: Re: PanelGrid Vs Html Table I'm sorry, but that's not what I was asking. Are you using JSF (MyFaces Core) 1.1 or 1.2?? 2010/1/6 Vinaya Tirikkovalluru vinaya.tirikkovall...@converge.com Tomahawk 1.1.9 -Original Message- From: sethfromaust...@gmail.com [mailto:sethfromaust...@gmail.com] On Behalf Of Jakob Korherr Sent: Wednesday, January 06, 2010 3:33 PM To: MyFaces Discussion Subject: Re: PanelGrid Vs Html Table Hi, What version of MyFaces are you using? Regards, Jakob Korherr 2010/1/6 Vinaya Tirikkovalluru vinaya.tirikkovall...@converge.com Hi, I am using t:panelGrid. Can I use html table instead? I can align the tables well with table I agree that using t:panelGrid would have the capability of rendering based on a variable. I am not using that any ways and will not be using it. I think instead of using nested panelgrids which get converted to tables I can use tables themselves, if do not need the extra functionality available with t:panelGrid Any suggestions? Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Html Tags Vs Tomahawk Tags
Thanks Andrew, I am using facelets. I strongly feel that there is ease in using HTML. As you said, I would not want to use components unless necessary. But.. apart from the ease of development, would there be any other advantage? Like more speed in rendering the pages as there is no back process needed to convert the components into HTML tags. Vinaya -Original Message- From: Andrew Robinson [mailto:andrew.rw.robin...@gmail.com] Sent: Wednesday, November 04, 2009 4:00 PM To: MyFaces Discussion Subject: Re: Html Tags Vs Tomahawk Tags There is not much benefit to using components other than the rendered attribute. If you aren't changing that, I would just use HTML. There may be times that components are useful, like when the JSF response writer is special-handling the written content for example, but that is not too often. So you have to weigh the ease of using HTML in-line with a smaller component tree, or having JSF components that render using the response writer methods. BTW, I strongly recommend facelets over JSP if you are using in-line HTML -Andrew On Tue, Nov 3, 2009 at 12:38 PM, Vinaya Tirikkovalluru vinaya.tirikkovall...@converge.com wrote: Hi, Would there be any difference/advantage in using Html tags Vs Tomahawk Tags where ever possible? For Example: I can use Table instead of t:panelGrid in many cases. Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Html Tags Vs Tomahawk Tags
Hi, Would there be any difference/advantage in using Html tags Vs Tomahawk Tags where ever possible? For Example: I can use Table instead of t:panelGrid in many cases. Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
MyFaces Logging.
Hi Was anyone able to disable the Myfaces/Facelets logging in the log files? Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Problem with t:jscookMenu
Hi, Overwrite HtmlJSCookMenuTag.java Add this to setProperties() method; if (_styleLocation != null) { comp.setValueExpression(styleLocation, _styleLocation); //Begin new code jro- if (_styleLocation != null) setStringProperty(component, JSFAttr.STYLE_LOCATION, _styleLocation); //---End new Code jro--- } It worked for me. Vinaya From: Narendra, Yadala (Contractor) [mailto:yadala_naren...@fanniemae.com] Sent: Monday, May 18, 2009 1:08 PM To: users@myfaces.apache.org Subject: Problem with t:jscookMenu Hi All I was using tomahawk 1.1.5 and myfaces 1.1.5. As soon as I migrated my app to Tomahawk 1.1.8 in combination with Myfaces 1.1.6, menu on my application was no longer working. I am using t:jscookMenu component for my app. The menu subitems disappear as soon as I take my mouse over the menu subitems. Please let me know if you know any solution to this problem. Thanks in advance Narendra This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Problem with t:jscookMenu
Have it in your project with the same directory structure. Like.. Project/org/apache/myfaces/custom/navmenu/jscookmenu/HtmlJSCookMenuTag.j ava Vinaya From: Narendra, Yadala (Contractor) [mailto:yadala_naren...@fanniemae.com] Sent: Monday, May 18, 2009 3:59 PM To: MyFaces Discussion Subject: RE: Problem with t:jscookMenu Hey Vinaya Thanks for the quick response. The code you posted does not compile in version 1.1.8 of Tomahawk. Thanks Narendra This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. From: Vinaya Tirikkovalluru [mailto:vinaya.tirikkovall...@converge.com] Sent: Monday, May 18, 2009 2:04 PM To: MyFaces Discussion Subject: RE: Problem with t:jscookMenu Hi, Overwrite HtmlJSCookMenuTag.java Add this to setProperties() method; if (_styleLocation != null) { comp.setValueExpression(styleLocation, _styleLocation); //Begin new code jro- if (_styleLocation != null) setStringProperty(component, JSFAttr.STYLE_LOCATION, _styleLocation); //---End new Code jro--- } It worked for me. Vinaya From: Narendra, Yadala (Contractor) [mailto:yadala_naren...@fanniemae.com] Sent: Monday, May 18, 2009 1:08 PM To: users@myfaces.apache.org Subject: Problem with t:jscookMenu Hi All I was using tomahawk 1.1.5 and myfaces 1.1.5. As soon as I migrated my app to Tomahawk 1.1.8 in combination with Myfaces 1.1.6, menu on my application was no longer working. I am using t:jscookMenu component for my app. The menu subitems disappear as soon as I take my mouse over the menu subitems. Please let me know if you know any solution to this problem. Thanks in advance Narendra This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Problem with t:jscookMenu
We migrated from 1.1.6 to 1.1.8 So this fix is in place and it works for us. Vinaya From: Narendra, Yadala (Contractor) [mailto:yadala_naren...@fanniemae.com] Sent: Monday, May 18, 2009 4:51 PM To: MyFaces Discussion Subject: RE: Problem with t:jscookMenu Please verify this https://issues.apache.org/jira/browse/TOMAHAWK-1341. The code you posted is a fix for 1.1.6 or 1.1.7. It has no relevance in 1.1.8. Thanks Narendra This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. From: Vinaya Tirikkovalluru [mailto:vinaya.tirikkovall...@converge.com] Sent: Monday, May 18, 2009 4:30 PM To: MyFaces Discussion Subject: RE: Problem with t:jscookMenu Have it in your project with the same directory structure. Like.. Project/org/apache/myfaces/custom/navmenu/jscookmenu/HtmlJSCookMenuTag.j ava Vinaya From: Narendra, Yadala (Contractor) [mailto:yadala_naren...@fanniemae.com] Sent: Monday, May 18, 2009 3:59 PM To: MyFaces Discussion Subject: RE: Problem with t:jscookMenu Hey Vinaya Thanks for the quick response. The code you posted does not compile in version 1.1.8 of Tomahawk. Thanks Narendra This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. From: Vinaya Tirikkovalluru [mailto:vinaya.tirikkovall...@converge.com] Sent: Monday, May 18, 2009 2:04 PM To: MyFaces Discussion Subject: RE: Problem with t:jscookMenu Hi, Overwrite HtmlJSCookMenuTag.java Add this to setProperties() method; if (_styleLocation != null) { comp.setValueExpression(styleLocation, _styleLocation); //Begin new code jro- if (_styleLocation != null) setStringProperty(component, JSFAttr.STYLE_LOCATION, _styleLocation); //---End new Code jro--- } It worked for me. Vinaya From: Narendra, Yadala (Contractor) [mailto:yadala_naren...@fanniemae.com] Sent: Monday, May 18, 2009 1:08 PM To: users@myfaces.apache.org Subject: Problem with t:jscookMenu Hi All I was using tomahawk 1.1.5 and myfaces 1.1.5. As soon as I migrated my app to Tomahawk 1.1.8 in combination with Myfaces 1.1.6, menu on my application was no longer working. I am using t:jscookMenu component for my app. The menu subitems disappear as soon as I take my mouse over the menu subitems. Please let me know if you know any solution to this problem. Thanks in advance Narendra This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Problem with Tomahawk tag
Try t:jscookMenu id=mainMenu layout=vbr theme=ThemePanel styleLocation=/css/jscookmenu This works for me. Vinaya -Original Message- From: JavaRunner [mailto:randomno...@bellsouth.net] Sent: Thursday, May 14, 2009 11:31 AM To: users@myfaces.apache.org Subject: Problem with Tomahawk tag Using myfaces 1.2.6 and tomahawk 1.1.8 I have a problem with jscookmenu. The error states that the tag's styleLocation tag is not defined by DTD. Here's the relevant script: h:form t:jscookMenu id=mainMenu layout=vbr theme=ThemePanel styleLocation=css/jscookmenu t:navigationMenuItem id=nav_1 itemLabel=Patients Here's the runtime exception msg: javax.servlet.ServletException - Attribute styleLocation invalid for tag jscookMenu according to TLD I've checked the TLD and all appears ok. Any one with a suggestion appreciated. -- View this message in context: http://www.nabble.com/Problem-with-Tomahawk-tag-tp23543009p23543009.html Sent from the MyFaces - Users mailing list archive at Nabble.com. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Including a jsp
Hi, I have a 2 jsps included in a jsp. The 2 jsps are physically the same but I had to write them as 2 different jsps as I needed to pass a different set of values Like Have a jsp with users grouped into 2 categories A and B A.jsp is a jsp with the list of all the users with Category A B.jsp represents B. the jsps have a datatables, which has value=#{aUser.dataModel} for A.jsp and value=#{bUser.dataModel} for B.jsp Is there any way, I can pass this dynamically and have a single jsp? Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Dynamic DataTables
Hi, I am looking to generate t:datatables dynamically. Each table will have a different datasource and different columns Thanks Vinaya -Original Message- From: Simon Kitching [mailto:skitch...@apache.org] Sent: Saturday, February 28, 2009 2:55 AM To: MyFaces Discussion Subject: Re: Dynamic DataTables On Fri, 2009-02-27 at 16:17 -0500, Vinaya Tirikkovalluru wrote: Hi, I hope some of you might have already got the code to generate the Dynamic DataTables. If you want help on emailing lists, you really need to write more descriptive emails than this. Dynamic DataTables could mean many different things... Perhaps the tomahawk t:columns component is what you are looking for? http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc/t_columns.h tml Regards, Simon This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Dynamic DataTables
Hi, I hope some of you might have already got the code to generate the Dynamic DataTables. I appreciate if you could share. Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Internet Explorer can not open site...Operation Aborted error is coming from jscookmenu
Hi, I too am having the same issue. Any advices? Thanks Vinaya -Original Message- From: Balachandran [mailto:balachandra...@hotmail.com] Sent: Tuesday, January 20, 2009 4:11 AM To: users@myfaces.apache.org Subject: Internet Explorer can not open site...Operation Aborted error is coming from jscookmenu Recently I have upgraded to tomahawk 1.1.8 from 1.1.5.After that, while loading the screen, if the focus is on a menu item and if that menu item has submenus, the above said error is coming from IE.I am using IE6. Please Advice. -- View this message in context: http://www.nabble.com/%22Internet-Explorer-can-not-open-site...Operation -Aborted%22-error-is-coming-from-jscookmenu-tp21559453p21559453.html Sent from the MyFaces - Users mailing list archive at Nabble.com. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: javax.faces.application.ViewExpiredException:
Hi Simon, Thanks for the details. I have a sessiontimeout filter which checks if the session has timedout for each request and will delegate to the next servlet if the session is valid and redirects the user to the login page if the session in invalid (timed out) The code is package com.converge.framework.logging; import java.util.Date; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; import org.acegisecurity.context.HttpSessionContextIntegrationFilter; import org.acegisecurity.context.SecurityContext; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class SessionListener implements HttpSessionListener { protected final Log logger = LogFactory.getLog(this.getClass()); public SessionListener() { } public void sessionCreated(HttpSessionEvent event) { System.out.println(Current Session created : + event.getSession().getId() + at + new Date()); logger.info(Current Session created : + event.getSession().getId() + at + new Date()); } public void sessionDestroyed(HttpSessionEvent event) { // get the destroying session... HttpSession session = event.getSession(); System.out.println(Current Session destroyed : + session.getId() + Logging out user...); logger.info(Current Session destroyed : + session.getId() + Logging out user...); /* * nobody can reach user data after this point because session is invalidated already. * So, get the user data from session and save its logout information * before losing it. * User's redirection to the timeout page will be handled by the SessionTimeoutFilter. */ // Only if needed try { prepareLogoutInfoAndLogoutActiveUser(session); } catch(Exception e) { logger.info(Error while logging out at session destroyed : + e.getMessage()); } } /** * Clean your logout operations. */ public void prepareLogoutInfoAndLogoutActiveUser(HttpSession httpSession) { SecurityContext context = (SecurityContext) httpSession .getAttribute(HttpSessionContextIntegrationFilter.ACEGI_SECURITY_CONTEXT _KEY); if (context != null) { httpSession.invalidate(); } } } Any ideas if this is causing any issues? Thanks Vinaya -Original Message- From: Simon Kitching [mailto:skitch...@apache.org] Sent: Thursday, December 18, 2008 3:38 AM To: MyFaces Discussion Subject: Re: javax.faces.application.ViewExpiredException: Vinaya Tirikkovalluru schrieb: Hi, We have upgraded from Tomahawk 1.1.6 to Tomahawk 1.1.8 After this, we have been getting a lot of javax.faces.application.ViewExpiredExceptions I was under the impression that javax.faces.application.ViewExpiredException is caused only when the session expires. Anybody else had this problem earlier? Could any one please tell me what are the other scenarios where this is caused? Firstly, note that this applies only when server-side-state-saving is enabled. A ViewExpiredException will never occur with client-side-state-saving. Myfaces keeps a cache of previous views in the session. At the start of each render phase, a new view key is allocated, and written into a hidden field in the html form. At the end of the render phase, the current view is stored into the cache using that key. On postback, if the view key specified by the posted form data does not match any entry in the cache, then a ViewExpiredException is reported. The cache has a fixed size, so that a user session does not grow continuously; when a view is stored into a full cache, the oldest entry is discarded. This allows a fixed-size number of back button clicks to work (the submitted form will contain an old view key). The actual number is configurable. Unfortunately this approach does not work too well if an application has multiple windows open; there is still just one cache, so if one window is used repeatedly then it will eventually push the saved view for other open windows out of the cache; then submitting the other window will cause a ViewExpiredException. Unfotunately http provides no way to know which window is which, so it is not possible to have a per-window cache. But all this view-cache-management is done by the jsf core implementation, *not* tomahawk. So I cannot think why upgrading Tomahawk is causing problems for you. Hopefully the above info will help you figure out what the actual problem is.. Regards, Simon -- -- Emails in mixed posting style will be ignored -- (http://en.wikipedia.org/wiki/Posting_style) This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain
javax.faces.application.ViewExpiredException:
Hi, We have upgraded from Tomahawk 1.1.6 to Tomahawk 1.1.8 After this, we have been getting a lot of javax.faces.application.ViewExpiredExceptions I was under the impression that javax.faces.application.ViewExpiredException is caused only when the session expires. Anybody else had this problem earlier? Could any one please tell me what are the other scenarios where this is caused? Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Facelets is slow???
Hi, I just switched over to facelets. I see the pages load really slow. I used templates. I see that the Menu is loading way faster than the other part of the page. I have JSF+ SPRING + JBOSS + TOMOHAWK Any ideas? Thanks This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Facelets Back Button
Hi, This worked for me with facelets. I have another application with out Facelets. I have the following code on the jsp. % response.setHeader(pragma, no-cache); response.setHeader(Cache-control, no-cache, no-store, must-revalidate); response.setHeader(Expires, 01 Apr 1995 01:10:10 GMT); % This works for some jsps and is not working for otheres Any ideas?? Thanks Vinaya -Original Message- From: Christian Poecher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 11:07 AM To: users@myfaces.apache.org Subject: Re: Facelets Back Button Vinaya Tirikkovalluru wrote: Hi, I recently switched over to facelets. Now all my jsps are xhtmls How do I expire the page if the user clicks on browser back button? Any ideas? Hi Vinaya, I just did it via a Phase Listener. This would work on all JSF implementations. The problem is though that due to a bug Firefox 3.0.x ignore the cache settings. I saw that they consider it a major bug and they also have a patch read with the last modified date of yesterday. Here is the code: import javax.faces.context.FacesContext; import javax.faces.event.PhaseEvent; import javax.faces.event.PhaseId; import javax.faces.event.PhaseListener; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; public class NoBrowserCachePhaseListener implements PhaseListener { public void afterPhase(PhaseEvent event) { // Do nothing special } public void beforePhase(PhaseEvent event) { FacesContext facesContext = event.getFacesContext(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); response.addHeader(Pragma, no-cache); response.addHeader(Cache-Control, no-cache); response.addHeader(Cache-Control, no-store); response.addHeader(Cache-Control, must-revalidate); response.addHeader(Expires, 0); } public PhaseId getPhaseId() { return PhaseId.RENDER_RESPONSE; } } You need to add this to your faces-config.xml: lifecycle phase-listenerNoBrowserCachePhaseListener/phase-listener /lifecycle HTH, Chris -- View this message in context: http://www.nabble.com/Facelets-Back-Button-tp20582987p20604555.html Sent from the MyFaces - Users mailing list archive at Nabble.com. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Facelets Back Button
Hi Chris, Thank you very much. It worked just fine. Thanks Vinaya -Original Message- From: Christian Poecher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 11:07 AM To: users@myfaces.apache.org Subject: Re: Facelets Back Button Vinaya Tirikkovalluru wrote: Hi, I recently switched over to facelets. Now all my jsps are xhtmls How do I expire the page if the user clicks on browser back button? Any ideas? Hi Vinaya, I just did it via a Phase Listener. This would work on all JSF implementations. The problem is though that due to a bug Firefox 3.0.x ignore the cache settings. I saw that they consider it a major bug and they also have a patch read with the last modified date of yesterday. Here is the code: import javax.faces.context.FacesContext; import javax.faces.event.PhaseEvent; import javax.faces.event.PhaseId; import javax.faces.event.PhaseListener; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; public class NoBrowserCachePhaseListener implements PhaseListener { public void afterPhase(PhaseEvent event) { // Do nothing special } public void beforePhase(PhaseEvent event) { FacesContext facesContext = event.getFacesContext(); HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse(); response.addHeader(Pragma, no-cache); response.addHeader(Cache-Control, no-cache); response.addHeader(Cache-Control, no-store); response.addHeader(Cache-Control, must-revalidate); response.addHeader(Expires, 0); } public PhaseId getPhaseId() { return PhaseId.RENDER_RESPONSE; } } You need to add this to your faces-config.xml: lifecycle phase-listenerNoBrowserCachePhaseListener/phase-listener /lifecycle HTH, Chris -- View this message in context: http://www.nabble.com/Facelets-Back-Button-tp20582987p20604555.html Sent from the MyFaces - Users mailing list archive at Nabble.com. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Facelets Back Button
Hi, I recently switched over to facelets. Now all my jsps are xhtmls How do I expire the page if the user clicks on browser back button? Any ideas? Where can I find documentation about the org.apache.myfaces.CONFIG_REFRESH_PERIOD Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Tomahawk Sandbox Partial Page rendering
Hi, I have a situation where I need to refresh different parts of the page based on conditions. Any suggestions please!!! Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
NavigationMenuItem with webflow
Hi, I am trying to integrate my application with SWF1.0 Anybody has any idea how to pass the action to the t:navigationMenuItem? I tried t:navigationMenuItem id=id1 itemLabelxyz action=flowId:sellitem-flow / This does not work. Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Problem with h:commandLink in t:dataTable
Hi, Is the backing bean in session scope or Request scope? If you have the backing bean in request scope, the bean will be re created after your search. Not sure, if this makes sense Vinaya From: m4rkuz [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2008 10:25 AM To: MyFaces Discussion Subject: Problem with h:commandLink in t:dataTable Hi Everyone, I have a little big problem, I got a CRUD like app, in the main form I have a data table that shows the result of a query and every row has a link to jump to the edit page, everything works fine, until I try to go to the next page h:commandLink action=#{backingBean.edit} with the selected row so I can edit it, the problems kicks in when I remove a line of code that I have in the getObjectList method objectList = manager.findAll(); I remove it because I need that the main page doesn't show anything until the search button is clicked, after this modification the links stop working, I cannot get to the nex page, in Debug mode I see I don't even get to the edit() methond in the backing bean, is like the bean is recreated before the action of the h:commandLink kicks and then the table data and the row are null so they don't fire any event :S The BackingBean scope is Request (it work with session scope but I don't think is necesary to hold on that bean for a whole session ) and I have try with f:param , f:attribute, f:setPropertyActionListener all works untill I remove that line What Can I do?? Code below.. t:dataTable id=perfilesTable width=100% border=0 rows=20 cellpadding=5 cellspacing=1 value=#{backingBean.objectList} var=selectedRow rowClasses=row1, row2 headerClass=tableHead t:column f:facet name=header h:outputText value=Perfiles/ /f:facet h:commandLink action=#{backingBean.edit} value=#{selectedRow.name} actionListener=#{backingBean.editAction} f:attribute name=attributeName1 value=#{selectedRow} / /h:commandLink /t:column t:column f:facet name=header h:outputText value=Active/ /f:facet h:outputText value=#{selectedRow.active}/ /t:column /t:dataTable PD: I'm totally sory I post this same question in a ongoing thread I just forgot to clear the subject Marcus V. Sánchez D. __ Enterprise Developer. Sun Certified Java Programmer (SCJP) This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
CommandLink
Hello EveryOne, Did anyone try to change the color of the command Link after visiting the Link? I am able to do it but when I come back to the page and click on the page (anywhere) the color changes to unvisited. Any ideas? Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: CommandLink
Thanks Bill. I have a question though. Why is it not working just with a:hover, a:visited ? Thanks Vinaya -Original Message- From: Zigc Junk [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2008 2:56 PM To: MyFaces Discussion Subject: Re: CommandLink You can specify those via skining. For details, read the docs at http://myfaces.apache.org/trinidad/skin-selectors.html regard Bill On Mon, Aug 11, 2008 at 9:44 AM, Vinaya Tirikkovalluru [EMAIL PROTECTED] wrote: Hello EveryOne, Did anyone try to change the color of the command Link after visiting the Link? I am able to do it but when I come back to the page and click on the page (anywhere) the color changes to unvisited. Any ideas? Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately. This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
Horizontal Navigation menu
Hi, I need to include the horizontal navigation menu in all my jsps. I have the topMenu.jsp working. The index.jsp doesn't work when I include the topMenu.jsp, though. Any help on this is appreciated. Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.
RE: Horizontal Navigation menu
Hi, If I have the f:view for menu.jsp everything works fine individually. But I cannot include this in my welcome page When I have f:subview the ids are messed up and does not take the css Any ideas please... Thanks Vinaya From: Vinaya Tirikkovalluru Sent: Monday, March 03, 2008 11:00 AM To: 'users@myfaces.apache.org' Subject: Horizontal Navigation menu Hi, I need to include the horizontal navigation menu in all my jsps. I have the topMenu.jsp working. The index.jsp doesn't work when I include the topMenu.jsp, though. Any help on this is appreciated. Thanks Vinaya This electronic message is intended only for the use of the individual(s) or entity(ies) named above and may contain information which is privileged and/or confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution, dissemination or use of the contents of this message is prohibited. If you received this message in error, please notify the sender immediately.