Multiple actionlisteners in JSF

前端 未结 2 1285
别跟我提以往
别跟我提以往 2021-01-12 05:13

I want to use multiple action listener to set state of two backing beans before further processing

1st way:



        
2条回答
  •  臣服心动
    2021-01-12 05:36

    The binding attribute value needs to point to an object implementing ActionListener interface, not a method.

    From the documentation of f:actionListener's bindig attribute :

    Value binding expression that evaluates to an object that implements javax.faces.event.ActionListener.

    A similar problem was discussed here.

提交回复
热议问题