[jboss-cvs] jboss-seam/examples/wiki/view/plugins/blogDirectory ...
Christian Bauer
christian at hibernate.org
Wed Mar 21 15:38:47 EDT 2007
User: cbauer
Date: 07/03/21 15:38:47
Modified: examples/wiki/view/plugins/blogDirectory plugin.xhtml
Log:
Implemented blog directory pager
Revision Changes Path
1.3 +40 -3 jboss-seam/examples/wiki/view/plugins/blogDirectory/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/blogDirectory/plugin.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- plugin.xhtml 21 Mar 2007 01:24:50 -0000 1.2
+++ plugin.xhtml 21 Mar 2007 19:38:47 -0000 1.3
@@ -10,9 +10,6 @@
<div id="blogTitle">
#{currentDocument.name}
</div>
- <div id="blogTotalEntries">
- <h:outputText value="Blog entries: #{blogEntries.rowCount}"/>
- </div>
</s:div>
<s:div id="blogEntriesContainer" rendered="#{blogEntries.rowCount > 0}">
@@ -61,4 +58,44 @@
No blog entries found, create documents in this directory to create blog entries.
</s:div>
+ <h:panelGrid columns="5"
+ styleClass="blogPagerTable"
+ columnClasses="blogPagerColumn, blogPagerColumn, blogPagerTextColumn, blogPagerColumn, blogPagerColumn, "
+ cellpadding="0" cellspacing="0" border="0">
+
+ <h:outputLink rendered="#{blogDirectory.previousPageAvailable}">
+ <f:param name="blogPage" value="#{blogDirectory.firstPage}"/>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/page.first.gif" width="13" height="11"/>
+ </h:outputLink>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/blank.gif" width="13" height="11"
+ rendered="#{!blogDirectory.previousPageAvailable}"/>
+
+ <h:outputLink rendered="#{blogDirectory.previousPageAvailable}">
+ <f:param name="blogPage" value="#{blogDirectory.previousPage}"/>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/page.previous.gif" width="13" height="11"/>
+ </h:outputLink>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/blank.gif" width="13" height="11"
+ rendered="#{!blogDirectory.previousPageAvailable}"/>
+
+ <h:outputText value="Showing #{blogDirectory.firstRow} to
+ #{blogDirectory.lastRow} of
+ #{blogDirectory.totalRowCount} blog entries"/>
+
+ <h:outputLink rendered="#{blogDirectory.nextPageAvailable}">
+ <f:param name="blogPage" value="#{blogDirectory.nextPage}"/>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/page.next.gif" width="13" height="11"/>
+ </h:outputLink>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/blank.gif" width="13" height="11"
+ rendered="#{!blogDirectory.nextPageAvailable}"/>
+
+ <h:outputLink rendered="#{blogDirectory.nextPageAvailable}">
+ <f:param name="blogPage" value="#{blogDirectory.lastPage}"/>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/page.last.gif" width="13" height="11"/>
+ </h:outputLink>
+ <h:graphicImage value="/themes/#{globalPrefs.themeName}/img/blank.gif" width="13" height="11"
+ rendered="#{!blogDirectory.nextPageAvailable}"/>
+
+ </h:panelGrid>
+
+
</s:div>
More information about the jboss-cvs-commits
mailing list