Board index JavaServer Faces General p:editor inside p:dialog - gets double rendered

p:editor inside p:dialog - gets double rendered

Components, Ajax Framework, Utilities and More.


Posts: 6
Hi,

If i place an p:editor inside an p:dialog the editor gets rendered twice.
Neither the first nor the second does function at all, you can click but nothing happens.

We are using latest Version of PF 2,0,3 SS and MyFaces

 <p:dialog widgetVar="editorDialog" width="600" height="600">
                <h:form>
                    <p:editor id="litDeEditor" binding="#{announcement.editorDe}" widgetVar="editorDe" title="Test" />
                    <p:commandButton id="testT" actionListener="#{announcement.processEditorInput('literatureDe')}"  onclick="editorDe.saveHTML();"/>
                </h:form>
</p:dialog>


Can somebody try this please?

best regards
g.h


Posts: 23
There are some other problems, when using dialog and editor in a page.
e.g.
<h:outputLink value="javascript:void(0)" onclick="dlg.show()">Open Dialog</h:outputLink>
<p:dialog header="hello" widgetVar="dlg">
...
</p:dialog>
<p:editor/>


this code works fine. but changing order for example:

<p:editor/>
<h:outputLink value="javascript:void(0)" onclick="dlg.show()">Open Dialog</h:outputLink>
<p:dialog header="hello" widgetVar="dlg">
...
</p:dialog>


So the dialog doesn't work (means: it is not shown, when I click the link) and the editor is not shown correctly. All you can see is the textarea instead of the whole dialog.

Also the Scheduler embedded in a dialog is shown twice like the problem above with editor in a dialog.

regards, Marcus


Posts: 14916
Location: Cybertron

I've replicated the issue, please create an issue ticket for this.
PrimeFaces Lead



Posts: 14916
Location: Cybertron

Yes, this is a known issue;

http://code.google.com/p/primefaces/iss ... ail?id=957

Although we couldn't look in detail, couldn't figure out why this happens, even with new editor of 2.2.RC1, this happens. So I assume there is an issue with dialog and iframe usage.
PrimeFaces Lead


Posts: 65
can version 2.2 stable you fix it?


Posts: 14916
Location: Cybertron

Should be fixed now.
PrimeFaces Lead


Posts: 65
Now? where can i download new Version?


Posts: 723
Location: United States
You'll need to build from source to get the latest changes. The source can be obtained here:

http://code.google.com/p/primefaces/source/checkout


Posts: 116
Once a day there is a Hudson build, and you can pick up the .jar here. No need to d/l source and build yourself.

http://repository.prime.com.tr/org/prim ... -SNAPSHOT/

-e
Mojarra 2.1.17
Primefaces 3.4.2
Glassfish 3.1.2

Next

Return to General