Author: ilya_shaikovsky
Date: 2008-03-27 10:19:34 -0400 (Thu, 27 Mar 2008)
New Revision: 7301
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml
Log:
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml 2008-03-27
14:19:04 UTC (rev 7300)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/listShuttle/examples/toolBarCustomization.xhtml 2008-03-27
14:19:34 UTC (rev 7301)
@@ -1,46 +1,43 @@
-<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:rich="http://richfaces.org/rich"
-
xmlns:c="http://java.sun.com/jstl/core">
-
-<style>
-.pic{
-margin-bottom:-4px;
-margin-right:2px;
-}
-a{
-text-decoration:none;
-color:#{a4jSkin.headerTextColor};
-}
-</style>
- <h:form>
- <rich:toolBar id="toolBar" itemSeparator="line"
height="28px">
- <c:forEach items="#{toolBar.items}" var="item">
- <h:panelGroup>
- <h:graphicImage value="#{item.iconURI}"
styleClass="pic"/>
- <h:outputLink value="#">
- <h:outputText value="#{item.label}"></h:outputText>
- </h:outputLink>
- </h:panelGroup>
- </c:forEach>
- </rich:toolBar>
- <rich:spacer height="20"></rich:spacer>
-
- <rich:listShuttle sourceValue="#{toolBar.freeItems}"
- targetValue="#{toolBar.items}" var="items"
listHeight="300" listWidth="300"
- sourceCaptionLabel="Available Items"
- targetCaptionLabel="Currently Active Items"
- converter="listShuttleconverter">
- <rich:column width="18">
- <h:graphicImage value="#{items.iconURI}"></h:graphicImage>
- </rich:column>
- <rich:column>
- <h:outputText value="#{items.label}"></h:outputText>
- </rich:column>
- <a4j:support event="onlistchanged" reRender="toolBar"/>
- </rich:listShuttle>
- </h:form>
-</ui:composition>
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:c="http://java.sun.com/jstl/core">
+
+ <style>
+.pic {
+ margin-bottom: -4px;
+ margin-right: 2px;
+}
+</style>
+ <h:form>
+ <rich:toolBar id="toolBar" itemSeparator="line"
height="28px">
+ <c:forEach items="#{toolBar.items}" var="item">
+ <h:panelGroup>
+ <h:graphicImage value="#{item.iconURI}" styleClass="pic"
/>
+ <h:outputLink value="#">
+ <h:outputText value="#{item.label}"
+ style="color:#{a4jSkin.generalTextColor}; text-decoration:none;" />
+ </h:outputLink>
+ </h:panelGroup>
+ </c:forEach>
+ </rich:toolBar>
+ <rich:spacer height="20" />
+
+ <rich:listShuttle sourceValue="#{toolBar.freeItems}"
+ targetValue="#{toolBar.items}" var="items"
listHeight="300"
+ listWidth="300" sourceCaptionLabel="Available Items"
+ targetCaptionLabel="Currently Active Items"
+ converter="listShuttleconverter">
+ <rich:column width="18">
+ <h:graphicImage value="#{items.iconURI}"></h:graphicImage>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{items.label}"></h:outputText>
+ </rich:column>
+ <a4j:support event="onlistchanged" reRender="toolBar" />
+ </rich:listShuttle>
+ </h:form>
+</ui:composition>