Hi, few days ago I posted an issue about CKEditor here http://forum.primefaces.org/viewtopic.php?f=14&t=38504. Now the next one: the CKEditor is not updating the bean variable.
I'm using multiple ones inside a tabView (PF5 and extensions 2.0.0). No error messages are shown!
The only way I found to get the variable updated/saved is to use the savelistener triggerd by the "save button" from the editor.
CKEditor doesn't update
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
no code -> nobody can help you.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
OK, this is a piece of the code:
Code: Select all
<p:tabView id="tab1">
<h:panelGrid columns="2">
<h:outputLabel value="field1" for="field1" />
<h:inputText id="field1" value="#{beanController.current.field1}" />
<h:outputLabel value="description" for="editor1" />
<pe:ckEditor id="editor1" value="#{beanController.contentDescript}">
<p:ajax event="save" listener="#{beanController.saveListener}" update=":edit2:growl"/>
</pe:ckEditor>
<h:outputLabel value="field2" for="editor2" />
<pe:ckEditor id="editor2" value="#{beanController.current.field2}">
<p:ajax event="save" listener="#{beanController.saveListener}" update=":edit2:growl"/>
</pe:ckEditor>
<h:outputLabel value="field3" for="editor3" />
<pe:ckEditor id="editor3" value="#{beanController.current.field3}">
<p:ajax event="save" listener="#{beanController.saveListener}" update=":edit2:growl"/>
</pe:ckEditor>
</h:panelGrid>
</p:tab>
<p:tab title="Fotos">
other stuff
</p:tab>
<h:commandLink action="#{beanController.updateAll}" value="Save"/>
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Shouldn't make any difference.
Maybe you had a ajaxified commandLink without process attribute or similiar?
But ok, glad to hear that its fixed.
Maybe you had a ajaxified commandLink without process attribute or similiar?
But ok, glad to hear that its fixed.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests