]
Joshua Brookes updated RF-11082:
--------------------------------
Attachment: example.zip
Contains domain classes with constraints, Managed Bean, facelet and composite components.
To run drop these into a functional JSF 2/RichFaces 4 project that supports CDI for
managed bean scanning (like SpringBeanFacesELResolver) or modify the managed bean
appropriately.
rich:graphValidator doesn't work with iterable object graph field
inside nested composite components
----------------------------------------------------------------------------------------------------
Key: RF-11082
URL:
https://issues.jboss.org/browse/RF-11082
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-validators
Affects Versions: 4.0.0.Final
Reporter: Joshua Brookes
Labels: composite_component, graphValidator, validation, validator
Attachments: example.zip
There is a known issue with Graph Validator where it can only resolve a cloned object
itself, but not variables derived from it ( uidata variables, c:set, alias etc ). If you
need to validate variables in the iterator, a loop variable is needed to explicitly
reference fields. This workaround does not work when used in nested composite components.
Validation will not use the values input into the form when the bug occurs. This only
happens when a class-level constraint exists on the class used int he iterable field.
This JIRA is for the latter issue, but an issue should also be created for the original
variant of the problem.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: