I've solved the problem:

public void render(Field field, String message, MarkupWriter writer,
FormSupport formSupport) {
                formSupport.addValidation(field, "yesno", message, null);
        }


You're adding validator that isn't in Tapestry.Validator

Try this instead:

public void render(Field field, String message, MarkupWriter writer,
FormSupport formSupport) {
                formSupport.addValidation(field, "regexp", message, "<your 
yesno regexp>");
        }


This should solve the problem

On Fri, Nov 14, 2008 at 04:49, Geoff Callender <[EMAIL PROTECTED]> wrote:

>
> -1 (non-binding)
> I must change my vote until someone confirms there is not a validators
> problem.
>
> Can someone please try an input field with a required, email validator and
> client-side validation turned on and confirm whether they, too, get a red
> error overlaying the top of the page saying something like "Function
> Tapestry.Validator.email() does not exist for field 'myEmailAddress'."
>
> It's so distracting and clearly unsuitable for production.
>
> Regards,
> Geoff
>
>
>
> Geoff Callender-3 wrote:
> >
> > +0 (non-binding)
> >
> > It's passed all of my tests but I'm seeing red messages at the top of
> > some screens, eg.
> >
> >       Function Tapestry.Validator.yesno() does not exist for field
> > 'newToTapestry'.
> >
> > I'm seeing it on the following page after upgrade to 5.0.16:
> >
> >
> >
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/creatingtranslators1
> >
> > Does this just require a simple code change at my end?
> >
> > Regards,
> > Geoff
> >
> > On 11/11/2008, at 7:46 PM, Ted Steen wrote:
> >
> >> Ted Steen: +1 (non-binding)
> >>
> >> 2008/11/11 David Solis <[EMAIL PROTECTED]>:
> >>> David Solis: +1
> >>>
> >>> On Mon, Nov 10, 2008 at 6:55 PM, Howard Lewis Ship
> >>> <[EMAIL PROTECTED]> wrote:
> >>>> I've created and uploaded a release of Tapestry 5.0.16, ready to
> >>>> be voted upon.
> >>>>
> >>>> It's been two months since 5.0.15, and I've fixed over 80 bugs.  I
> >>>> think Tapestry 5.0.16 is of release candidate quality and it
> >>>> should be
> >>>> made publically available to verify its readiness to be the GA
> >>>> release
> >>>> as well.
> >>>>
> >>>> The files are uploaded to:
> >>>>
> >>>> http://people.apache.org/~hlship/tapestry-releases/<http://people.apache.org/%7Ehlship/tapestry-releases/>
> >>>>
> >>>> and a Maven repository:
> >>>>
> >>>> http://people.apache.org/~hlship/tapestry-ibiblio-rsynch-repository/<http://people.apache.org/%7Ehlship/tapestry-ibiblio-rsynch-repository/>
> >>>>
> >>>> Please examine these files to determine if a new preview release,
> >>>> 5.0.16, is ready, and of release candidate quality.
> >>>>
> >>>> I've also created a 5.0.16 tag in Subversion:
> >>>>
> >>>> http://svn.apache.org/viewvc/tapestry/tapestry5/tags/releases/
> >>>> 5.0.16/
> >>>>
> >>>> On a successful vote, I'll move the files from these directories to
> >>>> the proper distribution directories.
> >>>>
> >>>> Vote will run for three days; on success I'll move the voted
> >>>> artifacts
> >>>> into place and send out appropriate notifications.
> >>>>
> >>>> --
> >>>> Howard M. Lewis Ship
> >>>>
> >>>> Creator Apache Tapestry and Apache HiveMind
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/-VOTE--Release-5.0.16----Release-Candidate-tp1483148p1496710.html
> Sent from the Tapestry Developers mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
С уважением,
Дмитрий Гусев

Reply via email to