struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Tillmann" <>
Subject "Valid when"-Example
Date Mon, 03 Apr 2006 08:08:48 GMT

would someone be so kind to help me with the following problem:
A date field should only be validated 
if another checkbox isn't selected.
I'm not sure how to do it:
Do I have to use validwhen or reiqired-if??
I cannot find any good examples or references concerning my problem.

Here is my code snippet:

<form name="ItemForm">
<field property="time" depends="requiredif,date">
<arg0 key="error.form.time"/>
//-->this is the property that should decide if a check
is necessary or not (the bean-property of a html-checkbox)

Help would be highly appreciated as this is really driving me crazy 

Thanks a lot

Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL!

GMX Produkte empfehlen und ganz einfach Geld verdienen!
Satte Provisionen für GMX Partner:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message