The fieldexpression validator would handle most dependent checks, but i
think there's no out-of-the-box solution if we want the expression to act as
a guard condition alone and not as a validation. Please check the archives
for comments on this.

-Joseph



On 9/11/07, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]> wrote:
>
> Did you look into expression validator?
>
> -----Original Message-----
> From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 11, 2007 10:28 AM
> To: Struts Users Mailing List
> Subject: [S2] validation issue
>
> Hi all!
>
> I´m trying to validate two fields that depends on another field.
>
> What I was doing in S1 is (for field "in"):
>
> <field property="in" depends="requiredif">
>    <msg name="validwhen"
> key="ErrorMessages.applicationIdRepresent.sameReference"/>
>    <arg position="0" key="ProcessorHTTPDetails.in"/>
>    <msg name="mask" key="ProcessorHTTPDetails.in.help"/>
>    <var>
>         <var-name>field[0]</var-name>
>        <var-value>editParams</var-value>
>    </var>
>    <var>
>        <var-name>fieldTest[0]</var-name>
>        <var-value>NOTNULL</var-value>
>    </var>
> </field>
>
> But now in S2, there is no "requiredif" validator :(
>
> Any idea about how can I do to get the same validation effect?
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> 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