Hi All,
I'm new to Struts and am using an indexedFieldProperty in my project. When I access the bean it returns me the object that is inside the vector "vecItem" instead of the vector "vecLocation".
My validation.xml is as follows:
<form name="AForm">
<field indexedListProperty="objOrder.vecItem" property="vecLocation"
depends="requiredCurrRateDate1" >
<var>
<var-name>orderType</var-name>
<var-value>objOrder.orderType</var-value>
</var>
</field>
My questions are:
1) How is the bean being passed? When i used <field property=".."" ...> the
bean it returns to me is the form bean i.e. AForm
2) How do I access the form bean in my method. So that I can access my variable orderType
via ValidatorUtils.getValueAsString(bean, field.getVarValue("orderType"))?
Thanks.
--
Regards,
Eugene
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org