Author: ppitonak(a)redhat.com
Date: 2011-03-10 12:30:27 -0500 (Thu, 10 Mar 2011)
New Revision: 22146
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/fAjax.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml
Log:
samples for inplace input modified so that it's possible to test attribute required
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java 2011-03-10
17:29:50 UTC (rev 22145)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java 2011-03-10
17:30:27 UTC (rev 22146)
@@ -66,14 +66,13 @@
attributes.setAttribute("defaultLabel", "Click here to
edit");
attributes.setAttribute("editEvent", "click");
attributes.setAttribute("rendered", true);
+ attributes.setAttribute("requiredMessage", "value is
required");
attributes.setAttribute("saveOnBlur", true);
attributes.setAttribute("value", "RichFaces 4");
// TODO has to be tested in another way
attributes.remove("converter");
attributes.remove("converterMessage");
- attributes.remove("required");
- attributes.remove("requiredMessage");
attributes.remove("validator");
attributes.remove("validatorMessage");
attributes.remove("valueChangeListener");
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/fAjax.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/fAjax.xhtml 2011-03-10
17:29:50 UTC (rev 22145)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/fAjax.xhtml 2011-03-10
17:30:27 UTC (rev 22146)
@@ -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:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<!--
JBoss, Home of Professional Open Source
@@ -90,8 +90,12 @@
<f:ajax event="change" render="output
:phasesPanel"/>
</rich:inplaceInput>
+ <rich:message id="calendarMsg"
for="inplaceInput"/>
<br/><br/>
+ <h:commandButton id="hButton" value="h:commandButton"
style="margin-right: 10px;"/>
+ <a4j:commandButton id="a4jButton"
value="a4j:commandButton"/>
+ <br/><br/>
output: <h:outputText id="output"
value="#{richInplaceInputBean.attributes['value'].value}"/>
</ui:define>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml 2011-03-10
17:29:50 UTC (rev 22145)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml 2011-03-10
17:30:27 UTC (rev 22146)
@@ -92,8 +92,12 @@
<a4j:ajax event="change" render="output"/>
</rich:inplaceInput>
+ <rich:message id="calendarMsg"
for="inplaceInput"/>
<br/><br/>
+ <h:commandButton id="hButton" value="h:commandButton"
style="margin-right: 10px;"/>
+ <a4j:commandButton id="a4jButton"
value="a4j:commandButton"/>
+ <br/><br/>
output: <h:outputText id="output"
value="#{richInplaceInputBean.attributes['value'].value}"/>
</ui:define>