Re: @FieldExpressionValidator calling action's method

2008-08-03 Thread Hrvoje Ban
On Sun, Aug 3, 2008 at 5:04 AM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > Sorry to hear it didn't work. > > I am having my own share of problems with that ExpressionValidator, and I > found one useful suggestion in the following doc: > http://www.opensymphony.com/xwork/wikidocs/ExpressionValid

Re: @FieldExpressionValidator calling action's method

2008-08-02 Thread Pierre Thibaudeau
Sorry to hear it didn't work. I am having my own share of problems with that ExpressionValidator, and I found one useful suggestion in the following doc: http://www.opensymphony.com/xwork/wikidocs/ExpressionValidator%20Tips.html Look for the section entitled "Use the validation message for debuggi

Re: @FieldExpressionValidator calling action's method

2008-08-02 Thread Hrvoje Ban
On Sat, Aug 2, 2008 at 9:17 PM, Pierre Thibaudeau <[EMAIL PROTECTED]> wrote: > Since it's "expression" is an OGNL expression, have you tried instead: > > @FieldExpressionValidator(expression = "usernameAvailable", message = "...") > > which would attempt to find, in turn, getUsernameAvailable() and

Re: @FieldExpressionValidator calling action's method

2008-08-02 Thread Pierre Thibaudeau
Since it's "expression" is an OGNL expression, have you tried instead: @FieldExpressionValidator(expression = "usernameAvailable", message = "...") which would attempt to find, in turn, getUsernameAvailable() and then isUsernameAvailable()... I would be curious to know if that works. My two cen

@FieldExpressionValidator calling action's method

2008-08-02 Thread Hrvoje Ban
I placed validation code for one of my fields inside action's method and I'm trying to call it using OGNL expression: @Validation public class RegistrationAction extends ActionSupport { private String username; public boolean isUsernameAvailable() {