Author: vmolotkov
Date: 2007-10-26 09:26:33 -0400 (Fri, 26 Oct 2007)
New Revision: 3563
Added:
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx
Log:
Added:
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx
===================================================================
--- trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx
(rev 0)
+++
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx 2007-10-26
13:26:33 UTC (rev 3563)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+
xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c="
http://java.sun.com/jsf/core"
+ xmlns:ui="
http://ajax4jsf.org/cdk/ui"
+ xmlns:u="
http://ajax4jsf.org/cdk/u"
+ xmlns:x="
http://ajax4jsf.org/cdk/x"
+ baseclass="org.richfaces.renderkit.html.SelectOrderShuttleRendererBase"
+ class="org.richfaces.renderkit.html.SelectOrderShuttleRenderer"
+ component="org.richfaces.component.UISelectOrderShuttle"
+ >
+ <h:styles>css/selectOrderShuttle.xcss</h:styles>
+
+ <h:scripts>
+ scripts/StringBuilder.js,scripts/SelectItem.js,scripts/SelectOrderShuttle.js
+ </h:scripts>
+
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}">
+
+ <vcp:body>
+ <f:call name="renderChildren" />
+ </vcp:body>
+ </div>
+ <a href="#"
onclick="shuttle.sort();">Header</a><br/>
+ <a href="#"
onclick="shuttle.moveSelectedItems('up');">up</a><br/>
+ <a href="#"
onclick="shuttle.moveSelectedItems('down');">down</a><br/>
+ <a href="#"
onclick="shuttle.moveSelectedItems('first');">first</a><br/>
+ <a href="#"
onclick="shuttle.moveSelectedItems('last');">last</a>
+ <script type="text/javascript">
+ #{this:initJSShuttleObject(context, component)}
+ document.body.onselectstart = function() {return false;};
+ document.body.className = "body";
+
+ </script>
+</f:root>
\ No newline at end of file