[jboss-cvs] jboss-seam/examples/wiki/view/plugins/forumPosting ...
Christian Bauer
christian at hibernate.org
Tue Jan 1 08:01:18 EST 2008
User: cbauer
Date: 08/01/01 08:01:18
Modified: examples/wiki/view/plugins/forumPosting
forumPostingHeader.xhtml
Log:
JBSEAM-1863 - Pager plugin for previous/next document, also on forum header
Revision Changes Path
1.4 +15 -1 jboss-seam/examples/wiki/view/plugins/forumPosting/forumPostingHeader.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: forumPostingHeader.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/plugins/forumPosting/forumPostingHeader.xhtml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- forumPostingHeader.xhtml 30 Dec 2007 02:33:29 -0000 1.3
+++ forumPostingHeader.xhtml 1 Jan 2008 13:01:17 -0000 1.4
@@ -28,7 +28,7 @@
<h:outputText styleClass="buttonLabel" escape="false" value="#{messages['forum.button.TopicList']}"/>
</h:outputLink>
- <s:fragment rendered="#{s:hasPermission('Comment', 'delete', currentDocument) and not replyHome.showForm}">
+ <s:fragment rendered="#{s:hasPermission('Node', 'create', currentDirectory) and not replyHome.showForm}">
<h:outputLink value="#{wiki:renderURL(currentDirectory.defaultFile)}?showTopicForm=true"
accesskey="#{messages['forum.button.NewTopic.accesskey']}"
tabindex="1" styleClass="buttonNonpersistent">
@@ -36,6 +36,20 @@
</h:outputLink>
</s:fragment>
+ <h:outputLink value="#{wiki:renderURL(docPager.previous)}"
+ rendered="#{not empty docPager.previous and docPager.previous.id != currentDirectory.defaultFile.id}"
+ accesskey="#{messages['forum.button.PreviousPosting.accesskey']}"
+ tabindex="1" styleClass="buttonNonpersistent">
+ <h:outputText styleClass="buttonLabel" escape="false" value="#{messages['forum.button.PreviousPosting']}"/>
+ </h:outputLink>
+
+ <h:outputLink value="#{wiki:renderURL(docPager.next)}"
+ rendered="#{not empty docPager.next and docPager.next.id != currentDirectory.defaultFile.id}"
+ accesskey="#{messages['forum.button.NextPosting.accesskey']}"
+ tabindex="1" styleClass="buttonNonpersistent">
+ <h:outputText styleClass="buttonLabel" escape="false" value="#{messages['forum.button.NextPosting']}"/>
+ </h:outputLink>
+
</h:panelGroup>
</h:panelGrid>
More information about the jboss-cvs-commits
mailing list