You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org> on 2010/04/01 22:30:27 UTC

[jira] Commented: (MYFACES-2624) Automatically add h:messages if ProjectStage is Development

    [ https://issues.apache.org/jira/browse/MYFACES-2624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12852534#action_12852534 ] 

Jakob Korherr commented on MYFACES-2624:
----------------------------------------

The code committet works for the built-in facelets VDL when using <h:body> or just <body> in the view. This is exactly the way Mojarra deals with the problem (known from debugging).

I also found out that Mojarra adds a log message with all the unhandled FacesMessages when ProjectStage is Production, which is also kinda nice. I think we should do that too!

> Automatically add h:messages if ProjectStage is Development
> -----------------------------------------------------------
>
>                 Key: MYFACES-2624
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2624
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta-3
>            Reporter: Jakob Korherr
>            Assignee: Jakob Korherr
>         Attachments: MYFACES-2624-add-UIMessages-to-UIForm.patch
>
>
> If ProjectStage is Development and there is no h:messages component on the current view we should automatically add h:messages to the component tree, because many users often forget about adding this useful (debug) component and wonder why their actions are never called.
> This is also an official JSF 2.0 spec requirement, however I couldn't find it in the spec-pdf or in the javadoc, but in the spec issue tracker [1] and on several blogs like Ryan Lubke's Blog [2]. Furthermore Mojarra also does it.
> [1] https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=314
> [2] http://blogs.sun.com/rlubke/entry/jsf_2_0_new_feature2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.