invoke javax.el.MethodExpression from jsf component

Posted by marcos on Stack Overflow See other posts from Stack Overflow or by marcos
Published on 2010-03-30T18:49:04Z Indexed on 2010/03/30 20:53 UTC
Read the original article Hit count: 761

Filed under:
|
|
|

Hello gurus
I have a jsp tag wich takes a javax.el.MethodExpression as attribute:

<%@ attribute name="action" required="true" type="javax.el.MethodExpression" rtexprvalue="true" %>


within the same tag i have:

<h:commandLink action="#{action}">
    link text
</h:commandLink>

I'm getting the following error when i try to click the link:

javax.faces.FacesException: #{action}: org.apache.jasper.el.JspMethodNotFoundException: /WEB-INF/tags/pager/pager.tag(17,1) '#{action}' Identity 'action' was null and was unable to invoke

is it possible for the commandLink to properly invoke the "action" method?

© Stack Overflow or respective owner

Related posts about jstl

Related posts about jsf