[seam-issues] [JBoss JIRA] Updated: (JBSEAM-4718) messages_en.properties not used for subsequent views unless messages output on initial view

Jeff Wexler (JIRA) jira-events at lists.jboss.org
Sun Oct 17 01:21:54 EDT 2010


     [ https://jira.jboss.org/browse/JBSEAM-4718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Wexler updated JBSEAM-4718:
--------------------------------

    Steps to Reproduce: 
Modified messages_en.properties such that org.jboss.seam.loginSuccessful= (i.e., set to nothing).

On initial page (home.xhtml) have:
<h:commandButton id="login" action="#{myBean.myCustomLogin()}" value="Account Login" />

myBean.myCustomLogin() method has:
identity.login();
redirect.setViewId("/mySpecialPage.xhtml");
redirect.execute();

mySpecialPage.xhtml has:
<h:messages id="messages" globalOnly="true"/>

Initially boot machine, eclipse, start server, go to home.seam, login, then the following is displayed in the messages area of mySpecialPage.seam:
Welcome, JohnDoe!

Further, if I now add a messages statement to home.xhtml such as
<h:outputText value="#{messages['org.jboss.seam.NotLoggedIn']}"/>
then "Login failed" is NOT displayed.

However, if I leave the modification to home.xhtml (with the messages outputText), shutdown everything including the computer such that it powers off, then restart the computer and everything, then "Login failed" is properly displayed on home.seam and after I login, no message is displayed in the messages section of mySpecialPage.seam (which is the desired behavior).


  was:
Modified messages_en.properties such that org.jboss.seam.loginSuccessful= (i.e., set to nothing).

On initial page (home.xhtml) have:
<h:commandButton id="login" action="#{myBean.myCustomLogin()}" value="Account Login" />

myBean.myCustomLogin() method has:
identity.login();
redirect.setViewId("/mySpecialPage.xhtml");
redirect.execute();

mySpecialPage.xhtml has:
<h:messages id="messages" globalOnly="true"/>

Initially boot machine, eclipse, start server, go to home.seam, login, then the following is displayed in the messages area of mySpecialPage.seam:
Welcome, JohnDoe!

Further, if I now add a messages statement to home.xhtml such as
<h:outputText value="#_{messages['org.jboss.seam.NotLoggedIn']}"/>
then "Login failed" is NOT displayed.

However, if I leave the modification to home.xhtml (with the messages outputText), shutdown everything including the computer such that it powers off, then restart the computer and everything, then "Login failed" is properly displayed on home.seam and after I login, no message is displayed in the messages section of mySpecialPage.seam (which is the desired behavior).




> messages_en.properties not used for subsequent views unless messages output on initial view
> -------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4718
>                 URL: https://jira.jboss.org/browse/JBSEAM-4718
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.2.0.GA
>         Environment: Linux ubuntu 10.04 Lucid 64-bit with AMD Turion X2 64-bit cpu on HP Touchsmart tx2 laptop. Eclipse 3.5 (Galileo Build id: 20100218-1602) with JBoss Tools (latest for Galileo). JBoss AS 5.1.0.GA. Firefox 
>            Reporter: Jeff Wexler
>
> Having the initial messages outputText on home.xhtml somehow causes seam to properly recognize messages_en.properties and subsequently use it but not having the outputText on home.xhtml results in seam to completely ignore the messages_en.properties file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list