f:ajax not working

后端 未结 2 1946
时光说笑
时光说笑 2021-01-28 18:48

I have trouble getting f:ajax to work on a h:panelGroup. Here\'s what i\'m doing:

JSF code:



        
2条回答
  •  滥情空心
    2021-01-28 19:28

    I think the panelGroup will be swallowed since there is only one component inside. Maybe jsf optimizes it.

    Then there is only the h:outputText left and this component doesn't implement the javax.faces.component.behavior.ClientBehaviorHolder interface which is required for a component that gets ajax attached.

    You could use h:outputLink or maybe h:outputLabel instead.

提交回复
热议问题