<t:messages> tag doesn't work for input fields found in dataTables
------------------------------------------------------------------
Key: TOMAHAWK-452
URL: http://issues.apache.org/jira/browse/TOMAHAWK-452
Project: MyFaces Tomahawk
Type: Bug
Versions: 1.1.2
Reporter: Val Blant
If you try to use an output label for an input field in a dataTable, the label
will not be found due to an error in HtmlMessageRenderer.createOutputLabelMap()
The input field's client id is originally added to FacesContext during the
validation phase (if the validator fails) with input field's client id
containing the row index (ex.: "body:cropYearForm:1:holdbackThreshold").
When HtmlMessageRenderer.createOutputLabelMap() constructs the index of all
HtmlOutputLabels on the page, the same input field's client id does not contain
the row index (ex. "body:cropYearForm:holdbackThreshold").
As a result, the indexed MessageLabelInfo is never found in
HtmlMessageRenderer.findInputLabel(FacesContext facesContext, String
inputClientId), b/c inputClientId contains the client id with the row index,
whereas the key in outputLabelMap does not. (ex.
"body:cropYearForm:1:holdbackThreshold" vs.
"body:cropYearForm:holdbackThreshold").
Perhaps something else should be used as the key in outputLabelMap?
--
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