Author: abelevich
Date: 2010-12-16 05:22:22 -0500 (Thu, 16 Dec 2010)
New Revision: 20602
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java
trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml
Log:
RF-9846
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java
===================================================================
---
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java 2010-12-16
10:05:42 UTC (rev 20601)
+++
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/InplaceSelectRendererBase.java 2010-12-16
10:22:22 UTC (rev 20602)
@@ -86,6 +86,18 @@
return SelectHelper.getSelectInputLabel(facesContext, component);
}
+ public String getListWidth(UIComponent component) {
+ AbstractInplaceSelect select = (AbstractInplaceSelect)component;
+ String width = select.getListWidth();
+ return (width != null && width.trim().length() != 0) ? ("width:
" + width) : "";
+ }
+
+ public String getListHeight(UIComponent component) {
+ AbstractInplaceSelect select = (AbstractInplaceSelect)component;
+ String height = select.getListHeight();
+ return (height != null && height.trim().length() != 0) ? ("height:
" + height) : "";
+ }
+
public String getSelectLabel(FacesContext facesContext, UIComponent component) {
AbstractInplaceSelect select = (AbstractInplaceSelect) component;
String label = getSelectInputLabel(facesContext, select);
Modified: trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml
===================================================================
--- trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml 2010-12-16 10:05:42
UTC (rev 20601)
+++ trunk/ui/input/ui/src/main/templates/inplaceSelect.template.xml 2010-12-16 10:22:22
UTC (rev 20602)
@@ -80,14 +80,14 @@
</c:if>
<span id="#{clientId}List" style="display: none"
class="#{getListCss(component)}">
<cdk:call expression="renderListHandlers(facesContext,
component);"/>
- <span class="rf-is-lst-pos" style="width:
#{component.attributes['listWidth']}">
+ <span class="rf-is-lst-pos"
style="#{getListWidth(component)}">
<span class="rf-is-shdw">
<span class="rf-is-shdw-t"></span>
<span class="rf-is-shdw-l"></span>
<span class="rf-is-shdw-r"></span>
<span class="rf-is-shdw-b"></span>
<span class="rf-is-lst-dec">
- <span class="rf-is-lst-scrl" style="height:
#{component.attributes['listHeight']}">
+ <span class="rf-is-lst-scrl"
style="#{getListHeight(component)}">
<span id="#{clientId}Items">
<cdk:call expression="encodeItems(facesContext, component,
clientSelectItems);"/>
</span>
Show replies by date