[richfaces-svn-commits] JBoss Rich Faces SVN: r6055 - in trunk/sandbox/samples/inplaceInput-sample/src/main: webapp/WEB-INF and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Feb 13 08:30:35 EST 2008


Author: vmolotkov
Date: 2008-02-13 08:30:34 -0500 (Wed, 13 Feb 2008)
New Revision: 6055

Modified:
   trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
   trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml
   trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
   trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
Log:
rendering of controls facet

Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java	2008-02-13 13:30:05 UTC (rev 6054)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/java/org/richfaces/samples/Bean.java	2008-02-13 13:30:34 UTC (rev 6055)
@@ -0,0 +1,39 @@
+/**
+ * License Agreement.
+ *
+ * Ajax4jsf 1.1 - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
+ */
+
+package org.richfaces.samples;
+
+
+/**
+ * @author Vladimir Molotkov
+ *
+ */
+public class Bean {
+    public String value = "AAAAAAS";
+
+    public String getValue() {
+        return value;
+    }
+
+    public void setValue(String value) {
+        this.value = value;
+    }
+}
\ No newline at end of file

Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml	2008-02-13 13:30:05 UTC (rev 6054)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/WEB-INF/faces-config.xml	2008-02-13 13:30:34 UTC (rev 6055)
@@ -4,7 +4,7 @@
 <faces-config>
  <managed-bean>
   <managed-bean-name>bean</managed-bean-name>
-  <managed-bean-class>org.richfaces.sandbox.samples.Bean</managed-bean-class>
+  <managed-bean-class>org.richfaces.samples.Bean</managed-bean-class>
   <managed-bean-scope>session</managed-bean-scope>
   </managed-bean>
   <navigation-rule>

Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp	2008-02-13 13:30:05 UTC (rev 6054)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.jsp	2008-02-13 13:30:34 UTC (rev 6055)
@@ -17,7 +17,12 @@
 									
 			<h:form>
 														
-				<ii:inplaceInput value="Perec"/>
+				<ii:inplaceInput value="Perec"
+					oneditactivation="alert('oneditactivation')"
+					onviewactivation="alert('onviewactivation')"
+					oneditactivated="alert('oneditactivated')"
+					onviewactivated="alert('onviewactivated')"
+					/>
 				<br/>
 				<h:commandButton action="none" value="submit"></h:commandButton>
 				<br>

Modified: trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml	2008-02-13 13:30:05 UTC (rev 6054)
+++ trunk/sandbox/samples/inplaceInput-sample/src/main/webapp/pages/index.xhtml	2008-02-13 13:30:34 UTC (rev 6055)
@@ -19,9 +19,22 @@
 			</h:form>
 									
 			<h:form>
-				
-				<ii:inplaceInput value="Perec"/>		
 				<br/>
+				<ii:inplaceInput id="component"
+					value="#{bean.value}"
+					selectOnEdit="true"
+					defaultLabel="Click..."
+					inputMaxWidth ="200px"
+					inputMinWidth ="100px"
+					showControls="true"
+					controlsPosition="right"
+					>
+					<f:facet name="controls">
+						<input type="button" name="test" value="ok" onclick="document.getElementById('j_id7:component').component.okHandler(event);"/>
+						<input type="button" name="test1" value="Cancel" onclick="document.getElementById('j_id7:component').component.cancelHandler(event);"/>
+					</f:facet>
+					</ii:inplaceInput>	
+				<br/>	
 				<h:commandButton action="none" value="submit"></h:commandButton>
 			</h:form>
 		</f:view>




More information about the richfaces-svn-commits mailing list