Hi I have the following jsf component
<h:inputTextarea id="in"
value="#{mycontroller.myvalue}"
title="sometitle"
readonly="false"
required="true"
rows="10"
styleClass="myclass"
immediate="false"
label="somelabel"
rendered="true" >
<f:ajax event="inputChange" />
</h:inputTextarea>
Whenever a change occurs in inputTextarea the function mycontroller.setMyValue is called that sets the attribute "myvalue" to the corresponding value. However, the setMyValue is not called whenever myvalue="" (empty String), i.e. the content of the text area is deleted. This has as a result the myValue to have an older value whenever mycontroller calls the getMyValue.
However if required="false" then even if myvalue is an empty string the setMyValue is called.
I've tried to change the event in the ajax from inputChange to blur...but nothing happened. I have the same behaviour.
Any ideas how to fix this?
Thanks