[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1274) Not able to query FacesMessages to determine if any messages have been added.

Nathaniel Stoddard (JIRA) jira-events at lists.jboss.org
Tue May 1 12:37:31 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1274?page=comments#action_12361026 ] 
Nathaniel Stoddard commented on JBSEAM-1274:


I have a pageflow where from one page, I transition (with a validation action method -- void return) to a decision node.  The decision node is supposed to determine if there are errors present and decide which page to transition to next.  I was reading the Seam documentation where it said that it's preferred that actions have simple values, e.g. "next", instead of using the result of an action method -- the intent was to decouple the business logic and place that in the pageflow instead of the JSP.

I was making an inductive jump and assumed that the same thing should happen within pageflows.  I could return something other than void from my validation method, but at that point I'm coupling the business logic and the pageflow logic.  That would make it more difficult for me to reuse that validation method, aggregate validation methods, etc.

If there's already an established architectural or use pattern that does the same thing, I'd be happy to adopt it.  I'm a bit new to the Seam world, so it's very possible (probable most of the time) that I'm simply doing things the wrong way.

> Not able to query FacesMessages to determine if any messages have been added.
> -----------------------------------------------------------------------------
>                 Key: JBSEAM-1274
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1274
>             Project: JBoss Seam
>          Issue Type: Feature Request
>    Affects Versions: 1.2.1.GA
>            Reporter: Nathaniel Stoddard
> It would be helpful to determine if messages have been added to FacesMessages.  At this point, it is impossible to determine if messages are present in FacesMessages.

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


More information about the seam-issues mailing list