primefaces 2.1 panel is not working properly

UI Components for JSF
Post Reply
shijuk
Posts: 9
Joined: 17 Aug 2010, 08:11
Location: bangalore

26 Aug 2010, 14:32

hi all

I m using primefaces 2.1 and jsf 2.0 .. i used ur dashboard .. in dashboard there i added two submenus ..at the fist time when i click submenu its going top left side .. but when give a small movement to panel and if i click sub menus means .. it is coming right side of sub menus .. is this is my problem ?


my code .. i usinng ur sample code only



<p:dashboard id="board" model="#{dashboardBean.model}"
reorderListener="#{dashboardBean.handleReorder}" onReorderUpdate="growl">
<p:panel id="sports" header="Sports" toggleable="true" closable="true"
closeListener="#{dashboardBean.handleClose}" onCloseUpdate="growl"
toggleListener="#{dashboardBean.handleToggle}" onToggleUpdate="growl" widgetVar="sportsWidget">
<h:outputText value="Sports Content" />
<f:facet name="options">
<p:menu>
<p:submenu label="Settings">
<p:menuitem value="Toggle" url="#" onclick="sportsWidget.toggle()"/>
<p:menuitem value="Remove" url="#" onclick="sportsWidget.close()"/>
</p:submenu>
</p:menu>
</f:facet>
</p:panel>


</p:dashboard>

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

26 Aug 2010, 16:11


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests