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

Christian Bauer christian at hibernate.org
Fri Aug 31 11:18:26 EDT 2007


  User: cbauer  
  Date: 07/08/31 11:18:26

  Modified:    examples/wiki/view/includes   wikiTextEditor.xhtml
  Added:       examples/wiki/view/includes   statusIndicator.xhtml
  Log:
  Status indicator for ajax requests
  
  Revision  Changes    Path
  1.3       +2 -0      jboss-seam/examples/wiki/view/includes/wikiTextEditor.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: wikiTextEditor.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/includes/wikiTextEditor.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- wikiTextEditor.xhtml	25 Aug 2007 17:59:24 -0000	1.2
  +++ wikiTextEditor.xhtml	31 Aug 2007 15:18:26 -0000	1.3
  @@ -70,6 +70,7 @@
   
           <s:div id="#{textEditorId}PreviewTriggerContainer">
               <a:commandLink id="#{textEditorId}PreviewTrigger" onclick="setPreviewPopupPosition#{textEditorId}()"
  +                           status="#{namingContainer}:status"
                              reRender="#{textEditorId}Label, #{textEditorId}Message, #{textEditorId}TabErrors, #{textEditorId}PreviewContent"
                              styleClass="buttonNonpersistent" tabindex="1"><span class="buttonLabel"><u>O</u>pen Preview</span></a:commandLink>
           </s:div>
  @@ -108,6 +109,7 @@
                                value="#{valueBinding}">
                   <!-- TODO: Ideally this should only fire when the preview popup is open... maybe use jquery.bind()/unbind() event handling-->
                   <a:support event="onkeyup" reRender="#{textEditorId}Label, #{textEditorId}Message, #{textEditorId}TabErrors, #{textEditorId}PreviewContent"
  +                           status="#{namingContainer}:status"
                              requestDelay="3000" ajaxSingle="true"
                              eventsQueue="editKeyPress"/>
               </h:inputTextarea>
  
  
  
  1.1      date: 2007/08/31 15:18:26;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/statusIndicator.xhtml
  
  Index: statusIndicator.xhtml
  ===================================================================
  <s:div styleClass="statusIndicator"
         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:a="https://ajax4jsf.dev.java.net/ajax"
         xmlns:s="http://jboss.com/products/seam/taglib">
  
      <a:status id="status">
          <f:facet name="start">
              <s:div styleClass="statusStart">
                  <h:graphicImage value="/themes/#{wikiPreferences.themeName}/img/statusindicator.gif" width="20" height="25"/>
              </s:div>
          </f:facet>
          <f:facet name="stop">
              <s:div styleClass="statusStop">
                  <h:graphicImage value="/themes/#{wikiPreferences.themeName}/img/blank.gif" width="20" height="25"/>
              </s:div>
          </f:facet>
      </a:status>
  
  </s:div>
  
  
  



More information about the jboss-cvs-commits mailing list