Problem with javascript in p:editor

UI Components for JSF
Post Reply
User avatar
bruno.neves
Posts: 22
Joined: 15 Jul 2010, 14:03

13 Jan 2012, 13:07

I'm having a problem when I use javascript in p: editor, what happens is that every time the javascript runs op: editor replicates the screen.

Code: Select all

                                <p:commandButton value="Button"
                                                 update="editorTest"
                                                 ajax="true"
                                                 onclick="insertTexto('TEXT', 'editorTest');"/>

                                <p:editor id="editorTest"
                                          widgetVar="wgvEditor"
                                          width="800"
                                          height="500"/>

The javascript executes a command that inserts some text in p: editor.

Could anyone help me with this problem?
Primefaces 3.4.2
Mojarra 2.1.7
Glassfish 3.1.2
Netbeans 7.1.1

User avatar
bruno.neves
Posts: 22
Joined: 15 Jul 2010, 14:03

13 Jan 2012, 13:26

Each click on the button opens a new p: editor on top of another, such as cascading windows!
Primefaces 3.4.2
Mojarra 2.1.7
Glassfish 3.1.2
Netbeans 7.1.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests