[seam-issues] [JBoss JIRA] (SEAMFACES-225) messages.error should prevent page navigation

Cody Lerum (Commented) (JIRA) jira-events at lists.jboss.org
Wed Jan 4 16:27:09 EST 2012


    [ https://issues.jboss.org/browse/SEAMFACES-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653897#comment-12653897 ] 

Cody Lerum commented on SEAMFACES-225:
--------------------------------------

I think you have a misunderstanding navigation rules of JSF.

An messages.error("blah") should not block navigation. In fact one of the nice things about it is that it will carry and display to the next view-id on a redirect.
                
> messages.error should prevent page navigation
> ---------------------------------------------
>
>                 Key: SEAMFACES-225
>                 URL: https://issues.jboss.org/browse/SEAMFACES-225
>             Project: Seam Faces
>          Issue Type: Bug
>         Environment: JBoss 7.0.2.Final, JBoss Seam 3.1.0.CR1
>            Reporter: hantsy bai
>
> Please check out my demo application and browse /tags.xhtml.
> 1. click the Button to create a Tag, 
> 2. input something 
> 3. press Create 5
> I used Messages.error in the create5 method, it SHOULD prevent the page navigiation to tags.xhtml page, but it returned to the tags.xhtml page.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list