[jboss-cvs] jboss-seam/examples/wiki/view/plugins/flash ...
Christian Bauer
christian at hibernate.org
Sat Dec 29 21:33:20 EST 2007
User: cbauer
Date: 07/12/29 21:33:20
Modified: examples/wiki/view/plugins/flash plugin.xhtml
Log:
Complete overhaul of the preferences system
Revision Changes Path
1.5 +12 -22 jboss-seam/examples/wiki/view/plugins/flash/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/flash/plugin.xhtml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- plugin.xhtml 14 Nov 2007 10:55:25 -0000 1.4
+++ plugin.xhtml 30 Dec 2007 02:33:20 -0000 1.5
@@ -6,39 +6,29 @@
xmlns:wiki="http://jboss.com/products/seam/wiki"
xmlns:s="http://jboss.com/products/seam/taglib">
-<s:div id="flashPluginDiv" styleClass="#{showPluginPreferences and !empty flashPreferencesEditor ? 'pluginPreferencesBox' : ''}">
+<s:div id="flashPluginDiv">
- <s:div id="flashPreferences"
- rendered="#{showPluginPreferences and !empty flashPreferencesEditor}">
- <div align="center">
- <h:message for="flashPreferences" styleClass="pluginPreferencesMessage"/>
-
- <ui:include src="../../includes/pluginPreferencesForm.xhtml">
- <ui:param name="pluginDiv" value="flashPluginDiv"/>
- <ui:param name="pluginPreferencesEditor" value="#{flashPreferencesEditor}"/>
- </ui:include>
- </div>
- </s:div>
-
- <s:div rendered="#{not empty flashPreferences.flashURL and flash.URLAllowed}">
- <object width="#{flashPreferencesobjectWidth}"
- height="#{flashPreferences.objectHeight}">
- <param name="movie" value="#{flashPreferences.flashURL}"></param>
+ <s:div rendered="#{not empty preferences.get('Flash', currentMacro).url and flash.URLAllowed}">
+ <object width="#{preferences.get('Flash', currentMacro).width}"
+ height="#{preferences.get('Flash', currentMacro).height}">
+ <param name="movie" value="#{preferences.get('Flash', currentMacro).url}"></param>
<param name="wmode" value="transparent"></param>
- <embed src="#{flashPreferences.flashURL}"
+ <embed src="#{preferences.get('Flash', currentMacro).url}"
type="application/x-shockwave-flash"
wmode="transparent"
- width="#{flashPreferences.objectWidth}"
- height="#{flashPreferences.objectHeight}">
+ width="#{preferences.get('Flash', currentMacro).width}"
+ height="#{preferences.get('Flash', currentMacro).height}">
</embed>
</object>
</s:div>
- <s:div rendered="#{empty flashPreferences.flashURL}" styleClass="flashURLNotSupplied">
+ <s:div rendered="#{empty preferences.get('Flash', currentMacro).url}"
+ styleClass="flashURLNotSupplied">
<h:outputText value="#{messages['flash.msg.URLNotSupplied']}"/>
</s:div>
- <s:div rendered="#{not empty flashPreferences.flashURL and not flash.URLAllowed}" styleClass="flashURLNotAllowed">
+ <s:div rendered="#{not empty preferences.get('Flash', currentMacro).url and not flash.URLAllowed}"
+ styleClass="flashURLNotAllowed">
<h:outputText value="#{messages['flash.msg.URLNotAllowed']}"/>
</s:div>
More information about the jboss-cvs-commits
mailing list