Author: abelevich
Date: 2010-09-03 11:35:29 -0400 (Fri, 03 Sep 2010)
New Revision: 19117
Added:
branches/RF-8992/ui/input/ui/src/main/templates/inplaceSelect.template.xml
Log:
Added: branches/RF-8992/ui/input/ui/src/main/templates/inplaceSelect.template.xml
===================================================================
--- branches/RF-8992/ui/input/ui/src/main/templates/inplaceSelect.template.xml
(rev 0)
+++ branches/RF-8992/ui/input/ui/src/main/templates/inplaceSelect.template.xml 2010-09-03
15:35:29 UTC (rev 19117)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- JBoss, Home of Professional Open Source Copyright ${year}, Red Hat,
+ Inc. and individual contributors by the @authors tag. See the copyright.txt
+ in the distribution for a full listing of individual contributors. This is
+ free software; you can redistribute it and/or modify it under the terms of
+ the GNU Lesser General Public License as published by the Free Software Foundation;
+ either version 2.1 of the License, or (at your option) any later version.
+ This software is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ details. You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the
+ FSF site:
http://www.fsf.org. -->
+<cdk:root
xmlns="http://jboss.org/schema/richfaces/cdk/xhtml-el"
+
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core"
xmlns:c="http://jboss.org/schema/richfaces/cdk/jstl/core"
+
xmlns:cc="http://jboss.org/schema/richfaces/cdk/jsf/composite"
+
xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+
+ <cc:interface>
+ <cdk:class>org.richfaces.renderkit.html.InplaceSelectRenderer
+ </cdk:class>
+ <cdk:superclass>org.richfaces.renderkit.InplaceSelectBaseRenderer
+ </cdk:superclass>
+ <cdk:component-family>org.richfaces.InplaceSelect
+ </cdk:component-family>
+ <cdk:renderer-type>org.richfaces.InplaceSelectRenderer
+ </cdk:renderer-type>
+ </cc:interface>
+
+ <cc:implementation>
+ <cdk:object type="org.richfaces.component.InplaceState"
+ name="inplaceState" value="#{getInplaceState(component)}" />
+ <cdk:object type="java.lang.String" name="inplaceValue"
+ value="#{getValue(facesContext, component)}" />
+
+ <span id="#{clientId}" class="#{getReadyStyleClass(component,
inplaceState)}"
+ cdk:passThroughWithExclusions="id class">
+ <span id="#{clientId}:label" class="rf-ii-lbl">
+ #{inplaceValue}
+ </span>
+ <input id="#{clientId}:focus" type="image"
+ style="position: absolute; top: 0px; left: 0px; outline-style: none;"
+ class="rf-ii-none" />
+ <span id="#{clientId}:edit" class="#{getEditStyleClass(component,
inplaceState)}">
+ <input id="#{clientId}:input" autocomplete="off"
name="#{clientId}"
+ type="text" value="#{getInputValue(facesContext, component)}"
+ class="rf-ii-f" style="width:
#{component.attributes['inputWidth']};"
+ cdk:passThrough="tabIndex" readonly="readonly">
+ <cdk:call expression="renderInputHandlers(facesContext, component);"
/>
+ </input>
+ <c:if test="#{component.attributes['showControls']}">
+ <span class="rf-ii-btn-prepos">
+ <span class="rf-ii-btn-pos">
+ <span id="#{clientId}:btnshadow"
class="rf-ii-btn-shadow">
+ <span class="rf-ii-btn-shadow-t"></span>
+ <span class="rf-ii-btn-shadow-l"></span>
+ <span class="rf-ii-btn-shadow-r"></span>
+ <span class="rf-ii-btn-shadow-b"></span>
+
+ <span id="#{clientId}:btn" style="position :
relative">
+ <input type="image" id="#{clientId}:okbtn"
+ src="#{getResourcePath(facesContext,
'org.richfaces/ico_ok.gif')}"
+ class="rf-ii-btn"
onmousedown="this.className='rf-ii-btn-p'"
+ onmouseout="this.className='rf-ii-btn'"
onmouseup="this.className='rf-ii-btn'" />
+ <input type="image" id="#{clientId}:cancelbtn"
+ src="#{getResourcePath(facesContext,'org.richfaces/ico_cancel.gif')}"
+ class="rf-ii-btn"
onmousedown="this.className='rf-ii-btn-press'"
+ onmouseout="this.className='rf-ii-btn'"
onmouseup="this.className='rf-ii-btn'" />
+ <br />
+ </span>
+ </span>
+ </span>
+ </span>
+ </c:if>
+
+ <span class="insel_list_cord">
+ <span class="insel_shadow">
+ <span class="insel_shadow_t">
+ <span class="insel_shadow_l"></span>
+ <span class="insel_shadow_r"></span>
+ <span class="insel_shadow_b"></span>
+ <span class="insel_list_decoration">
+ <span class="insel_list_scroll">
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 1</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 2</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 3</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 4</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 6</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 7</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 8</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 9</span>
+ <span class="insel_option insel_font"
onmouseout="this.className='insel_option insel_font'"
+ onmouseover="this.className='insel_option insel_font
insel_select'">Option 0</span>
+ </span>
+ </span>
+ </span>
+ </span>
+ </span>
+ </span>
+ <script type="text/javascript">
+ <cdk:call expression="buildScript(responseWriter, facesContext,
component);" />
+ </script>
+ </span>
+ </cc:implementation>
+</cdk:root>
\ No newline at end of file