Hi Natalie and everybody,
do you know if I can do a requiredif check against a second property in the same bean?
something like:
<form name="FundForm">
<field property="value" indexedListProperty="funds" depends="integer,requiredif">
<arg0 key="global.value"/>
<var>
<var-name>field[0]</var-name>
<var-value>funds.valueNeeded</var-value>
</var>
<var>
<var-name>fieldTest[0]</var-name>
<var-value>EQUAL</var-value>
</var>
<var>
<var-name>fieldValue[0]</var-name>
<var-value>true</var-value>
</var>
</field>
</form>
Timo
It depends on if it is indexed or not.....
Here is an example that I have...
<field property="prepTime" indexedListProperty="prepTime" depends="float,isFloatNegative" page="3"> <arg0 key="label.revRec.mtgMetricPrepTime"/> </field>
I am using a multi-page for that is why I have the page attribute.
The prepTime property is a String[].
Here is an example of a property that is part of the defectsList collection. defectsList is an ArrayList. I wrote the isFieldEmpty validation.
<field property="defectDescription" indexedListProperty="defectsList" depends="isFieldEmpty" page="4"> <arg0 key="label.revRec.defectDescrip"/> </field>
Does this help?
Natalie
Timo Neumann wrote:
Natalie D Rassmann wrote:
So this works if "forms" is a collection of beans with a property "value"?
<form name="FundForm"> <field property="forms.value" depends=integer"> <arg0 key="global.value"/> </field> </form>
Like you would any other type of form. Do you know how to set up the validator framework? If not try this link below:
http://jakarta.apache.org/struts/userGuide/dev_validator.html
Timo Neumann wrote:
Natalie D Rassmann wrote:
yes
how?
Timo Neumann wrote:
Hi all,
is it possible to use the validator framework to check values of beans that are stored in a collection in a DynaValidatorForm?
TIA,
Timo -- F&F Computer Anwendungen Tel: +49 89 51727-352 und Unternehmensberatung GmbH Fax: +49 89 51727-111 Westendstr. 195 Mail: [EMAIL PROTECTED] D-80686 Muenchen http://www.ff-muenchen.de
--------------------------------------------------------------------- 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]
-- F&F Computer Anwendungen Tel: +49 89 51727-352 und Unternehmensberatung GmbH Fax: +49 89 51727-111 Westendstr. 195 Mail: [EMAIL PROTECTED] D-80686 Muenchen http://www.ff-muenchen.de
--------------------------------------------------------------------- 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]
-- F&F Computer Anwendungen Tel: +49 89 51727-352 und Unternehmensberatung GmbH Fax: +49 89 51727-111 Westendstr. 195 Mail: [EMAIL PROTECTED] D-80686 Muenchen http://www.ff-muenchen.de
--------------------------------------------------------------------- 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]
-- F&F Computer Anwendungen Tel: +49 89 51727-352 und Unternehmensberatung GmbH Fax: +49 89 51727-111 Westendstr. 195 Mail: [EMAIL PROTECTED] D-80686 Muenchen http://www.ff-muenchen.de
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]