Invoke action method using

后端 未结 1 1474
萌比男神i
萌比男神i 2020-12-06 05:35

I have the following code:


    Do Stuff

which does

相关标签:
1条回答
  • 2020-12-06 06:27

    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>
    
    0 讨论(0)
提交回复
热议问题