Can you surround the components with a panelGroupLayout and let have a 
partialTrigger to the first selectOneRadio? Does it works now?

Regards,

Sven

-----Ursprüngliche Nachricht-----
Von: Graeme Steyn [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 20. Dezember 2007 10:26
An: MyFaces Discussion
Betreff: [Trinidad] Inline Validation incorrect when using PPR

Hi,

I have being experiencing a inline validation problem with Trinidad 1.2.4 (with 
Facelets) and was wondering if anyone is aware of a work-around or pending fix. 
 It appears that the problem may be related to TRINIDAD-96 - Validators should 
be added incrementally, not set as a whole.

Basically, field 1 is a tr:selectOneRadio component (required = true) and based 
on the selection, field 2 (another tr:selectOneRadio component) gets changed 
using ppr to become required or optional.  Assuming that field 1 only has 2 
values - "yes" for field 2 being optional and "no" for field 2 being required.  
Inline validation fails after executing the following sequence:

1. Page is first displayed - both radio buttons have no selection and hitting 
submit causes a value required message to appear for field 1. Correct.
2. Set field 1 to "No" and then to "Yes".  Press submit and a value required 
message appears for field 2, even though its required property is set to false 
on the component at this point.

Using Firebug, the ppr requests appear to have being updating the page 
correctly, however, it appears that once the required validation is added to 
the js validation array by selecting "No", it never gets removed.  Soo even 
though the component has its required property set to false, the js still 
appears to think that field 2 is required.

Any information would be appreciated.

Thank you.

Graeme.

Reply via email to