i have got composite component:
<cc:interface> <cc:attribute name="value" required="true"> </cc:interface> <cc:implementation> <h:outputtext value="#{cc.attrs.value}"/> <h:commandbutton action="#{internalbean.someaction}"/> </cc:implementation>
and change #{cc.attrs.value} #{internalbean.someaction}, in other words: change (string) value of user defined (external) bean method of composite component. how can it?
thanks.
update
one way can think of use <f:setpropertyactionlistener>
.
<cc:interface> <cc:attribute name="value" required="true"/> </cc:interface> <cc:implementation> <h:outputtext value="#{cc.attrs.value}"/> <h:commandbutton action="#{internalbean.someaction}"> <f:setpropertyactionlistener value="#{cc.attrs.value}" target="#{internalbean.stringvaluefromexternalbean}"/> </h:commandbutton> </cc:implementation>
Comments
Post a Comment