[ http://issues.apache.org/jira/browse/BEEHIVE-562?page=all ]
     
Alejandro Ramirez closed BEEHIVE-562:
-------------------------------------


Verified fixed.  Executed repro steps and now I get the expected message "oops: 
hello".

In addition the coreweb BVT for this tests "ValidateExternalBeanWithMessages" 
is passing


> 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: V1Beta, V1
>     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

Reply via email to