[ http://issues.apache.org/jira/browse/MYFACES-189?page=all ]
Mathias Broekelmann updated MYFACES-189:
----------------------------------------
type: Bug (was: New Feature)
Description:
It is not possible to use a value binding which references a dynamically
created bean (like the row in a datatable) in the converter and validator tags.
These valuebindings are evaluated at creation time (doStartTag() method in the
tag).
Here is an example which will not work:
<h:datatable value="#{data.rows}" var="row">
<h:column>
<h:outputText value="#{row.numberValue}">
<f:convertNumber minFractionDigits="#{row.numberScale}"/> <-- this will
not work since row is not found.
</h:outputText>
</h:column>
</h:datatable>
I'will provide the patches if there will be an agreement that this should work.
Since it is not a problem to evaluate the bindings at the right time (when
converting or validating the value).
was:
It is not possible to use a value binding which references a dynamically
created bean (like the row in a datatable) in the converter and validator tags.
These valuebindings are evaluated at creation time (doStartTag() method in the
tag).
Here is an example which will not work:
<h:datatable value="#{data.rows}" var="row">
<h:column>
<h:outputText value="#{row.numberValue}">
<f:convertNumber minFractionDigits="#{row.numberScale}"/> <-- this will
not work since row is not found.
</h:outputText>
</h:column>
</h:datatable>
I'will provide the patches if there will be an agreement that this should work.
Since it is not a problem to evaluate the bindings at the right time (when
converting or validating the value).
Environment:
Changed to bug since I´ve not found in spec that it forbids use of
valuebindings for validator and converter properties.
> Valuebinding in Converter and Validator attributes do not work for dynamic
> beans
> --------------------------------------------------------------------------------
>
> Key: MYFACES-189
> URL: http://issues.apache.org/jira/browse/MYFACES-189
> Project: MyFaces
> Type: Bug
> Versions: Nightly Build
> Reporter: Mathias Broekelmann
> Assignee: Mathias Broekelmann
>
> It is not possible to use a value binding which references a dynamically
> created bean (like the row in a datatable) in the converter and validator
> tags. These valuebindings are evaluated at creation time (doStartTag() method
> in the tag).
> Here is an example which will not work:
> <h:datatable value="#{data.rows}" var="row">
> <h:column>
> <h:outputText value="#{row.numberValue}">
> <f:convertNumber minFractionDigits="#{row.numberScale}"/> <-- this will
> not work since row is not found.
> </h:outputText>
> </h:column>
> </h:datatable>
> I'will provide the patches if there will be an agreement that this should
> work. Since it is not a problem to evaluate the bindings at the right time
> (when converting or validating the value).
--
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