That works without problems with the normal primefaces components, but if you edit some text in a pe:ckEditor and click on the commandButton directly the action of the button is fired before the blur event of the ckEditor, so the changes aren't avaiable in the action method of the bean.
that's how our html looks like:
Code: Select all
<p:inputText value="#{Bean.inputText}">
<p:ajax process="@this" /> // correctly fired before commandButton action
</p:inputText>
<pe:ckEditor value="#{ Bean.editorText }">
<p:ajax event="blur" process="@this" update="@none"/> // fired after commandButton action for some reason
</pe:ckEditor>
<p:commandButton action="#{ Bean.action() }" process="@this" />
Code: Select all
public String inputText;
public String editorText;
public void action () {
System.out.println(inputText); // works correctly: new value is printed if you change the text in your inputText and then click on the button directly
System.out.println(editorText); // wrong behaviour: old value is printed if you change the text in your editor and then click on the button directly
}