Websphere 5 Java 6 Jsf 2.x Mojarra 2.3.2
I need to pass as method argument the primefaces "var" datatable attribute to a composite.
xhtml
<p:dataTable id="dtPub"
var="pub"
widgetVar="pub"
value="#{pubMB.pubList}">
<p:column....>
<p:commandLink onclick="PF('confirmationRev').show()" >
....
....
<p:/datatable>
<services:genericConfirmDialog
widgetvar="confirmationRev"
actionbeanbotao1="#{pubMB.delete()}"
varDatatable="pub"/>
Composite :
<composite:interface>
<composite:attribute name="varDatatable" />
<composite:attribute name="actionbeanbotao1" method-signature="java.lang.String action()" />
<p:commandButton id="confirm" value="#{cc.attrs.labelbotao1}"
action="#{cc.attrs.actionbeanbotao1(#{cc.attrs.varDatatable})}" />
action="#{cc.attrs.actionbeanbotao1(#{cc.attrs.varDatatable})}" Cannot add parameters to a MethodExpression pointing to cc.attrs
The idea is to pass as argument the primefaces datatable var to then bean delete #{pubMB.delete(xxxxxx)} I tested without composite and its working fine. its passing to bean method delete the var and deletng the record.