[ http://issues.apache.org/jira/browse/BEEHIVE-382?page=history ]
Rich Feit resolved BEEHIVE-382:
-------------------------------
Assign To: Alejandro Ramirez (was: Rich Feit)
Resolution: Fixed
Fixed with revision 155754.
> 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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira