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
Assigned to: Rich Feit
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