Hi All,
i'm trying to set up automatic validation (required validator), everything is working,
except the key lookup in the message resources. Every time i submit my form i get a
'null is required' instead of the textfield label.
I double-checked the settings about a thousand times, searched the web and the list
archive, but couldn't located my failure. I hope you can help me, because i spent way
too much time, trying to solve this little problem.
My settings:
struts-config.xml:
------------------
...
<form-bean name="addGroupDealer" type="de.softlab.ivsr.struts.form.AddGroupDealerForm">
<form-property name="groupDealerID" type="java.lang.String" />
</form-bean>
<action
attribute="add"
input="add_g"
name="addGroupDealer"
path="/actions/add_g"
type="org.apache.struts.actions.ForwardAction">
<forward name="success" path="/actions/list_g.do" />
</action>
...
validation.xml:
---------------
...
<formset>
<form name="add">
<field property="groupDealerID" depends="required">
<arg0 key="addGroupDealer.groupDealerID"/>
</field>
</form>
...
ApplicationResources.properties:
---------------------------------
# -- standard errors --
errors.header=<div class="dataFont"><ul>
errors.prefix=<li>
errors.suffix=</li>
errors.footer=</ul></div>
#-- validation errors
errors.required={0} is required
# -- display names
addGroupDealer.groupDealerID=Group Dealer ID
tiles-jsp:
----------
...
<html:form style="display:inline" method="post" action="/actions/add_g.do">
<td class="data" bgcolor="#e6e6e6" width="250"><html:text property="groupDealerID"
size="10" maxlength="6" styleClass="data"/></td>
...
Thanks in advance
jo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]