CKEditor doesn't update

Community Driven Extensions Project
Post Reply
albatros
Posts: 27
Joined: 01 Apr 2011, 23:17

25 Jun 2014, 14:14

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.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

25 Jun 2014, 14:25

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

albatros
Posts: 27
Joined: 01 Apr 2011, 23:17

25 Jun 2014, 15:10

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"/>

albatros
Posts: 27
Joined: 01 Apr 2011, 23:17

25 Jun 2014, 15:15

I think, I just found the solution.
It works with commandButton but not with commandLink! How stupid..!

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

25 Jun 2014, 15:22

Shouldn't make any difference.
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

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests