--- Hardy Ferentschik wrote:
> @Validations(
>     expressions = {
>         @ExpressionValidator(
>             expression =
> "searchParam.keywords ne null and
> searchParam.location ne null" message
> = "Wrong search parameters")
>     }

Btw, I haven't tested this yet, but I suspect you
wouldn't want 'null' anyway, because empty string
params will come in as... well, empty strings, not
null.
           
@ExpressionValidator(expression="(searchParam.keywords
!= '') && (searchParam.location != '')", message="Need
keywords and location.")

worked for me.

I still wouldn't do it this way, as it's adding an
action-level msg (rather than highlighting the
particular field that's missing), but that's a matter
of preference and/or requirements.

d.



 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to