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

Christian Bauer christian.bauer at jboss.com
Tue Feb 27 08:21:44 EST 2007


  User: cbauer  
  Date: 07/02/27 08:21:44

  Modified:    examples/wiki/view          dirDisplay.xhtml userList.xhtml
                        docDisplay.xhtml dirEdit.xhtml docEdit.xhtml
  Added:       examples/wiki/view          userPrefs.xhtml
                        userAccount.xhtml userProfile.xhtml
  Removed:     examples/wiki/view          profile.xhtml
  Log:
  Implemented conversational navigation (not perfect, open JIRA issues)
  
  Revision  Changes    Path
  1.4       +21 -18    jboss-seam/examples/wiki/view/dirDisplay.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: dirDisplay.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/dirDisplay.xhtml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- dirDisplay.xhtml	22 Feb 2007 11:52:25 -0000	1.3
  +++ dirDisplay.xhtml	27 Feb 2007 13:21:44 -0000	1.4
  @@ -10,6 +10,7 @@
   
   <ui:define name="pluginCSS">
       <link href="#{themePath}/css/userControl.css" rel="stylesheet" type="text/css"/>
  +    <link href="#{themePath}/css/searchControl.css" rel="stylesheet" type="text/css"/>
       <link href="#{themePath}/css/mainMenu.css" rel="stylesheet" type="text/css"/>
   </ui:define>
   
  @@ -18,15 +19,18 @@
   <ui:define name="headerTopRight">
       <ui:include src="plugins/userControl/plugin.xhtml"/>
   </ui:define>
  +
   <ui:define name="headerBottomLeft">&#160;</ui:define>
  -<ui:define name="headerBottomRight">&#160;</ui:define>
  +
  +<ui:define name="headerBottomRight">
  +    <ui:include src="plugins/searchControl/plugin.xhtml"/>
  +</ui:define>
   
   <ui:define name="sidebar">
       <ui:include src="plugins/mainMenu/plugin.xhtml"/>
   </ui:define>
   
  -<ui:define name="control">
  -    <div id="controlDocument">
  +<ui:define name="controlRight">
   
           <!-- Real directory -->
           <h:panelGroup rendered="#{!empty currentDirectory.parent}">
  @@ -41,7 +45,6 @@
               <s:link id="editArea"     styleClass="linkNavigation" action="editDir" accesskey="E"><u>E</u>dit Area</s:link>
           </h:panelGroup>
   
  -    </div>
   </ui:define>
   
   <ui:define name="content">
  @@ -49,7 +52,7 @@
       <div class="directoryPathPanel">
           <h:panelGroup>
               <ui:repeat var="directory" value="#{currentDirectoryPath}">
  -                <s:button view="/dirDisplay.xhtml" value="#{directory.name}" styleClass="directoryButton" propagation="none" tabindex="1">
  +                <s:button view="/dirDisplay.xhtml" value="#{directory.name}" styleClass="directoryButton" tabindex="1">
                       <f:param name="nodeId" value="#{directory.id}"/>
                   </s:button>
                   <h:outputText value="/" styleClass="directorySeparator" rendered="#{directory != currentDirectory}"/>
  @@ -84,7 +87,7 @@
   
           <h:column>
               <s:div rendered="#{wiki:isDirectory(node)}">
  -                <s:link id="browseDirectory" value="#{node.name}" view="/dirDisplay.xhtml" propagation="none" tabindex="2">
  +                <s:link id="browseDirectory" value="#{node.name}" view="/dirDisplay.xhtml" tabindex="2">
                       <f:param name="nodeId" value="#{node.id}"/>
                   </s:link>
               </s:div>
  
  
  
  1.3       +20 -15    jboss-seam/examples/wiki/view/userList.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: userList.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/userList.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- userList.xhtml	23 Feb 2007 01:38:31 -0000	1.2
  +++ userList.xhtml	27 Feb 2007 13:21:44 -0000	1.3
  @@ -19,7 +19,9 @@
   <ui:define name="headerTopRight">
       <ui:include src="plugins/userControl/plugin.xhtml"/>
   </ui:define>
  +
   <ui:define name="headerBottomLeft">&#160;</ui:define>
  +
   <ui:define name="headerBottomRight">
       <ui:include src="plugins/searchControl/plugin.xhtml"/>
   </ui:define>
  @@ -28,9 +30,10 @@
       <ui:include src="plugins/mainMenu/plugin.xhtml"/>
   </ui:define>
   
  -<ui:define name="control">
  -    <s:link id="exit" styleClass="linkNavigation" accesskey="E"
  -            action="#{browser.redirectToLastBrowsedPage()}" propagation="end"><u>E</u>nd Search</s:link>
  +<ui:define name="controlRight">
  +    <s:link id="exit" styleClass="linkNavigation"
  +            action="#{userSearch.exitConversation(true)}"
  +            accesskey="E"><u>E</u>xit</s:link>
   </ui:define>
   
   <ui:define name="content">
  @@ -69,7 +72,7 @@
                   </h:panelGroup>
   
                   <h:panelGroup>
  -                    <h:outputLabel styleClass="label" for="pageSize">Limit:</h:outputLabel>
  +                    <h:outputLabel styleClass="label" for="pageSize">Show:</h:outputLabel>
                       <h:selectOneMenu styleClass="input" value="#{userSearch.pageSize}" id="pageSize" tabindex="5">
                           <f:selectItem itemLabel="5" itemValue="5"/>
                           <f:selectItem itemLabel="10" itemValue="10"/>
  @@ -135,22 +138,24 @@
                   <f:facet name="header">
                       <h:commandLink action="#{userSearch.sortBy('username')}" tabindex="8">
                           <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.up.gif" width="8" height="8"
  -                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'username'}"/>
  -                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
                                           rendered="#{!userSearch.orderDescending and userSearch.orderByProperty == 'username'}"/>
  +                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
  +                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'username'}"/>
                           Username
                       </h:commandLink>
                   </f:facet>
  -                #{u.username}
  +                <s:link view="/userAccount.xhtml" value="#{u.username}" tabindex="13" propagation="nest">
  +                    <f:param name="userId" value="#{u.id}"/>
  +                </s:link>
               </h:column>
   
               <h:column>
                   <f:facet name="header">
                       <h:commandLink action="#{userSearch.sortBy('firstname')}" tabindex="9">
                           <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.up.gif" width="8" height="8"
  -                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'firstname'}"/>
  -                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
                                           rendered="#{!userSearch.orderDescending and userSearch.orderByProperty == 'firstname'}"/>
  +                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
  +                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'firstname'}"/>
                           First name
                       </h:commandLink>
                   </f:facet>
  @@ -161,9 +166,9 @@
                   <f:facet name="header">
                       <h:commandLink action="#{userSearch.sortBy('lastname')}" tabindex="10">
                           <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.up.gif" width="8" height="8"
  -                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'lastname'}"/>
  -                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
                                           rendered="#{!userSearch.orderDescending and userSearch.orderByProperty == 'lastname'}"/>
  +                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
  +                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'lastname'}"/>
                           Last name
                       </h:commandLink>
                   </f:facet>
  @@ -174,9 +179,9 @@
                   <f:facet name="header">
                       <h:commandLink action="#{userSearch.sortBy('email')}" tabindex="11">
                           <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.up.gif" width="8" height="8"
  -                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'email'}"/>
  -                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
                                           rendered="#{!userSearch.orderDescending and userSearch.orderByProperty == 'email'}"/>
  +                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
  +                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'email'}"/>
                           E-mail address
                       </h:commandLink>
                   </f:facet>
  @@ -187,9 +192,9 @@
                   <f:facet name="header">
                       <h:commandLink action="#{userSearch.sortBy('createdOn')}" tabindex="12">
                           <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.up.gif" width="8" height="8"
  -                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'createdOn'}"/>
  -                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
                                           rendered="#{!userSearch.orderDescending and userSearch.orderByProperty == 'createdOn'}"/>
  +                        <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/sortindicator.down.gif" width="8" height="8"
  +                                        rendered="#{userSearch.orderDescending and userSearch.orderByProperty == 'createdOn'}"/>
                           Joined on
                       </h:commandLink>
                   </f:facet>
  
  
  
  1.5       +7 -12     jboss-seam/examples/wiki/view/docDisplay.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: docDisplay.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/docDisplay.xhtml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- docDisplay.xhtml	22 Feb 2007 11:52:25 -0000	1.4
  +++ docDisplay.xhtml	27 Feb 2007 13:21:44 -0000	1.5
  @@ -20,29 +20,24 @@
   <ui:define name="headerTopRight">
       <ui:include src="plugins/userControl/plugin.xhtml"/>
   </ui:define>
  +
   <ui:define name="headerBottomLeft">
       <ui:include src="plugins/breadcrumb/plugin.xhtml"/>
   </ui:define>
  +
   <ui:define name="headerBottomRight">
       <ui:include src="plugins/searchControl/plugin.xhtml"/>
   </ui:define>
   
  -
   <ui:define name="sidebar">
       <ui:include src="plugins/mainMenu/plugin.xhtml"/>
   </ui:define>
   
  -<ui:define name="control">
  -    <div>
  -        <h:panelGroup>
  -
  +<ui:define name="controlRight">
               <s:link id="createDoc" styleClass="linkNavigation" action="createDoc" accesskey="C"><u>C</u>reate</s:link>
               <s:link id="editDoc" styleClass="linkNavigation" action="editDoc" accesskey="E"><u>E</u>dit</s:link>
               <s:link id="discussDoc" styleClass="linkNavigation" accesskey="D"><u>D</u>iscuss</s:link>
               <s:link id="browseDir" styleClass="linkNavigation" action="browseDir" accesskey="B"><u>B</u>rowse</s:link>
  -
  -        </h:panelGroup>
  -    </div>
   </ui:define>
   
   <ui:define name="content">
  
  
  
  1.6       +10 -4     jboss-seam/examples/wiki/view/dirEdit.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: dirEdit.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/dirEdit.xhtml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- dirEdit.xhtml	22 Feb 2007 13:05:44 -0000	1.5
  +++ dirEdit.xhtml	27 Feb 2007 13:21:44 -0000	1.6
  @@ -10,6 +10,7 @@
   
   <ui:define name="pluginCSS">
       <link href="#{themePath}/css/userControl.css" rel="stylesheet" type="text/css"/>
  +    <link href="#{themePath}/css/searchControl.css" rel="stylesheet" type="text/css"/>
       <link href="#{themePath}/css/mainMenu.css" rel="stylesheet" type="text/css"/>
   </ui:define>
   
  @@ -21,16 +22,21 @@
   <ui:define name="headerTopRight">
       <ui:include src="plugins/userControl/plugin.xhtml"/>
   </ui:define>
  +
   <ui:define name="headerBottomLeft">&#160;</ui:define>
  -<ui:define name="headerBottomRight">&#160;</ui:define>
  +
  +<ui:define name="headerBottomRight">
  +    <ui:include src="plugins/searchControl/plugin.xhtml"/>
  +</ui:define>
   
   <ui:define name="sidebar">
       <ui:include src="plugins/mainMenu/plugin.xhtml"/>
   </ui:define>
   
  -<ui:define name="control">
  -    <s:link id="exit" styleClass="linkNavigation" accesskey="E"
  -            action="#{browser.redirectToLastBrowsedPage()}" propagation="end"><u>E</u>xit Editor</s:link>
  +<ui:define name="controlRight">
  +    <s:link id="exit" styleClass="linkNavigation"
  +            action="#{directoryHome.exitConversation(true)}"
  +            accesskey="E"><u>E</u>xit Editor</s:link>
   </ui:define>
   
   <ui:define name="content">
  
  
  
  1.6       +10 -4     jboss-seam/examples/wiki/view/docEdit.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: docEdit.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/docEdit.xhtml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- docEdit.xhtml	22 Feb 2007 13:05:44 -0000	1.5
  +++ docEdit.xhtml	27 Feb 2007 13:21:44 -0000	1.6
  @@ -10,6 +10,7 @@
   
   <ui:define name="pluginCSS">
       <link href="#{themePath}/css/userControl.css" rel="stylesheet" type="text/css"/>
  +    <link href="#{themePath}/css/searchControl.css" rel="stylesheet" type="text/css"/>
       <link href="#{themePath}/css/mainMenu.css" rel="stylesheet" type="text/css"/>
   </ui:define>
   
  @@ -21,16 +22,21 @@
   <ui:define name="headerTopRight">
       <ui:include src="plugins/userControl/plugin.xhtml"/>
   </ui:define>
  +
   <ui:define name="headerBottomLeft">&#160;</ui:define>
  -<ui:define name="headerBottomRight">&#160;</ui:define>
  +
  +<ui:define name="headerBottomRight">
  +    <ui:include src="plugins/searchControl/plugin.xhtml"/>
  +</ui:define>
   
   <ui:define name="sidebar">
       <ui:include src="plugins/mainMenu/plugin.xhtml"/>
   </ui:define>
   
  -<ui:define name="control">
  -    <s:link id="exit" styleClass="linkNavigation" accesskey="E"
  -            action="#{browser.redirectToLastBrowsedPage()}" propagation="end"><u>E</u>xit Editor</s:link>
  +<ui:define name="controlRight">
  +    <s:link id="exit" styleClass="linkNavigation"
  +            action="#{documentHome.exitConversation(true)}"
  +            accesskey="E"><u>E</u>xit Editor</s:link>
   </ui:define>
   
   <ui:define name="content">
  
  
  
  1.1      date: 2007/02/27 13:21:44;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/userPrefs.xhtml
  
  Index: userPrefs.xhtml
  ===================================================================
  <!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:wiki="http://jboss.com/products/seam/wiki"
                  template="themes/#{globalPrefs.themeName}/template.xhtml">
  
  <ui:define name="pluginCSS">
      <link href="#{themePath}/css/userControl.css" rel="stylesheet" type="text/css"/>
      <link href="#{themePath}/css/searchControl.css" rel="stylesheet" type="text/css"/>
      <link href="#{themePath}/css/mainMenu.css" rel="stylesheet" type="text/css"/>
  </ui:define>
  
  <ui:define name="screenname">Member Preferences</ui:define>
  
  <ui:define name="headerTopRight">
      <ui:include src="plugins/userControl/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="headerBottomLeft">&#160;</ui:define>
  
  <ui:define name="headerBottomRight">
      <ui:include src="plugins/searchControl/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="sidebar">
      <ui:include src="plugins/mainMenu/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="controlLeft">
      <s:div rendered="#{userHome.managed}">
          <s:link id="editAccount" styleClass="linkTab" action="editAccount">Account</s:link>
          <s:link id="editProfile" styleClass="linkTab" action="editProfile">Profile</s:link>
          <s:link id="editPreferences" styleClass="linkTabActive" action="editPreferences">Preferences</s:link>
      </s:div>
  </ui:define>
  
  <ui:define name="controlRight">
      <s:link id="exit" styleClass="linkNavigation"
              action="#{userHome.exitConversation(true)}"
              accesskey="E"><u>E</u>xit</s:link>
  </ui:define>
  
  <ui:define name="content">
  
      Not implemented.
  
  </ui:define>
  
  <ui:define name="footer">&#160;</ui:define>
  
  </ui:composition>
  
  
  
  
  1.1      date: 2007/02/27 13:21:44;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/userAccount.xhtml
  
  Index: userAccount.xhtml
  ===================================================================
  <!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:wiki="http://jboss.com/products/seam/wiki"
                  template="themes/#{globalPrefs.themeName}/template.xhtml">
  
  <ui:define name="pluginCSS">
      <link href="#{themePath}/css/userControl.css" rel="stylesheet" type="text/css"/>
      <link href="#{themePath}/css/searchControl.css" rel="stylesheet" type="text/css"/>
      <link href="#{themePath}/css/mainMenu.css" rel="stylesheet" type="text/css"/>
  </ui:define>
  
  <ui:define name="screenname">
      <h:outputText value="Registration" rendered="#{!userHome.managed}"/>
      <h:outputText value="Member Account" rendered="#{userHome.managed}"/>
  </ui:define>
  
  <ui:define name="headerTopRight">
      <ui:include src="plugins/userControl/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="headerBottomLeft">&#160;</ui:define>
  
  <ui:define name="headerBottomRight">
      <ui:include src="plugins/searchControl/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="sidebar">
      <ui:include src="plugins/mainMenu/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="controlLeft">
      <s:div rendered="#{userHome.managed}">
          <s:link id="editAccount" styleClass="linkTabActive" action="editAccount">Account</s:link>
          <s:link id="editProfile" styleClass="linkTab" action="editProfile">Profile</s:link>
          <s:link id="editPreferences" styleClass="linkTab" action="editPreferences">Preferences</s:link>
      </s:div>
  </ui:define>
  
  <ui:define name="controlRight">
      <s:link id="exit" styleClass="linkNavigation"
              action="#{userHome.exitConversation(true)}"
              accesskey="E"><u>E</u>xit</s:link>
  </ui:define>
  
  <ui:define name="content">
  
  <h:form>
      <div class="form">
          <div class="formHead">
              <h:outputText value="Register a new account" rendered="#{!userHome.managed}"/>
              <h:outputText value="Editing account: #{userHome.instance.username}" rendered="#{userHome.managed}"/>
          </div>
  
          <div class="formFieldsWideLabels">
  
              <s:validateAll>
  
                  <s:decorate>
                      <div class="entry">
                          <div class="label">First name:</div>
                          <div class="input">
                              <h:inputText tabindex="1" size="40" maxlength="63" id="firstname" required="true"
                                           value="#{userHome.instance.firstname}"/>
                          </div>
                      </div>
                  </s:decorate>
  
                  <s:decorate>
                      <div class="entry">
                          <div class="label">Last name:</div>
                          <div class="input">
                              <h:inputText tabindex="2" size="40" maxlength="63" id="lastname" required="true"
                                           value="#{userHome.instance.lastname}"/>
                          </div>
                      </div>
                  </s:decorate>
  
                  <s:decorate>
                      <div class="entry">
                          <div class="label">E-Mail:</div>
                          <div class="input">
                              <h:inputText tabindex="3" size="40" maxlength="255" id="email" required="true"
                                           value="#{userHome.instance.email}"/>
                          </div>
                      </div>
                  </s:decorate>
  
                  <s:decorate>
                      <div class="entry">
                          <div class="label">Username:</div>
                          <div class="input">
                              <h:inputText tabindex="4" size="16" maxlength="16" id="username" required="true"
                                           value="#{userHome.instance.username}"/>
                          </div>
                      </div>
                  </s:decorate>
  
                  <s:decorate>
                      <div class="entry">
                          <div class="label">Password:</div>
                          <div class="input">
                              <h:inputSecret tabindex="5" size="15" maxlength="15" id="password"
                                             redisplay="true"
                                             value="#{userHome.password}"/>
                          </div>
                      </div>
                  </s:decorate>
  
                  <s:decorate>
                      <div class="entry">
                          <div class="label">Repeat password:</div>
                          <div class="input">
                              <h:inputSecret tabindex="6" size="15" maxlength="15" id="passwordControl"
                                             redisplay="true"
                                             value="#{userHome.passwordControl}"/>
                          </div>
                      </div>
                  </s:decorate>
  
                  <s:div styleClass="entry" rendered="#{!userHome.managed}">
                      <div class="label">Verification image:</div>
                      <div class="output">
                          <h:graphicImage value="/seam/resource/captcha?#{captcha.id}" style="border: 1px solid black;"/>
                      </div>
                  </s:div>
  
                  <s:decorate>
                      <s:div styleClass="entry" rendered="#{!userHome.managed}">
                          <div class="label">Enter the letters:</div>
                          <div class="input">
                              <h:inputText tabindex="7" size="15" id="verifyCaptcha" value="#{captcha.response}" required="true"/>
                          </div>
                      </s:div>
                  </s:decorate>
  
              </s:validateAll>
  
          </div>
  
          <div class="formControlsWideLabels">
  
              <div class="entry">
                  <div class="label">&#160;</div>
                  <div class="input">
  
                      <h:commandLink id="register" styleClass="button"
                                     action="#{userHome.persist}"
                                     rendered="#{!userHome.managed}"
                                     tabindex="8" accesskey="G"><span class="buttonLabel">Re<u>g</u>ister</span></h:commandLink>
  
                      <h:commandLink id="update" styleClass="button"
                                     action="#{userHome.update}"
                                     rendered="#{userHome.managed}"
                                     tabindex="9" accesskey="U"><span class="buttonLabel"><u>U</u>pdate</span></h:commandLink>
  
                  </div>
              </div>
  
          </div>
  
      </div>
  </h:form>
  
  
  </ui:define>
  
  <ui:define name="footer">&#160;</ui:define>
  
  </ui:composition>
  
  
  
  
  1.1      date: 2007/02/27 13:21:44;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/userProfile.xhtml
  
  Index: userProfile.xhtml
  ===================================================================
  <!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:wiki="http://jboss.com/products/seam/wiki"
                  template="themes/#{globalPrefs.themeName}/template.xhtml">
  
  <ui:define name="pluginCSS">
      <link href="#{themePath}/css/userControl.css" rel="stylesheet" type="text/css"/>
      <link href="#{themePath}/css/searchControl.css" rel="stylesheet" type="text/css"/>
      <link href="#{themePath}/css/mainMenu.css" rel="stylesheet" type="text/css"/>
  </ui:define>
  
  <ui:define name="screenname">Member Profile</ui:define>
  
  <ui:define name="headerTopRight">
      <ui:include src="plugins/userControl/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="headerBottomLeft">&#160;</ui:define>
  
  <ui:define name="headerBottomRight">
      <ui:include src="plugins/searchControl/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="sidebar">
      <ui:include src="plugins/mainMenu/plugin.xhtml"/>
  </ui:define>
  
  <ui:define name="controlLeft">
      <s:div rendered="#{userHome.managed}">
          <s:link id="editAccount" styleClass="linkTab" action="editAccount">Account</s:link>
          <s:link id="editProfile" styleClass="linkTabActive" action="editProfile">Profile</s:link>
          <s:link id="editPreferences" styleClass="linkTab" action="editPreferences">Preferences</s:link>
      </s:div>
  </ui:define>
  
  <ui:define name="controlRight">
      <s:link id="exit" styleClass="linkNavigation"
              action="#{userHome.exitConversation(true)}"
              accesskey="E"><u>E</u>xit</s:link>
  </ui:define>
  
  <ui:define name="content">
  
      Not implemented.
  
  </ui:define>
  
  <ui:define name="footer">&#160;</ui:define>
  
  </ui:composition>
  
  
  
  



More information about the jboss-cvs-commits mailing list