This content has been marked as final.
Show 2 replies
-
1. Re: using faclets include with parameters and rerender problem with action
ilya_shaikovsky Nov 17, 2010 11:26 AM (in response to short)facelets not supports parameters as method expressions,. read that in order to solve http://mkblog.exadel.com/2008/11/richfaces-confirmation-dialog-3/ there are #{bean[action]}-like constructions.
-
2. Re: using faclets include with parameters and rerender problem with action
short Mar 22, 2012 9:57 AM (in response to ilya_shaikovsky)thx! it works
it took me awhile before i understand what you mean, but now i got the point.
right way using the template
<ui:include src="template.xhtml">
<ui:param name="p_id" value="ID" />
<ui:param name="p_actionbean" value="#{bean}" />
<ui:param name="p_methodname" value="methodname" />
...
...
inside the template.xhtml
<a:commandButton id="#{p_id}" action="#{p_actionbean[p_methodname]}" rerender="#{p_id}"...