- Facelets: Page Not Getting Rendered
- <ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
- <style>
- .cols {
- vertical-align: top;
- }
- </style>
- <h:form id="form">
- <h:panelGrid columns="2" columnClasses="cols,cols" width="400">
- <rich:panelMenu style="width:200px" mode="ajax"
- iconExpandedGroup="disc" iconCollapsedGroup="disc"
- iconExpandedTopGroup="chevronUp" iconGroupTopPosition="right"
- iconCollapsedTopGroup="chevronDown">
- <rich:panelMenuGroup label="Group 1">
- <rich:panelMenuItem label="Item 1.1"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.1" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 1.2"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.2" />
- </rich:panelMenuItem>
- <rich:panelMenuItem label="Item 1.3"
- action="#{panelMenu.updateCurrent}">
- <f:param name="current" value="Item 1.3" />
- </rich:panelMenuItem>
- </rich:panelMenuGroup>
- </rich:panelMenu>
- <rich:panel bodyClass="rich-laguna-panel-no-header">
- <a4j:outputPanel ajaxRendered="true">
- <h:outputText value="#{panelMenu.current} selected" id="current" />
- </a4j:outputPanel>
- </rich:panel>
- </h:panelGrid>
- </h:form>
- <dependency>
- <groupId>javax.faces</groupId>
- <artifactId>javax.faces-api</artifactId>
- <version>2.1</version>
- <scope>provided</scope>
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>*.jsf</url-pattern>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>/*</url-pattern>