[jboss-cvs] jboss-seam/examples/wiki/view/plugins/blogArchive ...
Christian Bauer
christian at hibernate.org
Sat Dec 29 21:33:28 EST 2007
User: cbauer
Date: 07/12/29 21:33:28
Modified: examples/wiki/view/plugins/blogArchive plugin.xhtml
Log:
Complete overhaul of the preferences system
Revision Changes Path
1.9 +5 -18 jboss-seam/examples/wiki/view/plugins/blogArchive/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/blogArchive/plugin.xhtml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- plugin.xhtml 12 Oct 2007 16:31:25 -0000 1.8
+++ plugin.xhtml 30 Dec 2007 02:33:28 -0000 1.9
@@ -1,4 +1,4 @@
-<wiki:plugin id="blogArchivePlugin"
+<wiki:plugin
rendered="#{skin == 'd'}"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -8,35 +8,22 @@
xmlns:wiki="http://jboss.com/products/seam/wiki"
xmlns:s="http://jboss.com/products/seam/taglib">
- <s:div id="blogArchivePluginDiv"
- styleClass="#{showPluginPreferences and !empty blogArchivePreferencesEditor ? 'pluginPreferencesBox box' : 'box'}">
-
- <s:div id="blogArchivePreferences"
- rendered="#{showPluginPreferences and !empty blogArchivePreferencesEditor}">
- <div align="center">
- <h:message for="blogArchivePreferences" styleClass="pluginPreferencesMessage"/>
-
- <ui:include src="../../includes/pluginPreferencesForm.xhtml">
- <ui:param name="pluginDiv" value="blogArchivePluginDiv"/>
- <ui:param name="pluginPreferencesEditor" value="#{blogArchivePreferencesEditor}"/>
- </ui:include>
- </div>
- </s:div>
+ <s:div styleClass="blogArchive box">
<s:div styleClass="blogArchive">
- <s:div styleClass="boxHeader" rendered="#{not blogArchivePreferences.showSubscribeIcon}">
+ <s:div styleClass="boxHeader" rendered="#{not preferences.get('Blog').archiveSubscribeIcon}">
<h:outputText rendered="#{empty param.tag}" value="#{messages['blogArchive.label.Archive']}"/>
<h:outputText rendered="#{not empty param.tag}" value="#{messages['blogArchive.label.Archive']} '#{param.tag}'"/>
</s:div>
- <h:panelGrid rendered="#{blogArchivePreferences.showSubscribeIcon}"
+ <h:panelGrid rendered="#{preferences.get('Blog').archiveSubscribeIcon}"
columns="2" cellpadding="0" cellspacing="0" border="0"
styleClass="boxHeader fullWidth">
<h:panelGrid rendered="#{not empty currentDirectory.feed}" columns="2" cellpadding="0" cellspacing="0" border="0">
<h:outputLink value="#{facesContext.externalContext.request.contextPath}/servlets/feeds/atom.seam?feedId=#{currentDirectory.feed.id}">
- <h:graphicImage value="/themes/#{wikiPreferences.themeName}/img/icon.atom.ongrey.gif" width="18" height="18" alt="Atom"/>
+ <h:graphicImage value="/themes/#{preferences.get('Wiki').themeName}/img/icon.atom.ongrey.gif" width="18" height="18" alt="Atom"/>
</h:outputLink>
<h:outputLink value="#{facesContext.externalContext.request.contextPath}/servlets/feeds/atom.seam?feedId=#{currentDirectory.feed.id}">
<h:outputText value="#{messages['blogArchive.label.Subscribe']}"/>
More information about the jboss-cvs-commits
mailing list