[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2989) Log Seam FacesMessages with a filterable flag

Dan Allen (JIRA) jira-events at lists.jboss.org
Fri May 23 16:20:42 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2989?page=comments#action_12414120 ] 
            
Dan Allen commented on JBSEAM-2989:
-----------------------------------

To keep things simple, I think a better approach is to disable adding the message if the message key is blank or some special value (like DISABLED). That way, you just need to keep around a copy of your custom Seam messages and internally, Seam remains straightforward.

> Log Seam FacesMessages with a filterable flag
> ---------------------------------------------
>
>                 Key: JBSEAM-2989
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2989
>             Project: Seam
>          Issue Type: Feature Request
>          Components: JSF Integration
>    Affects Versions: 2.0.1.CR1
>            Reporter: Pete Muir
>             Fix For: 2.1.0.BETA1
>
>
> In general, Seam is over verbose in showing default messages to the end user. Most of these default messages has no real sense and should be rather logged at debug level to the log file. But we are forced to shown these messages if only we put h:message on the page :(.
> Currently this can be dealt with by overriding Seam's FacesMessages bean with higher precedence and dropping all Seam internal messages to file. Only messages added by my method addPublicMessage() are actually shown to end user.
> This realization is clumsy but it allows me to get rid of this unfortunate Seam's default behavior.
> As a solution we can add priorities like SEAM_INFO. Then you could filter these messages out in your custom FacesMessagesass. Seam would translate these to INFO at the view layer. Or some other flag you can access (to avoid overloading the meaning of priority). Perhaps also the ability to drop messages below a given priority.

-- 
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