无法将方法传递到自定义组件jsf 1.2
我尝试将操作侦听器添加到自定义组件中 我有定制的数据表,它包装了tomahawk数据表。 我有定制的dataScroller,它包装了tomahawk dataScroller。 我需要传入datatable中定义的dataScroller方法无法将方法传递到自定义组件jsf 1.2,jsf,jsf-1.2,tomahawk,Jsf,Jsf 1.2,Tomahawk,我尝试将操作侦听器添加到自定义组件中 我有定制的数据表,它包装了tomahawk数据表。 我有定制的dataScroller,它包装了tomahawk dataScroller。 我需要传入datatable中定义的dataScroller方法 <custom:dataScroller actionListener="#{someBean['someMethod']}"... 问题应该在哪里 <custom:dataScroller actionListener="#{someB
<custom:dataScroller actionListener="#{someBean['someMethod']}"...
问题应该在哪里
<custom:dataScroller actionListener="#{someBean.someMethod}"...
<tag>
<name>dataScroller</name>
<tag-class>java.lang.Object</tag-class>
<body-content>scriptless</body-content>
...
<attribute>
<name>actionListener</name>
<deferred-method>
<method-signature>
void myMethod(javax.faces.event.ActionEvent )
</method-signature>
</deferred-method>
</attribute>
...
</tag>
<t:dataScroller id="scroller_#{for}" for="#{for}"
fastStep="#{fastStep}"
paginatorRenderLinkForActive="false"
paginator="true"
paginatorMaxPages="10"
paginatorActiveColumnStyle="font-weight:bold;"
renderFacetsIfSinglePage="#{allwaysRender}"
binding="#{applicationBean.scroll}"
actionListener="#{actionListener}"// HERE is the actionListener
immediate="false">
public void someMethod(ActionEvent sae) {
LOGGER.info("Event: #0" + sae.getClass().toString());
}