You can't pass methods in a value binding. See my blog for a solution:
http://andrewfacelets.blogspot.com/2006/06/creating-composite-controls-with-jsf.html
On 9/19/06, Joerg Bredlau <[EMAIL PROTECTED]> wrote:
Hello,
I have a litte facelet-page and want it to inlude by another page.
In the included page is a commandLink like this:
...
<a jsfc="h:commandLink" action="#{saveaction}"
<img src="cancel.gif" border="0" alt=""/>
</a>
...
I've included the page with following statement:
...
<ui:include src="/PersonalData/PageComponent/saveDataPanel.xhtml">
<ui:param name="saveaction" value="go_pd_contact"/>
</ui:include>
...
It seems that the action-attribute was not replaced by the
param, because following exception appears:
...
Caused by: javax.faces.el.EvaluationException:
/PersonalData/PageComponent/saveDataPanel.xhtml @130,54
action="#{saveaction}": Identity 'saveaction' does not reference a
MethodExpression instance, returned type: java.lang.String
...
Are there any hints for this problem?
Thank you very much for help.
Joerg