How do you pass a value into an ajax listener primefaces

前端 未结 1 1604
盖世英雄少女心
盖世英雄少女心 2021-01-11 13:44

So I have


But I want to pass in the tabChange event AND an ex

相关标签:
1条回答
  • 2021-01-11 14:14

    You can replace argument obj with additional property in bean and set needed value to this property on ajax request:

    <p:ajax event="tabChange" listener="#{refriedBean.onTabChange}">
      <f:setPropertyActionListener target="#{refriedBean.additionalProperty}" value="value_here"/>
    </p:ajax>
    

    See setPropertyActionListener

    0 讨论(0)
提交回复
热议问题