I've the below input with required="true"
:
<p:inputText value="#{bean.value}" required="true">
<p:ajax event="change" listener="#{bean.change()}" />
</p:inputText>
When user changes the value, the listener is fired and I can access the changed value. When user empties the field, the listener is not fired and the empty value is not updating in my bean. I gather that this is caused by requried="true"
. I would like to update my bean with empty value and fire the listener anyway when the user empties the field. How can I achieve this?