Author: vmolotkov
Date: 2007-10-26 14:47:32 -0400 (Fri, 26 Oct 2007)
New Revision: 3576
Added:
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
Removed:
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx
Log:
revertof htmlDropDownMenu.jspx
Copied: trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
(from rev 3563,
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx)
===================================================================
--- trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx
(rev 0)
+++
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlDropDownMenu.jspx 2007-10-26
18:47:32 UTC (rev 3576)
@@ -0,0 +1,53 @@
+<?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.DropDownMenuRendererBase"
+ class="org.richfaces.renderkit.html.DropDownMenuRenderer"
+ component="org.richfaces.component.UIDropDownMenu"
+ >
+ <h:styles>css/dropdownmenu.xcss</h:styles>
+
+ <h:scripts>
+ new org.ajax4jsf.javascript.PrototypeScript(),
+ new org.ajax4jsf.javascript.AjaxScript(),
+ scripts/menu.js
+ </h:scripts>
+
+ <f:clientid var="clientId"/>
+ <jsp:scriptlet>
+ <![CDATA[if
(!((org.richfaces.component.UIDropDownMenu)component).getSubmitMode().equalsIgnoreCase("none"))
org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(context,component);]]>
+ </jsp:scriptlet>
+ <div id="#{clientId}"
+ style="#{component.attributes['style']};"
+ class="#{component.attributes['styleClass']} dr-menu-label
dr-menu-label-unselect rich-ddmenu-label rich-ddmenu-label-unselect"
+ onmouseover="this.className='dr-menu-label dr-menu-label-select
rich-ddmenu-label rich-ddmenu-label-select' ;
#{component.attributes['onmouseover']}"
+ onmouseout="this.className='dr-menu-label dr-menu-label-unselect
rich-ddmenu-label rich-ddmenu-label-unselect';
#{component.attributes['onmouseout']}"
+ onmousemove="#{component.attributes['onmousemove']}">
+
+ <jsp:scriptlet>
+ <![CDATA[if(component.getFacet("label")!=null &&
component.getFacet("label").isRendered()) {]]>
+ </jsp:scriptlet>
+ <span class="dr-label-text-decor rich-label-text-decor">
+ <u:insertFacet name="label" />
+ </span>
+ <jsp:scriptlet>
+ <![CDATA[} else {]]>
+ </jsp:scriptlet>
+ <span class="dr-label-text-decor
rich-label-text-decor">#{component.attributes['value']}</span>
+ <jsp:scriptlet>
+ <![CDATA[}]]>
+ </jsp:scriptlet>
+
+ <div style="margin: 0px; padding: 0px; border: 0px; position: relative;
z-index:100;">
+ <vcp:body>
+ <f:call name="renderChildren" />
+ </vcp:body>
+ </div>
+
+ </div>
+
+</f:root>
\ No newline at end of file
Deleted:
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx
===================================================================
---
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx 2007-10-26
18:37:19 UTC (rev 3575)
+++
trunk/ui/dropdown-menu/src/main/templates/org/richfaces/htmlSelectOrderShuttle.jspx 2007-10-26
18:47:32 UTC (rev 3576)
@@ -1,36 +0,0 @@
-<?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