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

Christian Bauer christian at hibernate.org
Mon Apr 2 14:25:06 EDT 2007


  User: cbauer  
  Date: 07/04/02 14:25:06

  Modified:    examples/wiki/view/plugins/lastModifiedDocuments 
                        plugin.xhtml
  Log:
  Totally overengineered but definitely cool system/user/instance wiki preferences architecture
  
  Revision  Changes    Path
  1.5       +29 -17    jboss-seam/examples/wiki/view/plugins/lastModifiedDocuments/plugin.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: plugin.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/plugins/lastModifiedDocuments/plugin.xhtml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- plugin.xhtml	21 Mar 2007 01:24:48 -0000	1.4
  +++ plugin.xhtml	2 Apr 2007 18:25:06 -0000	1.5
  @@ -2,11 +2,24 @@
   	 xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
  +       xmlns:a="https://ajax4jsf.dev.java.net/ajax"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:wiki="http://jboss.com/products/seam/wiki"
  -     xmlns:s="http://jboss.com/products/seam/taglib">
  +       xmlns:s="http://jboss.com/products/seam/taglib"
  +       styleClass="#{showPluginPreferences and !empty lastModifiedDocumentsPreferencesEditor ? 'pluginPreferencesBox' : null}">
   
  -    <h:dataTable value="#{lastModifiedDocuments}" var="doc" style="width:300px"
  +    <s:div id="lastModifiedDocumentsPreferences"
  +           rendered="#{showPluginPreferences and !empty lastModifiedDocumentsPreferencesEditor}">
  +        <div align="center">
  +            <h:message for="lastModifiedDocumentsPreferences" styleClass="attentionMessage"/>
  +
  +            <ui:include src="../../includes/pluginPreferencesForm.xhtml">
  +                <ui:param name="pluginPreferencesEditor" value="#{lastModifiedDocumentsPreferencesEditor}"/>
  +            </ui:include>
  +        </div>
  +    </s:div>
  +
  +    <h:dataTable value="#{lastModifiedDocumentsPlugin.lastModifiedDocuments}" var="doc" style="width:300px"
            styleClass="datatable rightBorder leftBorder topBorder bottomBorder"
            headerClass="regularHeader alignLeft"
            columnClasses="tenPercentColumn alignLeft, tenPercentColumn alignLeft"
  @@ -14,22 +27,21 @@
            cellpadding="0" cellspacing="0" border="0">
           <h:column>
               <f:facet name="header">
  -                Recent changes:
  +                Last #{lastModifiedDocumentsPreferences.properties['numberOfItems']} modified documents:
               </f:facet>
               <h:outputText value="#{doc.lastModifiedOn}"
                             rendered="#{!empty doc.lastModifiedOn}">
                   <f:convertDateTime pattern="dd. MMM yyyy, HH:mm"/>
               </h:outputText>
               <h:outputText value=" (#{doc.lastModifiedBy.username})"
  -                          rendered="#{!empty doc.lastModifiedBy}">
  +                          rendered="#{!empty doc.lastModifiedBy and lastModifiedDocumentsPreferences.properties['showUsernames']}">
               </h:outputText>
           </h:column>
           <h:column>
               <h:outputLink value="#{wiki:renderURL(doc)}" styleClass="lastModifiedLink">
  -                #{doc.name}
  +                <h:outputText value="#{wiki:truncateString(doc.name, lastModifiedDocumentsPreferences.properties['documentTitleLength'],'...')}"/>
               </h:outputLink>
           </h:column>
       </h:dataTable>
   
   </s:div>
  -
  
  
  



More information about the jboss-cvs-commits mailing list