[
http://issues.apache.org/jira/browse/MYFACES-1140?page=comments#action_12367028
]
Dave commented on MYFACES-1140:
-------------------------------
great!
It means that I can do the following:
<h:inputText id="_1234" label="#{row.propertyName}"
required="true" value="#{row.propertyValue}" />
In case of validation error, the label will be used, like:
Color: value is required
where Color is the property name.
when will this feature be available in MyFaces?
Thanks!
> 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