Author: ppitonak(a)redhat.com
Date: 2011-01-13 06:20:56 -0500 (Thu, 13 Jan 2011)
New Revision: 20980
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml
Log:
* select styled
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml 2011-01-13
09:49:33 UTC (rev 20979)
+++
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml 2011-01-13
11:20:56 UTC (rev 20980)
@@ -40,20 +40,23 @@
<f:selectItem itemValue="false"
itemLabel="false"/>
</h:selectOneRadio>
</c:when>
-
+
<c:when test="#{entry.value.selectOptions !=
null}">
- <c:choose>
- <c:when
test="#{fn:length(entry.value.selectOptions) > 4}">
- <h:selectOneMenu id="#{entry.key}Input"
value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server'
? 'submit()' : 'submitAjax()'}">
- <f:selectItems
value="#{entry.value.selectOptions}" noSelectionValue="null" />
- </h:selectOneMenu>
- </c:when>
- <c:otherwise>
- <h:selectOneRadio id="#{entry.key}Input"
value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server'
? 'submit()' : 'submitAjax()'}"
- layout="pageDirection">
- <f:selectItems
value="#{entry.value.selectOptions}" />
- </h:selectOneRadio>
- </c:otherwise>
+ <c:choose>
+ <c:when
test="#{fn:length(entry.value.selectOptions) > 4}">
+ <h:selectOneMenu
id="#{entry.key}Input" value="#{entry.value.value}"
+ onchange="#{cc.attrs.type
== 'server' ? 'submit()' : 'submitAjax()'}"
+ style="width:
100%">
+ <f:selectItems
value="#{entry.value.selectOptions}" noSelectionValue="null" />
+ </h:selectOneMenu>
+ </c:when>
+ <c:otherwise>
+ <h:selectOneRadio
id="#{entry.key}Input" value="#{entry.value.value}"
+ onchange="#{cc.attrs.type
== 'server' ? 'submit()' : 'submitAjax()'}"
+
layout="pageDirection">
+ <f:selectItems
value="#{entry.value.selectOptions}" />
+ </h:selectOneRadio>
+ </c:otherwise>
</c:choose>
</c:when>
Show replies by date