Author: ppitonak(a)redhat.com
Date: 2010-12-13 11:06:34 -0500 (Mon, 13 Dec 2010)
New Revision: 20532
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceSelectBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceSelect/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
Log:
* sample for inplace select fixed
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceSelectBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceSelectBean.java 2010-12-13
15:51:32 UTC (rev 20531)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceSelectBean.java 2010-12-13
16:06:34 UTC (rev 20532)
@@ -28,7 +28,7 @@
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
-import javax.faces.bean.SessionScoped;
+import javax.faces.bean.ViewScoped;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
import org.richfaces.component.UIInplaceSelect;
@@ -45,7 +45,7 @@
* @version $Revision$
*/
@ManagedBean(name = "richInplaceSelectBean")
-@SessionScoped
+@ViewScoped
public class RichInplaceSelectBean implements Serializable {
private static final long serialVersionUID = -1L;
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceSelect/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceSelect/simple.xhtml 2010-12-13
15:51:32 UTC (rev 20531)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceSelect/simple.xhtml 2010-12-13
16:06:34 UTC (rev 20532)
@@ -41,10 +41,13 @@
<ui:define name="component">
<rich:inplaceSelect id="inplaceSelect"
+
changedStateClass="#{richInplaceSelectBean.attributes['changedStateClass'].value}"
converterMessage="#{richInplaceSelectBean.attributes['converterMessage'].value}"
defaultLabel="#{richInplaceSelectBean.attributes['defaultLabel'].value}"
+
disabled="#{richInplaceSelectBean.attributes['disabled'].value}"
+
disabledStateClass="#{richInplaceSelectBean.attributes['disabledStateClass'].value}"
editEvent="#{richInplaceSelectBean.attributes['editEvent'].value}"
-
enableManualInput="#{richInplaceSelectBean.attributes['enableManualInput'].value}"
+
editStateClass="#{richInplaceSelectBean.attributes['editStateClass'].value}"
immediate="#{richInplaceSelectBean.attributes['immediate'].value}"
itemClass="#{richInplaceSelectBean.attributes['itemClass'].value}"
listClass="#{richInplaceSelectBean.attributes['listClass'].value}"
@@ -55,10 +58,8 @@
onclick="#{richInplaceSelectBean.attributes['onclick'].value}"
ondblclick="#{richInplaceSelectBean.attributes['ondblclick'].value}"
onfocus="#{richInplaceSelectBean.attributes['onfocus'].value}"
-
oninputblur="#{richInplaceSelectBean.attributes['oninputblur'].value}"
oninputclick="#{richInplaceSelectBean.attributes['oninputclick'].value}"
oninputdblclick="#{richInplaceSelectBean.attributes['oninputdblclick'].value}"
-
oninputfocus="#{richInplaceSelectBean.attributes['oninputfocus'].value}"
oninputkeydown="#{richInplaceSelectBean.attributes['oninputkeydown'].value}"
oninputkeypress="#{richInplaceSelectBean.attributes['oninputkeypress'].value}"
oninputkeyup="#{richInplaceSelectBean.attributes['oninputkeyup'].value}"
@@ -86,27 +87,27 @@
onmouseout="#{richInplaceSelectBean.attributes['onmouseout'].value}"
onmouseover="#{richInplaceSelectBean.attributes['onmouseover'].value}"
onmouseup="#{richInplaceSelectBean.attributes['onmouseup'].value}"
-
onselect="#{richInplaceSelectBean.attributes['onselect'].value}"
+
onselectitem="#{richInplaceSelectBean.attributes['onselectitem'].value}"
openOnEdit="#{richInplaceSelectBean.attributes['openOnEdit'].value}"
+
readyStateClass="#{richInplaceSelectBean.attributes['readyStateClass'].value}"
rendered="#{richInplaceSelectBean.attributes['rendered'].value}"
required="#{richInplaceSelectBean.attributes['required'].value}"
requiredMessage="#{richInplaceSelectBean.attributes['requiredMessage'].value}"
saveOnBlur="#{richInplaceSelectBean.attributes['saveOnBlur'].value}"
saveOnSelect="#{richInplaceSelectBean.attributes['saveOnSelect'].value}"
-
selectFirst="#{richInplaceSelectBean.attributes['selectFirst'].value}"
selectItemClass="#{richInplaceSelectBean.attributes['selectItemClass'].value}"
-
showButton="#{richInplaceSelectBean.attributes['showButton'].value}"
showControls="#{richInplaceSelectBean.attributes['showControls'].value}"
state="#{richInplaceSelectBean.attributes['state'].value}"
+
tabindex="#{richInplaceSelectBean.attributes['tabindex'].value}"
validatorMessage="#{richInplaceSelectBean.attributes['validatorMessage'].value}"
value="#{richInplaceSelectBean.attributes['value'].value}"
valueChangeListener="#{richInplaceSelectBean.listener}"
<f:selectItems
value="#{richInplaceSelectBean.capitalsOptions}" />
- <!-- TODO change event to "change" as soon as implemented
-->
- <a4j:ajax event="select" render="output"/>
+ <a4j:ajax event="change" render="output"/>
+
</rich:inplaceSelect>
<br/><br/>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-12-13
15:51:32 UTC (rev 20531)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-12-13
16:06:34 UTC (rev 20532)
@@ -2,7 +2,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
-
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+
xmlns:rich="http://richfaces.org/rich" >
<!--
JBoss, Home of Professional Open Source