How to get selectedDate using AjaxBehaviorEvent? How to get selectedDate using AjaxBehaviorEvent? ajax ajax

How to get selectedDate using AjaxBehaviorEvent?


This should work as a general way to get the value through AjaxBehaviorEvent:

public void listenerMethod(AjaxBehaviorEvent event) {    String dueDate = (String) ((UIOutput)event.getSource()).getValue();}

However, in your case, you can just access it through the varable (or getter) since it is in the same bean as the listenerMethod.