[ http://issues.apache.org/jira/browse/BEEHIVE-562?page=all ] Rich Feit resolved BEEHIVE-562: -------------------------------
Assign To: Alejandro Ramirez (was: Rich Feit) Resolution: Fixed Fixed with revision 164802. > Expressions are not evaluated in message arguments in declarative validation > on external form beans > --------------------------------------------------------------------------------------------------- > > Key: BEEHIVE-562 > URL: http://issues.apache.org/jira/browse/BEEHIVE-562 > Project: Beehive > Type: Bug > Components: NetUI > Versions: V1, V1Beta > Reporter: Rich Feit > Assignee: Alejandro Ramirez > Fix For: V1 > > Repro: > - Create an external form bean class (MyForm) with the following > validation on a field: > @Jpf.ValidatableProperty( > [EMAIL PROTECTED]( > message="oops: {0}", > [EMAIL PROTECTED](arg="hello") > ) > ) > public String getFoo() > { > ... > } > - In a page flow, make the following action: > @Jpf.Action( > validationErrorForward(name="fail", path="failure.jsp") > ) > public Forward doit(MyForm form) > { > ... > } > - On failure.jsp, put the following error tag: > <netui:error key="foo"/> > - Hit the doit action. > EXPECTED: an error that says "oops: hello" > ACTUAL: an error that says "NETUI-EXPRESSION:oops: hello" > The fix for this is involved -- I'm still evaluating whether it's something > to keep for v1 or push. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira