Author: amarkhel
Date: 2011-01-10 09:19:14 -0500 (Mon, 10 Jan 2011)
New Revision: 20931
Modified:
trunk/examples/input-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/examples/input-demo/src/main/webapp/templates/template.xhtml
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelectComponent.java
Log:
RF-10132 Provide default event name for UISelect component
Modified: trunk/examples/input-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/examples/input-demo/src/main/webapp/WEB-INF/faces-config.xml 2011-01-10 14:13:39
UTC (rev 20930)
+++ trunk/examples/input-demo/src/main/webapp/WEB-INF/faces-config.xml 2011-01-10 14:19:14
UTC (rev 20931)
@@ -34,7 +34,11 @@
<navigation-case>
<from-outcome>fileUpload</from-outcome>
<to-view-id>/examples/fileupload.xhtml</to-view-id>
- </navigation-case>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>select</from-outcome>
+ <to-view-id>/examples/select.xhtml</to-view-id>
+ </navigation-case>
<!-- QUnit -->
Modified: trunk/examples/input-demo/src/main/webapp/templates/template.xhtml
===================================================================
--- trunk/examples/input-demo/src/main/webapp/templates/template.xhtml 2011-01-10 14:13:39
UTC (rev 20930)
+++ trunk/examples/input-demo/src/main/webapp/templates/template.xhtml 2011-01-10 14:19:14
UTC (rev 20931)
@@ -38,6 +38,7 @@
<li><h:commandLink value="rich:inputNumberSpinner"
action="inputNumberSpinner" /></li>
<li><h:commandLink value="rich:autocomplete"
action="autocomplete" /></li>
<li><h:commandLink value="rich:fileUpload"
action="fileUpload" /></li>
+ <li><h:commandLink value="rich:select"
action="select" /></li>
</ul>
<h:panelGrid columns="3">
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelectComponent.java
===================================================================
---
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelectComponent.java 2011-01-10
14:13:39 UTC (rev 20930)
+++
trunk/ui/input/ui/src/main/java/org/richfaces/component/AbstractSelectComponent.java 2011-01-10
14:19:14 UTC (rev 20931)
@@ -70,7 +70,7 @@
@Attribute(events=@EventName("click"))
public abstract String getOnclick();
- @Attribute(events=@EventName("change"))
+ @Attribute(events=@EventName(value="change", defaultEvent=true))
public abstract String getOnchange();
@Attribute(events=@EventName("dblclick"))
Show replies by date