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

Christian Bauer christian at hibernate.org
Thu Apr 19 01:44:47 EDT 2007


  User: cbauer  
  Date: 07/04/19 01:44:46

  Modified:    examples/wiki/view   fileEdit.xhtml docEdit.xhtml
  Log:
  Fixed a few minor bugs, now runs on 4.2 CR2
  
  Revision  Changes    Path
  1.11      +2 -2      jboss-seam/examples/wiki/view/fileEdit.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: fileEdit.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/fileEdit.xhtml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- fileEdit.xhtml	18 Apr 2007 15:34:27 -0000	1.10
  +++ fileEdit.xhtml	19 Apr 2007 05:44:46 -0000	1.11
  @@ -93,8 +93,8 @@
                           <div class="entry">
                               <div class="label">Image Preview:</div>
                               <div class="output">
  -                                <h:outputLink value="#{facesContext.externalContext.requestContextPath}/files/download.seam?fileId=#{fileHome.instance.id}"><h:graphicImage
  -                                    style="border: 1px solid black;" value="/files/download.seam?fileId=#{fileHome.instance.id}&amp;width=#{fileHome.imagePreviewSize}&amp;conversationId=#{conversation.id}"/>
  +                                <h:outputLink value="#{facesContext.externalContext.requestContextPath}/servlets/files/download.seam?fileId=#{fileHome.instance.id}"><h:graphicImage
  +                                    style="border: 1px solid black;" value="/servlets/files/download.seam?fileId=#{fileHome.instance.id}&amp;width=#{fileHome.imagePreviewSize}&amp;conversationId=#{conversation.id}"/>
                                   </h:outputLink>
                                   
                               </div>
  
  
  
  1.24      +33 -2     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.23
  retrieving revision 1.24
  diff -u -b -r1.23 -r1.24
  --- docEdit.xhtml	18 Apr 2007 15:34:27 -0000	1.23
  +++ docEdit.xhtml	19 Apr 2007 05:44:46 -0000	1.24
  @@ -1,4 +1,3 @@
  -
   <!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"
  @@ -59,6 +58,16 @@
               </div>
   
               <div class="formFields formBorder">
  +
  +                <s:div id="selectedDirectory" styleClass="entry" rendered="#{documentHome.managed}">
  +                    <div class="label">In directory:</div>
  +                    <div class="output">
  +                        #{documentHome.parentDirectory}
  +                        <h:outputLink id="selectDirectory" value="javascript:Richfaces.showModalPanel('directorySelection',{width:250, height:250, top:100})"
  +                                      tabindex="1" styleClass="buttonNonpersistent"><span class="buttonLabel">...</span></h:outputLink>
  +                    </div>
  +                </s:div>
  +
                   <s:validateAll>
   
                       <s:div styleClass="entry" rendered="#{documentHome.managed}">
  @@ -198,6 +207,28 @@
           </ui:define>
       </ui:decorate>
   
  +    <ui:decorate template="includes/confirmationModalDialog.xhtml">
  +        <ui:param name="confirmationModalDialogId" value="directorySelection"/>
  +        <ui:define name="confirmationTitle">
  +            Select parent directory...
  +        </ui:define>
  +        <ui:define name="confirmationContent">
  +            <rich:tree id="directoryTree" switchType="ajax"
  +                       value="#{writableDirectoryTree}" var="d"
  +                       style="margin: 10px;"
  +                       icon="/themes/default/img/icon.dir.gif"
  +                       iconLeaf="/themes/default/img/icon.dir.gif"
  +                       selectedClass="activeTab"
  +                       ajaxSubmitSelection="true"
  +                       onselected="Richfaces.hideModalPanel('directorySelection')"
  +                       nodeSelectListener="#{documentHome.parentDirectorySelected}"
  +                       reRender="selectedDirectory, content">
  +                <rich:treeNode type="simpleNode">
  +                    <h:outputText value="#{d.id} - #{d.name}"/>
  +                </rich:treeNode>
  +            </rich:tree>
  +        </ui:define>
  +    </ui:decorate>
   
       <s:div styleClass="documentDisplay" id="preview">
           <s:div rendered="#{documentHome.enabledPreview}">
  
  
  



More information about the jboss-cvs-commits mailing list