i have an h:inputTextarea
with some a4j:support
to update the model on demand
<h:inputTextarea rows="15" id="taFreetext" value="#{customInput.value}"
required="true"
onkeyup="textAndLinesCount(#{rich:element('taFreetext')},document.getElementById('msgCounterLines'),20, 64);">
<a4j:support ajaxSingle="true" event="onchange" />
</h:inputTextarea>
My Problem is, that not only the model in my context is updated, when i press a key, but also the entity is flushed automatically!
the page.xml
of this file has flushing-mode to manual
<begin-conversation join="true" flush-mode="manual"/>
i read this post in the Seam Framework forum: Problems with AJAX and update model but this is not really helping.
I also had some action
in my a4j:support
that makes a entityManager.refresh()
as written in the post, but then the model and the entity was still on the old state...
Looking forward for some good hints, thanks!
(i use JSF 1.2, RichFaces 3.3.3)