You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Adam Winer (JIRA)" <de...@myfaces.apache.org> on 2006/02/20 07:37:49 UTC

[jira] Commented: (MYFACES-1140) Replace ID for messages by adding "replaceIdForMessage" attribute

    [ http://issues.apache.org/jira/browse/MYFACES-1140?page=comments#action_12367004 ] 

Adam Winer commented on MYFACES-1140:
-------------------------------------

Note the JSF 1.2 solution, which is to use a "label" attribute on the component with the error, not the clientID.

> Replace ID for messages by adding "replaceIdForMessage" attribute
> -----------------------------------------------------------------
>
>          Key: MYFACES-1140
>          URL: http://issues.apache.org/jira/browse/MYFACES-1140
>      Project: MyFaces
>         Type: New Feature
>   Components: Tomahawk
>     Versions: Nightly
>  Environment: JBoss  4.0.3, XP
>     Reporter: Dave
>     Priority: Critical

>
> A Java property map, a collection of name/value pairs,  is renederd as a dataTable, and user can change values.
> Two columns: property name and property value. Values are rendered in a subview as different components based on their types.
> For validation errors or conversion errors, the generated IDs are used, for example,
>     "_idJsp155": value is required
> <outputLabel for=".."> does not work in this case.
> An optional attribute for UIData component like
>     replaceIdForMessages="#{row.propertyName}"
>  would solve the problem.
>  Its value can bind to a back bean property, supporting localization automatically.
> It is more efficient than <outputLabel for="..."> that requires findComponent() to search the tree.

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