thanks for all the help Tib,
I'll give it a try.
Brian

----- Original Message -----
From: "Gemes Tibor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 12:03 PM
Subject: Re: [OT] FRIDAY: HTML Checkboxes SUCK!!!


> Brian McSweeney írta:
>
> >So how would you do that for yes|no ?
> >Something like:
> >
> > <field property="myField"
> >       depends="mask">
> >       <arg0 key="myField"/>
> >       <var>
> >               <var-name>mask</var-name>
> >               <var-value>yes|no</var-value>
> >       </var>
> > </field>
> >
> >Forgive my woeful lack of regular expression knowledge :-)
> >
> It uses the javascript regexp  in conjuction with the jakarta-oro
> regexps. jakarta-oro
> is almost fully compatible w/ perl type regexps.
> I've learned all my regexp knowledge from the perlre manual pages.
> This might help you as well. Check this out:
> http://www.perldoc.com/perl5.6.1/pod/perlre.html
>
> Here is an example for this:
>                <var>
>                    <var-name>mask</var-name>
>                    <var-value>(yes|no)</var-value>
>                </var>
>
> I am thinking whether the required validator would be enough however a
> naughty
> power-user entering invalid request-parameters could make the app throw
> exception
> in this case.
>
> Tib
>
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to