Using an action and an action-listener in one commandLink is not working in my 
jsf-site:

<h:commandLink 
                styleClass="#{t.nodeSelected ? 'documentSelected' : 'document'}"
                actionListener="#{t.setNodeSelected}" 
                action="#{currentUser.userSelectsCategoryOrArticle}" >
        <h:outputText value="#{node.description}" />
        <f:param name="type" value="#{node.type}" />
        <f:param name="ident" value="#{node.identifier}" />
        <f:param name="name" value="#{node.description" />
       <f:param name="docNum" value="#{node.identifier}"/>
</h:commandLink>

Using both just calls the action-method and not the action-listener. The 
styleClass="#{t.nodeSelected ? 'documentSelected' : 'document'}" stuff just 
works if I remove the action-attribute..

what am I doing wrong?

Am Sonntag, 3. April 2005 16:27 schrieb Rob Decker:
> You can use an action and an actionListener in the same tag. You can even
> nest actionListener's in the tag and have multiple ones called.

Reply via email to