[jboss-cvs] jboss-seam/examples/wiki/view/includes ...

Christian Bauer christian at hibernate.org
Sun Mar 18 11:44:39 EDT 2007


  User: cbauer  
  Date: 07/03/18 11:44:39

  Added:       examples/wiki/view/includes   confirmationModalDialog.xhtml
                        accessLevelSelector.xhtml
  Log:
  Basic access level/role security, automatic home page for activated users
  
  Revision  Changes    Path
  1.1      date: 2007/03/18 15:44:39;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/confirmationModalDialog.xhtml
  
  Index: confirmationModalDialog.xhtml
  ===================================================================
  <rich:modalPanel
      id="#{confirmationModalDialogId}"
      minHeight="120" minWidth="200" height="120" width="200" zindex="2000"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      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:wiki="http://jboss.com/products/seam/wiki"
      xmlns:s="http://jboss.com/products/seam/taglib">
  
      <f:facet name="header">Confirmation</f:facet>
      <h:panelGroup><div align="center">
          <h:form>
  
              <ui:insert name="confirmationText"><p>Are you sure you want to execute this operation?</p></ui:insert>
  
              <h:panelGroup>
                  <ui:insert name="confirmationOption"/>
                  <h:outputLink id="cancel" value="javascript:Richfaces.hideModalPanel('#{confirmationModalDialogId}')"
                                accesskey="C" styleClass="buttonNonpersistent">
                      <span class="buttonLabel"><u>C</u>ancel</span>
                  </h:outputLink>
              </h:panelGroup>
          </h:form>
      </div></h:panelGroup>
  
  </rich:modalPanel>
  
  
  
  
  
  
  
  
  1.1      date: 2007/03/18 15:44:39;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/accessLevelSelector.xhtml
  
  Index: accessLevelSelector.xhtml
  ===================================================================
  <div id="accessLevelSelector"
  	 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:wiki="http://jboss.com/products/seam/wiki"
       xmlns:s="http://jboss.com/products/seam/taglib">
  
      <s:div styleClass="entry" rendered="#{currentUser != guestUser}">
          <div class="label">Readable by:</div>
          <div class="input">
              <h:selectOneMenu value="#{nodePermissions.readAccessLevel}" tabindex="1">
                  <s:selectItems value="#{assignableAccessLevelsList}"
                                 var="aLvl"
                                 label="Role: #{wiki:truncateString(aLvl.roleNames, 40, '...')}"
                                 noSelectionLabel="#{currentUser.id == currentNode.createdBy.id
                                                     || empty currentNode.createdBy
                                                     ? wiki:concat('User: ', currentUser.username)
                                                     : null}"/>
              </h:selectOneMenu>
          </div>
      </s:div>
  
      <s:div styleClass="entry" rendered="#{currentUser != guestUser}">
          <div class="label">Writable by:</div>
          <div class="input">
              <h:selectOneMenu value="#{nodePermissions.writeAccessLevel}" tabindex="1">
                  <s:selectItems value="#{assignableAccessLevelsList}"
                                 var="aLvl"
                                 label="Role: #{wiki:truncateString(aLvl.roleNames, 40, '...')}"
                                 noSelectionLabel="#{currentUser.id == currentNode.createdBy.id
                                                     || empty currentNode.createdBy
                                                     ? wiki:concat('User: ', currentUser.username)
                                                     : null}"/>
              </h:selectOneMenu>
          </div>
      </s:div>
      
  
  </div>
  
  
  
  



More information about the jboss-cvs-commits mailing list