Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts validation - one validation rule  RSS feed

 
Per Lovdinger
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have a question concerning validator framework:

If have the same attribute for example salary in two forms is there any possibility
to define the validation rule in one place.
So that my form-field can depend on that rule.

regards


<form-validation>
<formset>

<form name="userFormVF">
<field property="userId" depends="required">
<arg0 key="prompt.userId"/>
</field>
<field property="salary" depends="double">
<arg0 key="prompt.salary"/>
</field>
</form>

<form name="userFormDVF">
<field property="userId" depends="required">
<arg0 key="prompt.userId"/>
</field>
<field property="salary" depends="double">
<arg0 key="prompt.salary"/>
</field>
</form>
</formset>
</form-validation>
 
Sheldon Fernandes
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At present, I don't think this is supported.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!