struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: 1.21
Date Sat, 24 Jul 2004 12:04:26 GMT
Works for me - try putting addtional parens around the whole expression:

  <var-value>((submit == 'delete') or (*this* != null))</var-value>


Niall
----- Original Message ----- 
From: "Matthew Van Horn" <matthew_van_horn@yahoo.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Saturday, July 24, 2004 12:05 AM
Subject: Re: 1.21


> I'm trying but I cannot seem to get the validwhen validation to work
> with other validators - especially mask.
> 
> I'm not sure if it is me doing something wrong, or it is unsupported.
> 
> Here's what I am trying:
> <form name="dynaPhoneNumberForm">
>     <field property="phoneNumber" depends="validwhen,mask">
>         <arg0 key="phoneNumber.displayname" />
>         <var>
>             <var-name>test</var-name>
>             <var-value>(submit == 'delete') or (*this* !=
> null)</var-value>
>         </var>
>         <var>
>             <var-name>mask</var-name>
>             <var-value>^\d{4}-\d{4}$</var-value>
>         </var>
>     </field>
> </form>
> 
> Other than this, I have not had major issues yet.
> 
> On Sat, 2004-07-24 at 07:40, Vic Cekvenich wrote:
> > Is anyone using 1.21 in production?
> > 
> > Any issues... ? Any issues w/ validator?
> > 
> > tia,
> > .V
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> -- 
> Matthew Van Horn <matthew_van_horn@yahoo.com>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message