Ajax for valueChangeListener

前端 未结 4 1844
礼貌的吻别
礼貌的吻别 2021-02-05 23:16

I\'m using the p:ajax listener to handle value change events (because valueChangeListener is launched on form submit):



        
4条回答
  •  礼貌的吻别
    2021-02-05 23:41

    you can use this:

    public void onNameChanged(AjaxBehaviorEvent event)
     {
        String myVal = (String) ((UIOutput) event.getSource()).getValue();
        System.out.println("myVal: " + myVal);
     }
    

提交回复
热议问题