Seems to me an action attribute is mistakenly interpreted as containing a 
property rather than an action method:

I am trying to convert from lots of hard coded navigation items like this:
   <tr:commandNavigationItem id="users" action="#{_userList.go}" 
text="#{Output.USER}" />
to a single
   <tr:commandNavigationItem text="#{node.label}" action="#{node.doAction}"/>
using a menu model containing definitions like this:
    <itemNode id="users" action="#{_userList.go}" label="#{Output.USER}"  
focusViewId="/benutzer.jsf"/>
My _userList bean has this method:
    public String go() { ...
The navigation bar displays just fine, but when I click on the link/button all 
I get is this exception:
   23:15:56,234 ERROR [STDERR] 28.08.2007 23:15:56 
org.apache.myfaces.trinidadinternal.menu.MenuUtils getBoundValue
   SEVERE: javax.el.PropertyNotFoundException: Property 'go' not found on type 
com.fortis.texas.client.UserList_$$_javassist_13
        at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)
        at javax.el.BeanELResolver.property(BeanELResolver.java:267)
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:60)
        at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
        at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
        at 
org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)

Adding this method to _userList makes it work, but is an ugly workaround:
    public String getGo() {
        return go();
    }

Is it a bug or am I using something incorrectly here?
(Trinidad 1.2.1, JBoss Seam 2.0.0-Beta)

Reply via email to