[ http://mc4j.org/jira/browse/STS-325?page=comments#action_10563 ] 
            
Ed Smith commented on STS-325:
------------------------------

Thanks for the info, Tim.  It helps clarify what I saw in the code regarding 
the getMessages() method and makes perfect sense.  I should be able to work 
around this issue for now by placing the messages into HttpSession for the 
ActionBean.

> Messages disappear under certain circumstances when performing a redirect
> -------------------------------------------------------------------------
>
>                 Key: STS-325
>                 URL: http://mc4j.org/jira/browse/STS-325
>             Project: Stripes
>          Issue Type: Bug
>          Components: Context Management
>    Affects Versions: Release 1.4.2
>         Environment: Win XP SP2, JBoss 4.0.5, Eclipse 3.2.1, Java 1.5.0_09, 
> Stripes 1.4.2
>            Reporter: Ed Smith
>         Assigned To: Tim Fennell
>            Priority: Minor
>
> The scenario involves performing a database update during an action from Page 
> A then redirecting to Page B and displaying a status message.  The message is 
> populated during the Page A action using getContext().getMessages().add() and 
> survives under normal circumstances in FlashScope to be displayed by Page B.
> However, in this case Page B contains a <stripes:useActionBean/> tag and in 
> the called event I am attempting to determine whether or not there exist any 
> messages in the context:
> if (getContext().getMessages().size() > 0)
>                       log.info("There are messages in the context");
> When this code snippet executes during the useActionBean event for Page B, 
> the context does not see the messages already in FlashScope and consequently 
> returns a new List<Message> with size == zero and the log statement never 
> executes.  Also, no messages are displayed by <stripes:messages/> in Page B.

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

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to