You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org> on 2005/04/14 18:29:16 UTC
[jira] Created: (MYFACES-189) Valuebinding in Converter and Validator attributes do not work for dynamic beans
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
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
Re: [jira] Created: (MYFACES-189) Valuebinding in Converter and Validator attributes do not work for dynamic beans
Posted by Adam Winer <aw...@gmail.com>.
Mathias,
Sadly, this isn't supposed to work. If I remember correctly, I've filed
a bug against the JSF spec for this issue; but properly fixing it would
require adding, for example, get/setValueBinding() to the Validator
and Converter classes, and that's not an option for validators
and converters defined by the JSF spec.
Of course, any custom validators and converters provided by MyFaces
certainly could and should do this right.
-- Adam Winer
(About to leave for vacation)
On 4/14/05, Mathias Broekelmann (JIRA) <my...@incubator.apache.org> wrote:
> 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
>
> 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
> -
> If you want more information on JIRA, or have a bug to report see:
> http://www.atlassian.com/software/jira
>
>
[jira] Updated: (MYFACES-189) Valuebinding in Converter and Validator attributes do not work for dynamic beans
Posted by "Manfred Geiler (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-189?page=history ]
Manfred Geiler updated MYFACES-189:
-----------------------------------
type: New Feature (was: Bug)
If you really want to add this feature, please do it in a derived x:convertNumber tag/converter so that it is clearly separated as an extension to specified standard behaviour.
> 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: New Feature
> Versions: Nightly Build
> Reporter: 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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira