tiered menu is not same with the example...

UI Components for JSF
Post Reply
lunalight
Posts: 2
Joined: 12 Nov 2010, 21:48

12 Nov 2010, 22:00

hi... i'm newbie in programming with primefaces, i tried to using tiered menu with primefaces, here is the code :

Code: Select all

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <p:resources/>
        <link type="text/css" rel="stylesheet" href="./resources/css/skin.css" />
    </h:head>
    <h:body>
        <ui:composition template="./template/masterLayouts.xhtml">
            <ui:define name="meta-title">OpenPayable Application</ui:define>
            <ui:define name="content">
                <h:form>
                    <p:menu widgetVar="tieredMenu" context="'start','tl','br'" tiered="true" style="width:200px">
                        <p:submenu label="Mail">
                            <p:menuitem value="Gmail" url="http://www.google.com" />
                            <p:menuitem value="Hotmail" url="http://www.hotmail.com" />
                            <p:menuitem value="Yahoo Mail" url="http://mail.yahoo.com" />
                        </p:submenu>
                        <p:submenu label="Videos">
                            <p:menuitem value="Youtube" url="http://www.youtube.com" />
                            <p:menuitem value="Break" url="http://www.break.com" />
                            <p:menuitem value="Metacafe" url="http://www.metacafe.com" />
                        </p:submenu>
                        <p:submenu label="Social Networks">
                            <p:menuitem value="Facebook" url="http://www.facebook.com" />
                            <p:menuitem value="MySpace" url="http://www.myspace.com" />
                            </p:submenu>
                    </p:menu>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

but i dont know why, the menu item didnt expand when i roll over the mouse into it, the output is just like ordinary menu item... maybe something like this :

Mail >
gmail
Hotmail
yahoomail
Videos >
youtube
break
....

the arrow after submenu didnt change when the mouse step over it,,,, i'm using netbeans 6.9, glassfish 3, jsf 2.0, and primefaces-2.2.RC1

i tried with advanced panel, but anything goes fine... except this problems... :(( thanks :D

lunalight
Posts: 2
Joined: 12 Nov 2010, 21:48

13 Nov 2010, 22:44

it fixed, i try 2.2.M1 version, and it is works fine,,, :D

markus.zwickl
Posts: 15
Joined: 05 Sep 2010, 19:16

21 Nov 2010, 19:34

i met the same problem with 2.2.RC1.
Mojarra 2.0.3
PrimeFaces 2.2.RC2
Spring 3.0.5
Hibernate 3.5.6
Tomcat 6.0.26

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests