• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validWhen Error

 
satyamreddy reddybrother
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello any body can help

iam using validwhen but iam not getting any validation a client side

validation-rules.xml
<validator name="validwhen"
msg="errors.required"
classname="org.apache.struts.validator.validwhen.ValidWhen"
method="validateValidWhen"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
org.apache.commons.validator.Validator,
javax.servlet.http.HttpServletRequest"/>
and
validaion.xml
<form name ="/mcclist">

<field property ="Id" depends ="validwhen">
<arg0 key="arrsetup.arrid" resource="false"/>

<var>
<var-name>test</var-name>
<var-value>((issuerId == null)or(*this*!= null) </var-value>
</var>
</field>
</form>
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"reddybrother",

You had a valid display name, now you do not. Please change it back since accounts with invalid display names get deleted.

We require display names to be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Thanks,
Dave.
 
yin jiang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
validwhen validation will only be done on server-client.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic