Issue Details (XML | Word | Printable)

Key: JAVASERVERFACES_SPEC_PUBLIC-543
Type: Sub-task Sub-task
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Ed Burns
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
javaserverfaces-spec-public
JAVASERVERFACES_SPEC_PUBLIC-972

@Valid and JSF

Created: 17/Apr/09 07:16 AM   Updated: 08/Nov/13 09:16 PM
Component/s: Validation/Conversion
Affects Version/s: 2.2 Sprint 8
Fix Version/s: 2.2

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: Macintosh


Issuezilla Id: 543
Status Whiteboard:

cat2 frame size_medium importance_medium

Tags:
Participants: Ed Burns, gerhard_petracek and rogerk


 Description  « Hide

Consider this using page

<h:form>
<h:inputText value="#{person.name" />
<h:inputText value="#{person.email" />

<ez:address person="#{person"}>
<f:validateBean />
</ez:address>

</h:form>

and this composite component

<comp:interface>
<comp:attribute name="person" />
<comp:editableValueHolder target="street" />
<comp:editableValueHolder target="city" />
</comp:interface>

<comp:implementation>
<h:inputText value="#{cc.attrs.person.address.street}" />
<h:inputText value="#{cc.attrs.person.address.city}" />
</comp:implementation>

I'd like to be able to simply put the JSR-303 @Valid annotation on the entire Person bean and know that
the fields will be validated appropriately according to the rules for that annotation. Currently I don't
think this is possible.



Ed Burns added a comment - 24/Sep/09 09:13 AM

Move to unscheduled target milestone


Ed Burns added a comment - 24/Nov/09 07:48 AM

Prepare to delete "spec" subcomponent.


rogerk added a comment - 05/Mar/10 07:46 AM

cat2


Ed Burns added a comment - 17/Mar/10 02:01 PM

frame


Ed Burns added a comment - 15/May/10 07:54 AM

These are targeted at 2.1.


Ed Burns added a comment - 08/Jun/10 12:57 PM

triage


Ed Burns added a comment - 22/Jun/10 09:05 PM

sheetalv


rogerk added a comment - 27/Oct/10 12:23 PM

triage


gerhard_petracek added a comment - 15/Apr/11 04:55 AM

BV v1 doesn't allow @Valid at the class level - see:
@Target({ METHOD, FIELD, CONSTRUCTOR, PARAMETER })
@Retention(RUNTIME)
public @interface Valid {}

What we should support is something similar - see http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-972


Ed Burns added a comment - 06/Jun/11 05:36 PM

Bulk assign all of Sheetal's spec issues to me.