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

Christian Bauer christian at hibernate.org
Sun Mar 18 19:29:19 EDT 2007


  User: cbauer  
  Date: 07/03/18 19:29:19

  Added:       examples/wiki/view/includes      languageSelector.xhtml
                        userControl.xhtml breadcrumb.xhtml
                        searchControl.xhtml mainMenu.xhtml
  Log:
  Cleaned up XHTML
  
  Revision  Changes    Path
  1.1      date: 2007/03/18 23:29:19;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/languageSelector.xhtml
  
  Index: languageSelector.xhtml
  ===================================================================
  <div id="languageSelector"
  	 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:s="http://jboss.com/products/seam/taglib">
  
  	<h:form>
  	    <h:panelGroup>
  	        <h:outputText styleClass="languageSelectorLabel" value="#{messages['Language']}"/>:
  
  	        <h:commandLink styleClass="languageSelectorLink" value="EN" action="#{localeSelector.selectLanguage('en')}"/><span class="languageSelectorSeparator">|</span>
  
  	        <h:commandLink styleClass="languageSelectorLink"  value="DE" action="#{localeSelector.selectLanguage('de')}"/>
  	    </h:panelGroup>
  	</h:form>
  
  </div>
  
  
  1.1      date: 2007/03/18 23:29:19;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/userControl.xhtml
  
  Index: userControl.xhtml
  ===================================================================
  <div id="userControl"
       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:s="http://jboss.com/products/seam/taglib">
  
      <s:div rendered="#{not identity.loggedIn}">
          <h:form>
              <h:panelGroup>
                  <h:outputLabel styleClass="userControlLabel" for="loginUsername" value="Username:"/>
                  <h:inputText styleClass="userControlInput" id="loginUsername" value="#{identity.username}" size="8" tabindex="50"/>
                  <h:outputLabel styleClass="userControlLabel" for="loginPassword" value="Password:"/>
                  <h:inputSecret styleClass="userControlInput" id="loginPassword" value="#{identity.password}" size="8" tabindex="51"/>
                  <h:commandLink styleClass="userControlLink" action="#{identity.login}" tabindex="52" accesskey="L"><u>L</u>ogin</h:commandLink>
  
                  <s:link styleClass="userControlLink" action="register" tabindex="53" accesskey="R"><u>R</u>egister</s:link>
  
                  <s:link styleClass="userControlLink" action="listUsers" tabindex="54" accesskey="M"><u>M</u>embers</s:link>
  
              </h:panelGroup>
          </h:form>
      </s:div>
  
      <s:div rendered="#{identity.loggedIn}">
          <h:form>
              <h:panelGroup>
                  <h:outputText styleClass="userControlLabel" value="(#{currentUser.firstname} #{currentUser.lastname})"/>
                  <h:commandLink styleClass="userControlLink" action="#{authenticator.logout}" tabindex="70">Logout</h:commandLink>
                  <s:link styleClass="userControlLink" action="editCurrentUser" tabindex="71">Profile</s:link>
                  <s:link styleClass="userControlLink" action="listUsers" tabindex="72" accesskey="M"><u>M</u>embers</s:link>
              </h:panelGroup>
          </h:form>
      </s:div>
  
  </div>
  
  
  
  1.1      date: 2007/03/18 23:29:19;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/breadcrumb.xhtml
  
  Index: breadcrumb.xhtml
  ===================================================================
  <div id="breadcrumb"
  	 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">
  
      <h:panelGroup>
          <ui:repeat var="directory" value="#{currentDirectoryPath}">
              <h:outputLink value="#{wiki:renderURL(directory)}" styleClass="itemLink" rendered="#{!empty directory.parent}">
                  #{directory.name}
              </h:outputLink>
              <h:outputText styleClass="itemSeparator" value="&#183;"
                            rendered="#{!empty currentDocument and !empty directory.parent}"/>
          </ui:repeat>
  
          <h:outputText styleClass="itemText" value="#{currentDocument.name}"/>
  
      </h:panelGroup>
  
  </div>
  
  
  1.1      date: 2007/03/18 23:29:19;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/searchControl.xhtml
  
  Index: searchControl.xhtml
  ===================================================================
  <div id="searchControl"
       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:s="http://jboss.com/products/seam/taglib">
  
      <h:form>
          <h:panelGroup styleClass="searchControlTable">
              <h:inputText styleClass="searchControlInput" id="searchControlSearchString" value="Search..."
                           onclick="clickClear(this, 'Search...')" onblur="clickRecall(this, 'Search...')"
                           size="15" maxlength="255" tabindex="60"/>
              <h:commandLink styleClass="searchControlLink" tabindex="61" accesskey="F"><u>F</u>ind</h:commandLink>
          </h:panelGroup>
  
      </h:form>
  
  </div>
  
  
  
  1.1      date: 2007/03/18 23:29:19;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/mainMenu.xhtml
  
  Index: mainMenu.xhtml
  ===================================================================
  <div id="mainMenu"
       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:s="http://jboss.com/products/seam/taglib">
  
      <h:dataTable id="areaMenuList" var="menuItem"
                   value="#{menu.items}"
                   styleClass="areaMenuTable"
                   cellpadding="0" cellspacing="0" border="0"
                   columnClasses="firstLevelItem"
                   rendered="#{!empty menu.items}">
  
          <h:column>
              <h:outputLink styleClass="firstLevelItemLink"
                            value="#{menuItem.url}">#{menuItem.node.name}
              </h:outputLink>
  
              <h:dataTable id="subMenuList" var="subMenuItem"
                           value="#{menuItem.subItems}"
                           styleClass="subMenuTable"
                           cellpadding="0" cellspacing="0" border="0"
                           columnClasses="secondLevelItem"
                           rendered="#{!empty menuItem.subItems}">
                  <h:column>
                      <h:outputLink styleClass="secondLevelItemLink"
                                    value="#{subMenuItem.url}">
                          #{subMenuItem.node.name}
                      </h:outputLink>
                  </h:column>
              </h:dataTable>
  
          </h:column>
  
      </h:dataTable>
  
  </div>
  
  
  



More information about the jboss-cvs-commits mailing list