[richfaces-svn-commits] JBoss Rich Faces SVN: r14473 - in branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp: admin and 1 other directory.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Jun 4 06:05:52 EDT 2009
Author: msorokin
Date: 2009-06-04 06:05:52 -0400 (Thu, 04 Jun 2009)
New Revision: 14473
Added:
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/admin/
branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/admin/cms.xhtml
Log:
Added: branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/admin/cms.xhtml
===================================================================
--- branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/admin/cms.xhtml (rev 0)
+++ branches/community/3.3.X/test-applications/richfaces-docs/src/main/webapp/admin/cms.xhtml 2009-06-04 10:05:52 UTC (rev 14473)
@@ -0,0 +1,44 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ template="../layout/template.xhtml"
+ xmlns:a4j="http://richfaces.org/a4j">
+
+<ui:define name="body">
+
+
+ <h:messages globalOnly="true" styleClass="message"/>
+
+
+
+ <rich:panel>
+ <f:facet name="header">Content Management System</f:facet>
+
+<h:form rendered="#{rich:isUserInRole('admin')}" >
+<rich:editor value="#{editor.pageText}" rendered="#{rich:isUserInRole('admin')}"/>
+<h:commandButton value="Save" />
+</h:form>
+
+<div>
+<h:outputText value="#{editor.pageText}" rendered="#{rich:isUserInRole('user')}" />
+</div>
+
+<h:commandButton
+onclick="alert(#{rich:isUserInRole('admin')});"
+value="is User In Role Admin" />
+
+<h:commandButton
+onclick="alert(#{rich:isUserInRole('user')});"
+value="is User In Role User" />
+
+
+<a href="http://www.jboss.org/community/wiki/UsingrichisUserInRoleobject">More details about this page</a>
+ </rich:panel>
+
+</ui:define>
+</ui:composition>
More information about the richfaces-svn-commits
mailing list