actions in .xhtml specified without parentheses do not match equivalent pages.xml
navigation rules that do have parentheses, and vice verse
--------------------------------------------------------------------------------------------------------------------------------------------
Key: JBSEAM-3296
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3296
Project: Seam
Issue Type: Bug
Components: Framework
Affects Versions: 2.0.1.GA
Reporter: Ian Springer
I was banging my head against the wall for quite a while before I figured out why my
pages.xml nav rule wasn't kicking in.
In my .xhtml file, I had:
<h:commandButton value="#{messages['button.ok']}"
action="#{operationAction.invokeOperation}"/>
which was not matching the following rule in my pages.xml:
<navigation from-action="#{operationAction.invokeOperation()}">
<redirect view-id="/secure/resourceInstanceOperation.xhtml"/>
</navigation>
(Note the h:commandButton action does not have parens, but the navigation from-action does
have parens.
action.foo should match action.foo(), as well action.foo, and vice verse, being as they
mean the exact same thing semantically. The current behavior is not intuitive and will
cost users a lot of wasted time and frustration.
Note, this bug exists for actions on s:buttons, as well as actions on h:commandButtons.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira