You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Graeme Steyn <g....@cqu.edu.au> on 2007/12/20 10:26:19 UTC

[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.

Re: [Trinidad] Inline Validation incorrect when using PPR

Posted by Gerhard Petracek <ge...@gmail.com>.
hello graeme,

that's a known issue - i provided a patch (+ workaround):
https://issues.apache.org/jira/browse/TRINIDAD-842
(it's already committed)

please don't forget to close your issue TRINIDAD-880 (thanks)

regards,
gerhard



2007/12/21, Graeme Steyn <g....@cqu.edu.au>:
>
> Hi Sven,
>
> I was alredy making use of panelGroupLayouts.  I have created a JIRA
> issues (TRINIDAD-880 http://issues.apache.org/jira/browse/TRINIDAD-880)
> and attached a maven 2 project to the issue to demonstrate the problem.
>
> Regards,
>
> Graeme.
>
>
> -----Original Message-----
> From: Rottstock, Sven
> Sent: Thu 12/20/2007 7:52 PM
> To: MyFaces Discussion
> Subject: AW: [Trinidad] Inline Validation incorrect when using PPR
>
> Can you surround the components with a panelGroupLayout and let have a
> partialTrigger to the first selectOneRadio? Does it works now?
>
> Regards,
>
> Sven
>
>
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

RE: [Trinidad] Inline Validation incorrect when using PPR

Posted by Graeme Steyn <g....@cqu.edu.au>.
Hi Sven,

I was alredy making use of panelGroupLayouts.  I have created a JIRA issues (TRINIDAD-880 http://issues.apache.org/jira/browse/TRINIDAD-880) and attached a maven 2 project to the issue to demonstrate the problem.

Regards,

Graeme.


-----Original Message-----
From: Rottstock, Sven
Sent: Thu 12/20/2007 7:52 PM
To: MyFaces Discussion
Subject: AW: [Trinidad] Inline Validation incorrect when using PPR
 
Can you surround the components with a panelGroupLayout and let have a partialTrigger to the first selectOneRadio? Does it works now?

Regards,

Sven


AW: [Trinidad] Inline Validation incorrect when using PPR

Posted by "Rottstock, Sven" <Sv...@sungard.de>.
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:g.steyn@cqu.edu.au] 
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.