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


Verified Fixed.  Executed the repro steps and now messageKey no longer 
overrides message.
In addition the coreWeb BVT "ExceptionMessages" tests this scenario and is 
passing.

> messageKey is overriding message in @Jpf.Catch
> ----------------------------------------------
>
>          Key: BEEHIVE-382
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-382
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Rich Feit
>     Assignee: Alejandro Ramirez
>      Fix For: V1Beta

>
> Repro:
>     - Add the following to a page flow:
>         @Jpf.Catch(type=IllegalStateException.class, path="error.jsp", 
> message="${pageFlow.URI}", messageKey="foo")
>     - Add a message bundle, too:
>         @Jpf.MessageBundle(bundlePath="myMessages")
>     - In /WEB-INF/src/myMessages.properties, add the following line:
>         foo=whoops, shouldn't see this
>     - In error.jsp, add the following tag:
>         <netui:error key="foo"/>
>     - Hit an action that throws IllegalStateException.
> Expected: see the page flow's URI displayed in error.jsp
> Actual: see "whoops, shouldn't see this"
> The message (the page flow's URI) should be stored under key "foo".  The 
> actual message under key "foo" should only be used if there is no 'message' 
> attribute.

-- 
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