[ http://mc4j.org/jira/browse/STS-373?page=comments#action_11041 ]
Tobias K. commented on STS-373:
-------------------------------
just tested... problem still exist with jetty 6.1.7 and latest stripes trunk
(revision 740).
18390 [btpool0-1] ERROR
net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder - Error
evaluating expression for property emailConfirmation of class SignupActionBean.
Expression: ${this == user.email}
> Validation with expression doesn't work on nested bean properties
> -----------------------------------------------------------------
>
> Key: STS-373
> URL: http://mc4j.org/jira/browse/STS-373
> Project: Stripes
> Issue Type: Bug
> Components: Validation
> Affects Versions: Release 1.4.3
> Environment: jetty 6.1.2rc5, Java 1.5
> Reporter: Tobias K.
> Assigned To: Tim Fennell
> Priority: Minor
>
> the source:
> // user has property email
> private User user;
> /**
> * @return the emailConfirmation
> */
> @Validate(required = true, minlength = 4, maxlength = 50, expression = "this
> == user.email")
> public String getEmailConfirmation() {
> return emailConfirmation;
> }
> Error:
> ERROR - Log.error(144) | Error evaluating expression for property
> emailConfirmation of class CreateAccountActionBean. Expression: this ==
> user.email
> If I replace user.email with a local bean property "email", that returns
> user.getEmail() it works:
> /**
> * @return the emailConfirmation
> */
> @Validate(required = true, minlength = 4, maxlength = 50, expression = "this
> == email")
> public String getEmailConfirmation() {
> return emailConfirmation;
> }
> public String getEmail() {
> return user.getEmail();
> }
> Would be nice, to fix this issue :) Expression syntax safes a lot of time...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development