What build of Tapestry are you using? While I've never used @Validate before
I believe it should work the same.

Have you created a form field to see if it's specific to the annotation?

Josh

On 10/15/07, mogulwraith <[EMAIL PROTECTED]> wrote:
>
>
> Tapestry 5
> To restate, Im trying to do something similar to the documentation listed
> near the end of this page
>
> http://tapestry.apache.org/tapestry5/tutorial1/forms.html
>
> for your convenience the sample code is as follows:
>
> @Validate("required,regexp=\\d{5}(-\\d{4})?")
> public String getZip()
> {
>    return _zip;
> }
>
> But Im getting the error: Failure reading parameter validate of component
> core/PropertyEditBlocks:textfield: Unknown validator type 'regexp'.
> Configured validators are max, maxlength, min, minlength, required.
>
> Do I have to manually create the UI element for the beaneditform as you
> have
> listed or is there something I have to do to get the Validate annotation
> to
> work for regular expressions?
>
>
> Josh Canfield-2 wrote:
> >
> > Can you provide us some code and error message?
> >
> > It should look something like this...
> >
> > <input t:id="runningTime" t:type="textfield" t:size="6" t:value="
> > video.runningTime" t:validate="required,regexp=\d+:\d{2}" type="text" />
> >
> > Josh
> >
> > On 10/12/07, mogulwraith <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> The documentation shows a validation of a zip code but an Unknown
> >> Validator
> >> error is produced.
> >> What do I need to do differently than what is written in the
> >> documentation?
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Validate-regexp-error-tf4616208.html#a13183605
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > --
> > TheDailyTube.com. Sign up and get the best new videos on the internet
> > delivered fresh to your inbox.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Validate-regexp-error-tf4616208.html#a13219821
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

Reply via email to