I have the following code:
Do Stuff
which does
You need to use event="action"
instead of event="click"
. You could even omit it altogether. It's namely the default event the <f:ajax>
is listening on when nested in an UICommand
component.
<h:commandLink action="#{testBean.showSomething}">
<f:ajax render=":content" />
Do Stuff
</h:commandLink>