Menu and Panel can't live in the same page

UI Components for JSF
Houssinux
Posts: 17
Joined: 23 Jun 2010, 20:44
Location: Morocco
Contact:

27 Jun 2010, 09:54

hi!
With the menu component I have this :
Image

and with no menu component, it's OK I have this :

Image

this is my code :

Code: Select all

<ui:define name="left">
                <p:menu>
                    <p:submenu label="Processus">
                        <p:menuitem value="Nouveau Processus" url="/processus/nouveauProcessus.jsf" icon="/images/new.png"/>
                        <p:menuitem value="Liste en Tableau" url="/processus/tableProcessus.jsf" icon="/images/mobile.png"/>
                        <p:menuitem value="Liste en grille" url="/processus/processus.jsf" icon="/images/home.png"/>
                        <p:menuitem value="Liste en arbre" url="/processus/arbreProcessus.jsf" icon="/images/home.png"/>
                    </p:submenu>
                </p:menu>
            </ui:define>

            <ui:define name="content">
                <h:form  id="fInsertion">
                    <p:panel header="Nouveau Processus" toggleable="false">

                        <h:panelGrid columns="3" >
                            <h:outputText value="Nom : " />
                            <h:inputText id="nom" value="#{processus.nom}" required="true"/>
                            <p:message for="nom" />

                            <h:outputText value="Description : " />
                            <h:inputTextarea id="desc" value="#{processus.description}" required="true"/>
                            <p:message for="desc" />

                            <h:outputText value="Ordre :" />
                            <h:inputText id="ordre" value="#{processus.ordre}" required="true" />
                            <p:message for="ordre" />

                            <h:outputText value="Processus parent :" />
                            <h:selectOneMenu id="pp" value="#{processus.processusParent}">
                                <f:selectItems value="#{tableGridBean.options}"/>
                            </h:selectOneMenu>
                            <p:message for="pp" />

                            <p:commandButton value="Réinitialiser" type="reset" />
                            <p:commandButton style="margin-right:20px;" value="Valider" update="fInsertion,ftGrid" actionListener="#{processus.saveNew}"/>

                        </h:panelGrid>
                    </p:panel>
                </h:form>
I'm using :
  • Mojarra jsf 2 (facelets)
    primefaces-2.1.RC1-SNAPSHOT.jar
    Firefox browser
    apache-tomcat-6.0.26
    Ubuntu9.10 OS
any idea?
Lhoussinux
primefaces-2.1.RC1-SNAPSHOT+jsf2.0 (mojarra)+firefox & chrome+apache-tomcat6.0.26+Ubuntu10.4 OS = happiness.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Jun 2010, 14:16

Images seem to be broken.

Houssinux
Posts: 17
Joined: 23 Jun 2010, 20:44
Location: Morocco
Contact:

27 Jun 2010, 20:04

what do you mean by broken? u can't see them?
Lhoussinux
primefaces-2.1.RC1-SNAPSHOT+jsf2.0 (mojarra)+firefox & chrome+apache-tomcat6.0.26+Ubuntu10.4 OS = happiness.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Jun 2010, 20:06

Yes, can't see them, maybe you can try a site like imageshack?

Houssinux
Posts: 17
Joined: 23 Jun 2010, 20:44
Location: Morocco
Contact:

28 Jun 2010, 00:19

with left Menu I have problem in the Panel componenet header :
[img]http://img153.imageshack.us/img153 ... png[/img]

with no menu the Panel is ok :
Image

hope the images problem's solved.
Lhoussinux
primefaces-2.1.RC1-SNAPSHOT+jsf2.0 (mojarra)+firefox & chrome+apache-tomcat6.0.26+Ubuntu10.4 OS = happiness.

Houssinux
Posts: 17
Joined: 23 Jun 2010, 20:44
Location: Morocco
Contact:

28 Jun 2010, 00:24

without menu :
Image
Lhoussinux
primefaces-2.1.RC1-SNAPSHOT+jsf2.0 (mojarra)+firefox & chrome+apache-tomcat6.0.26+Ubuntu10.4 OS = happiness.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Jun 2010, 01:18

Noted this down, we'll investigate and update this post, thanks for your feedback.

Houssinux
Posts: 17
Joined: 23 Jun 2010, 20:44
Location: Morocco
Contact:

28 Jun 2010, 01:50

ok. thank you.
Lhoussinux
primefaces-2.1.RC1-SNAPSHOT+jsf2.0 (mojarra)+firefox & chrome+apache-tomcat6.0.26+Ubuntu10.4 OS = happiness.

Houssinux
Posts: 17
Joined: 23 Jun 2010, 20:44
Location: Morocco
Contact:

15 Jul 2010, 13:43

hi,
One solution of this consist to put the menu in a div with an absolute position.
Lhoussinux
primefaces-2.1.RC1-SNAPSHOT+jsf2.0 (mojarra)+firefox & chrome+apache-tomcat6.0.26+Ubuntu10.4 OS = happiness.

stefan
Posts: 18
Joined: 13 Jun 2010, 23:10

15 Jul 2010, 17:06

Hello,

putting it in a absolute position, the component gets rendered correctly. But this is annoying nonetheless :) and it happens to <p:panel aswell
Is there any news when this will be fixed?

Thanks in advance!
JSF2.0 - Netbeans 6.9 - Glassfish V3 - PrimeFaces 2.1RC1-SNAPSHOT

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests