Re: setting a validation error on another field

2006-02-09 Thread Simone Gianni
Hi Joost, there is one situation in which .validate() returns true even if there are errors, when the widget (in this case the Group) or one of its ancestors, are in any state different from ACTIVE. Looking your code snippet it seems like you set the group state AFTER calling validate(), but i

RE: setting a validation error on another field

2006-02-09 Thread Joost Kuif
I use version 2.1.8.. -Oorspronkelijk bericht- Van: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Verzonden: Thursday, February 09, 2006 2:00 PM Aan: users@cocoon.apache.org Onderwerp: Re: setting a validation error on another field Apparently, the current code on svn for

Re: setting a validation error on another field

2006-02-09 Thread Antonio Fiol Bonnín
if > (!blogchoice.getValue().equals("blogroom")){ > > parent.lookupWidget("../page3").setState(WidgetState.ACTIVE); > } else { > > parent.lookupWidget("../page2").setState(WidgetState.ACTIVE); > } > } > > >

RE: setting a validation error on another field

2006-02-09 Thread Joost Kuif
kelijk bericht- Van: Andrew Timberlake [mailto:[EMAIL PROTECTED] Verzonden: Thursday, February 09, 2006 9:59 AM Aan: users@cocoon.apache.org Onderwerp: Re: setting a validation error on another field Joost Kuif wrote: > Hi people, > > > I have a formdefinition with multiple fiel

Re: setting a validation error on another field

2006-02-09 Thread Andrew Timberlake
Joost Kuif wrote: Hi people, I have a formdefinition with multiple fields. For some of these fields uniqueness must be checked against a table in a database. I want to check this towards the database with the use of one stored procedure. I tried to with something like the example below, but thi

setting a validation error on another field

2006-02-09 Thread Joost Kuif
Hi people, I have a formdefinition with multiple fields. For some of these fields uniqueness must be checked against a table in a database. I want to check this towards the database with the use of one stored procedure. I tried to with something like the example below, but this didn't work. The p