Author: abelevich
Date: 2010-09-03 11:26:46 -0400 (Fri, 03 Sep 2010)
New Revision: 19115
Added:
branches/RF-8992/examples/input-demo/src/main/java/org/richfaces/demo/InputBean.java
branches/RF-8992/examples/input-demo/src/main/webapp/inplaceSelect.xhtml
Modified:
branches/RF-8992/examples/input-demo/src/main/webapp/index.xhtml
Log:
add inplaceSeelct dev. sample
Added:
branches/RF-8992/examples/input-demo/src/main/java/org/richfaces/demo/InputBean.java
===================================================================
--- branches/RF-8992/examples/input-demo/src/main/java/org/richfaces/demo/InputBean.java
(rev 0)
+++
branches/RF-8992/examples/input-demo/src/main/java/org/richfaces/demo/InputBean.java 2010-09-03
15:26:46 UTC (rev 19115)
@@ -0,0 +1,20 @@
+package org.richfaces.demo;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+
+@SessionScoped
+@ManagedBean(name = "inputBean")
+public class InputBean {
+
+ private String value;
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+}
Modified: branches/RF-8992/examples/input-demo/src/main/webapp/index.xhtml
===================================================================
--- branches/RF-8992/examples/input-demo/src/main/webapp/index.xhtml 2010-09-03 15:01:51
UTC (rev 19114)
+++ branches/RF-8992/examples/input-demo/src/main/webapp/index.xhtml 2010-09-03 15:26:46
UTC (rev 19115)
@@ -9,6 +9,7 @@
<h4>Input Components Sample</h4>
<ul>
<li><h:link
outcome="inplaceInput">rich:inplaceInput</h:link></li>
+ <li><h:link
outcome="inplaceSelect">rich:inplaceSelect</h:link></li>
<li><h:link
outcome="inputNumberSlider">rich:inputNumberSlider</h:link></li>
<li><h:link
outcome="autocomplete">rich:autocomplete</h:link></li>
</ul>
Added: branches/RF-8992/examples/input-demo/src/main/webapp/inplaceSelect.xhtml
===================================================================
--- branches/RF-8992/examples/input-demo/src/main/webapp/inplaceSelect.xhtml
(rev 0)
+++ branches/RF-8992/examples/input-demo/src/main/webapp/inplaceSelect.xhtml 2010-09-03
15:26:46 UTC (rev 19115)
@@ -0,0 +1,30 @@
+<!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:in="http://richfaces.org/input">
+<f:view contentType="text/html" />
+
+<h:head>
+ <title>InplaceInput</title>
+</h:head>
+
+
+<h:body>
+ <h:form id="form">
+ <div id="scroll" style="width: 400px; height:100px;
overflow:auto;" >
+ <fieldset>
+ <legend>Test App</legend>
+ Fresh off his victory in the Florida primary, Sen. John McCain is poised to take
another big prize. Former
+ <in:inplaceSelect defaultLabel="Edit Text"
value="#{inputBean.value}">
+ </in:inplaceSelect>
+ Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That
would give McCain added momentum heading into a debate Wednesday and next week's Super
Tuesday contests
+ </fieldset>
+ </div>
+ <h:panelGroup id="out">
+ <h:outputText value="Entered Value: #{inputBean.value}"/>
+ </h:panelGroup>
+ </h:form>
+</h:body>
+</html>