You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Dave (JIRA)" <de...@myfaces.apache.org> on 2006/02/20 00:05:28 UTC
[jira] Created: (MYFACES-1140) Replace ID for messages by adding
"replaceIdForMessage" attribute
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
[jira] Commented: (MYFACES-1140) Replace ID for messages by adding
"replaceIdForMessage" attribute
Posted by "Dave (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-1140?page=comments#action_12367101 ]
Dave commented on MYFACES-1140:
-------------------------------
I just realized that the label will not work in my case.
In my case property name and value are in two table columns. A label has to be in the same column as its value.
> 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
[jira] Commented: (MYFACES-1140) Replace ID for messages by adding
"replaceIdForMessage" attribute
Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
[ 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
[jira] Commented: (MYFACES-1140) Replace ID for messages by adding
"replaceIdForMessage" attribute
Posted by "Dave (JIRA)" <de...@myfaces.apache.org>.
[ 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