Note that there are some explanatory texts on larger screens.

plurals
  1. POprimefaces not working with eclipse indigo
    text
    copied!<p>i'm doing some stuff with primefaces om eclipse indigo, i made a dynamic web project and selects the project facets and included the primefaces jar <code>primefaces-3.5.jar</code> i made a new xhtml page and write some code to make a new menubar, these is the final page that i run :</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"&gt; &lt;h:head&gt;&lt;/h:head&gt; &lt;h:body&gt; &lt;h:form&gt; &lt;p:growl id="messages"/&gt; &lt;h3&gt;Default Menubar&lt;/h3&gt; &lt;p:menubar&gt; &lt;p:submenu label="File" icon="ui-icon-document"&gt; &lt;p:submenu label="New" icon="ui-icon-contact"&gt; &lt;p:menuitem value="Project" url="#" /&gt; &lt;p:menuitem value="Other" url="#" /&gt; &lt;/p:submenu&gt; &lt;p:menuitem value="Open" url="#" /&gt; &lt;p:separator /&gt; &lt;p:menuitem value="Quit" url="#" /&gt; &lt;/p:submenu&gt; &lt;p:submenu label="Edit" icon="ui-icon-pencil"&gt; &lt;p:menuitem value="Undo" url="#" icon="ui-icon-arrowreturnthick-1-e" /&gt; &lt;p:menuitem value="Redo" url="#" icon="ui-icon-arrowreturnthick-1-e" /&gt; &lt;/p:submenu&gt; &lt;p:submenu label="Help" icon="ui-icon-help"&gt; &lt;p:menuitem value="Contents" url="#" /&gt; &lt;p:submenu label="Search" icon="ui-icon-search"&gt; &lt;p:submenu label="Text"&gt; &lt;p:menuitem value="Workspace" url="#" /&gt; &lt;/p:submenu&gt; &lt;p:menuitem value="File" url="#" /&gt; &lt;/p:submenu&gt; &lt;/p:submenu&gt; &lt;p:submenu label="Actions" icon="ui-icon-gear"&gt; &lt;p:submenu label="Ajax" icon="ui-icon-refresh"&gt; &lt;p:menuitem value="Save" actionListener="#{menuBean.save}" icon="ui-icon-disk" update="messages"/&gt; &lt;p:menuitem value="Update" actionListener="#{menuBean.update}" icon="ui-icon-arrowrefresh-1-w" update="messages"/&gt; &lt;/p:submenu&gt; &lt;p:submenu label="Non-Ajax" icon="ui-icon-newwin"&gt; &lt;p:menuitem value="Delete" actionListener="#{menuBean.delete}" icon="ui-icon-close" update="messages" ajax="false"/&gt; &lt;/p:submenu&gt; &lt;/p:submenu&gt; &lt;p:menuitem value="Quit" url="http://www.primefaces.org" icon="ui-icon-close" /&gt; &lt;f:facet name="options"&gt; &lt;p:inputText style="margin-right:10px"/&gt; &lt;p:commandButton type="button" value="Logout" icon="ui-icon-extlink" /&gt; &lt;/f:facet&gt; &lt;/p:menubar&gt; &lt;/h:form&gt; &lt;/h:body&gt; &lt;/html&gt; </code></pre> <p>the output of the page is :Default Menubar Note i get these sample from the prime faces <a href="http://www.primefaces.org/showcase/ui/menubar.jsf" rel="nofollow">tutorials page</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload