p:editor inside p:dialog problem

UI Components for JSF
Post Reply
kamvie
Posts: 3
Joined: 06 Mar 2011, 21:57

06 Mar 2011, 22:06

Hi I have a problem: p:editor inside p:dialog problem it's not working

Code: Select all

                <h:panelGroup>
                    <p:commandButton value="Send message" onclick="sysMsgDlg.show();" type="button"/>
                    <p:dialog header="Send message" widgetVar="sysMsgDlg" modal="true" resizable="false" minHeight="300" minWidth="600">
                        <h:panelGrid columns="2" styleClass="table">
                            <scc:label value="Subject*"/>
                            <p:inputText value=""/>
                            <scc:label value="Content*" />
                            <p:editor value="" controls="bold italic underline strikethrough subscript superscript | font size style | color highlight removeformat | bullets numbering | outdent indent | alignleft center alignright justify"/>
                        </h:panelGrid>
                        <p:separator/>
                        <p:commandButton value="Send" async="true" oncomplete="sysMsgDlg.hide();"/>
                    </p:dialog>
                </h:panelGroup>
when the dialog is visible then in editor I can see "true" text, but i can't edit it, editor buttons are active but the text area not

I use glassfish 3.0.1
jar's:

Code: Select all

        <dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-api</artifactId>
            <version>2.0.2-b10</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.faces</groupId>
            <artifactId>jsf-impl</artifactId>
            <version>2.0.2-b10</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.primefaces</groupId>
            <artifactId>primefaces</artifactId>
            <version>2.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.primefaces.themes</groupId>
            <artifactId>bluesky</artifactId>
            <version>1.0.0</version>
        </dependency>
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.2.1</version>
        </dependency>

kamvie
Posts: 3
Joined: 06 Mar 2011, 21:57

06 Mar 2011, 22:40

I found a solution to my problem
http://primefaces.prime.com.tr/forum/vi ... log#p27166
sorry for spaming, I'm tired
But I must tell that I'm using IceFaces over 0.5 year, and I'm using PrimeFaces for 1 week and PF are much better, thanks guys :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests