Author: abelevich
Date: 2010-11-04 13:53:40 -0400 (Thu, 04 Nov 2010)
New Revision: 19938
Modified:
trunk/examples/input-demo/src/main/webapp/examples/select.xhtml
Log:
extend dema. Add ajax behavior.
Modified: trunk/examples/input-demo/src/main/webapp/examples/select.xhtml
===================================================================
--- trunk/examples/input-demo/src/main/webapp/examples/select.xhtml 2010-11-04 17:50:48
UTC (rev 19937)
+++ trunk/examples/input-demo/src/main/webapp/examples/select.xhtml 2010-11-04 17:53:40
UTC (rev 19938)
@@ -16,7 +16,7 @@
<div id="scroll" style="width: 400px; height:100px;
overflow:auto;" >
<fieldset>
<legend>Select Test App</legend>
- <in:select enableManualInput="true" defaultLabel="Select Value
..." value="#{inputBean.value}">
+ <in:select id="select" enableManualInput="true"
defaultLabel="Select Value ..." value="#{inputBean.value}">
<f:selectItem itemLabel="Label#1" itemValue="Value#1"/>
<f:selectItem itemLabel="Label#2" itemValue="Value#2"/>
<f:selectItem itemLabel="Label#3" itemValue="Value#3"/>
@@ -31,9 +31,12 @@
<f:selectItem itemLabel="Label#12" itemValue="Value#12"/>
<f:selectItem itemLabel="Label#13" itemValue="Value#13"/>
<f:selectItem itemLabel="Label#14" itemValue="Value#14"/>
+ <f:ajax event="change" execute="@form"
render="out"/>
</in:select>
</fieldset>
- <h:commandButton value="submit"></h:commandButton>
+ <h:commandButton value="submit">
+ <f:ajax execute="@form" render="select out"/>
+ </h:commandButton>
</div>
<h:panelGroup id="out">
<h:outputText value="Selected Value: #{inputBean.value}"/>
Show replies by date