wood burning stoves 2.0*
The moose likes Struts and the fly likes validwhen question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validwhen question" Watch "validwhen question" New topic
Author

validwhen question

Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89
Hi!
i need to valid a field only if another field is like cash field and my value if null or is an empty string.
so i wrote:

but i get an exception:
SEVERE: ValidWhen Error for field ' data.billToName' - line 1:62: unexpected char: '''
how can i solve it?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

odelya yomtov-glick wrote:
SEVERE: ValidWhen Error for field ' data.billToName' - line 1:62: unexpected char: '''
how can i solve it?

What is this "key" name ?

Unless and untill, you don't write down the key name in proper english, complier will throw exception


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Jordan Smith
Ranch Hand

Joined: Apr 06, 2008
Posts: 89


i changed it and it still doesn't work..
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

No need of this extra condition:

Checking for "null" itself check whether the field has value or not..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validwhen question