JBoss Rich Faces SVN: r7990 - trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-04-21 08:11:52 -0400 (Mon, 21 Apr 2008)
New Revision: 7990
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
Log:
getAsEventHandler() remove static
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2008-04-21 11:42:19 UTC (rev 7989)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2008-04-21 12:11:52 UTC (rev 7990)
@@ -916,7 +916,7 @@
}
}
- public static JSFunctionDefinition getAsEventHandler(FacesContext context, UIComponent component, String attributeName, String append) {
+ public JSFunctionDefinition getAsEventHandler(FacesContext context, UIComponent component, String attributeName, String append) {
String event = (String) component.getAttributes().get(attributeName);
if (event != null) {
16 years, 8 months
JBoss Rich Faces SVN: r7989 - in trunk/docs/migrationguide/en/src/main/docbook: included and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-04-21 07:42:19 -0400 (Mon, 21 Apr 2008)
New Revision: 7989
Modified:
trunk/docs/migrationguide/en/src/main/docbook/included/ajaxSingleFacets.xml
trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml
trunk/docs/migrationguide/en/src/main/docbook/included/calendarDate.xml
trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerFor.xml
trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerPaired.xml
trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml
trunk/docs/migrationguide/en/src/main/docbook/included/fileUploadListener.xml
trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml
trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml
trunk/docs/migrationguide/en/src/main/docbook/included/myfaces.xml
trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml
trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml
trunk/docs/migrationguide/en/src/main/docbook/master.xml
Log:
http://jira.jboss.com/jira/browse/RF-3048 - TOC was edited
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/ajaxSingleFacets.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/ajaxSingleFacets.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/ajaxSingleFacets.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="ajaxSingleFacets">
+<section id="ajaxSingleFacets" role="NotInToc">
<?dbhtml filename="ajaxSingleFacets.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/binding.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="binding">
+<section id="binding" role="NotInToc">
<?dbhtml filename="binding.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/calendarDate.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/calendarDate.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/calendarDate.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="calendarDate">
+<section id="calendarDate" role="NotInToc">
<?dbhtml filename="calendarDate.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerFor.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerFor.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerFor.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="datascrollerFor">
+<section id="datascrollerFor" role="NotInToc">
<?dbhtml filename="datascrollerFor.html"?>
<sectioninfo>
<keywordset>
@@ -8,7 +8,7 @@
<keyword>static</keyword>
</keywordset>
</sectioninfo>
- <title>Static <emphasis>"for"</emphasis> attribute in <rich:datascroller></title>
+ <title>Static "for" attribute in <rich:datascroller></title>
<section>
<title>Description</title>
<para>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerPaired.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerPaired.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/datascrollerPaired.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="datascrollerPaired">
+<section id="datascrollerPaired" role="NotInToc">
<?dbhtml filename="datascrollerPaired.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/explicitId.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="explicitId">
+<section id="explicitId" role="NotInToc">
<?dbhtml filename="explicitId.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/fileUploadListener.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/fileUploadListener.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/fileUploadListener.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="fileUploadListener">
+<section id="fileUploadListener" role="NotInToc">
<?dbhtml filename="fileUploadListener.html"?>
<sectioninfo>
<keywordset>
@@ -7,7 +7,7 @@
<keyword>listener</keyword>
</keywordset>
</sectioninfo>
- <title><emphasis>"fileUploadListener"</emphasis> with MyFaces or JSF-RI 1.2_04</title>
+ <title>The "fileUploadListener" with MyFaces or JSF-RI 1.2_04</title>
<section>
<title>Description</title>
<para>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/i18n.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="i18n">
+<section id="i18n" role="NotInToc">
<?dbhtml filename="i18n.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/menuJSF.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section>
+<section id="menuJSF" role="NotInToc">
+ <?dbhtml filename="menuJSF.html"?>
<sectioninfo>
<keywordset>
<keyword>JSF-RI-1.2_08</keyword>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/myfaces.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/myfaces.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/myfaces.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="myfaces">
+<section id="myfaces" role="NotInToc">
<?dbhtml filename="myfaces.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/resource.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="resource">
+<section id="resource" role="NotInToc">
<?dbhtml filename="resource.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<section id="seamMultipartFilter">
+<section id="seamMultipartFilter" role="NotInToc">
<?dbhtml filename="seamMultipartFilter.html"?>
<sectioninfo>
<keywordset>
Modified: trunk/docs/migrationguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-04-21 10:20:45 UTC (rev 7988)
+++ trunk/docs/migrationguide/en/src/main/docbook/master.xml 2008-04-21 11:42:19 UTC (rev 7989)
@@ -34,7 +34,8 @@
&intro;
&scope;
&req;
- <chapter role="NotInToc" id="RichFacesMigrationIssues" xreflabel="RichFacesMigrationIssues">
+
+ <chapter id="RichFacesMigrationIssues" xreflabel="RichFacesMigrationIssues">
<?dbhtml filename="RichFacesMigrationIssues.html"?>
<chapterinfo>
<keywordset>
@@ -49,7 +50,6 @@
Issues with new components and other problems are not included.
The <ulink url="http://jira.jboss.com/jira/browse/RF">Jira</ulink> contains everything.
</para>
-
<section id="MostImportant">
<?dbhtml filename="MostImportant.html"?>
<sectioninfo>
16 years, 8 months
JBoss Rich Faces SVN: r7988 - trunk/test-applications/jsp/src/main/webapp/PickList.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 06:20:45 -0400 (Mon, 21 Apr 2008)
New Revision: 7988
Modified:
trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp
Log:
Add binding
Modified: trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp 2008-04-21 10:20:33 UTC (rev 7987)
+++ trunk/test-applications/jsp/src/main/webapp/PickList/PickListProperty.jsp 2008-04-21 10:20:45 UTC (rev 7988)
@@ -71,6 +71,10 @@
<h:selectBooleanCheckbox value="#{pickList.required}" onchange="submit();"></h:selectBooleanCheckbox>
<h:outputText value="requiredMessage:"></h:outputText>
- <h:inputText value="#{pickList.requiredMessage}" onchange="submit();"></h:inputText>
+ <h:inputText value="#{pickList.requiredMessage}" onchange="submit();"></h:inputText>
+
+ <h:commandButton actionListener="#{pickList.checkBinding}" value="Binding"></h:commandButton>
+ <h:outputText value="#{pickList.bindLabel}"></h:outputText>
+
</h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r7987 - trunk/test-applications/jsp/src/main/webapp/PickList.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 06:20:33 -0400 (Mon, 21 Apr 2008)
New Revision: 7987
Modified:
trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp
Log:
Add binding
Modified: trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp 2008-04-21 10:19:59 UTC (rev 7986)
+++ trunk/test-applications/jsp/src/main/webapp/PickList/PickList.jsp 2008-04-21 10:20:33 UTC (rev 7987)
@@ -28,8 +28,9 @@
onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}"
- onmouseup="#{event.onmouseup}">
- <f:selectItems value="#{pickList.data}" />
+ onmouseup="#{event.onmouseup}"
+ binding="#{pickList.myPickList}">
+ <f:selectItems value="#{pickList.data}"/>
</rich:pickList>
<h:panelGrid columns="2">
<a4j:commandButton value="refresh" reRender="pickListvalueCLID"></a4j:commandButton>
16 years, 8 months
JBoss Rich Faces SVN: r7986 - trunk/test-applications/jsp/src/main/java/pickList.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 06:19:59 -0400 (Mon, 21 Apr 2008)
New Revision: 7986
Modified:
trunk/test-applications/jsp/src/main/java/pickList/PickList.java
Log:
Add binding
Modified: trunk/test-applications/jsp/src/main/java/pickList/PickList.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/pickList/PickList.java 2008-04-21 10:00:30 UTC (rev 7985)
+++ trunk/test-applications/jsp/src/main/java/pickList/PickList.java 2008-04-21 10:19:59 UTC (rev 7986)
@@ -3,6 +3,9 @@
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import org.richfaces.component.html.HtmlPickList;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
@@ -33,7 +36,25 @@
private String requiredMessage;
private Object[] value;
private String valueCL;
+ private HtmlPickList myPickList = null;
+ private String bindLabel;
+ public HtmlPickList getMyPickList() {
+ return myPickList;
+ }
+
+ public void setMyPickList(HtmlPickList myPickList) {
+ this.myPickList = myPickList;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
public String getValueCL() {
return valueCL;
}
@@ -80,6 +101,7 @@
this.title = "title";
this.required = false;
this.requiredMessage = "requiredMessage";
+ this.bindLabel = "Click Binding";
data = new ArrayList<SelectItem>();
for (int i = 0; i < 10; i++)
data.add(new SelectItem("selectItems " + i));
@@ -249,4 +271,10 @@
public void setValue(Object[] value) {
this.value = value;
}
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myPickList.getClientId(context);
+ }
+
}
16 years, 8 months
JBoss Rich Faces SVN: r7985 - trunk/test-applications/jsp/src/main/webapp/InplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 06:00:30 -0400 (Mon, 21 Apr 2008)
New Revision: 7985
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
Log:
Change binding
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-04-21 10:00:17 UTC (rev 7984)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-04-21 10:00:30 UTC (rev 7985)
@@ -11,7 +11,7 @@
and while invisible for the user who does not understand or cannot <br />
acquire the source code, many of those
<rich:inplaceSelect id="inplaceSelectID"
-
+
tabindex="#{inplaceSelect.tabindex}"
editEvent="#{inplaceSelect.editEvent}"
maxSelectWidth="#{inplaceSelect.maxSelectWidth}"
@@ -27,13 +27,13 @@
editOnTab="#{inplaceSelect.editOnTab}"
openOnEdit="#{inplaceSelect.openOnEdit}"
rendered="#{inplaceSelect.rendered}"
- immediate="#{inplaceSelect.immediate}">
+ immediate="#{inplaceSelect.immediate}"
+ binding="#{inplaceSelect.myInplaceSelect}">
<f:selectItem itemLabel="errors" itemValue="errors" />
<f:selectItem itemLabel="fatals" itemValue="fatals" />
<f:selectItem itemLabel="infos" itemValue="infos" />
<f:selectItem itemLabel="passeds" itemValue="passeds" />
<f:selectItem itemLabel="warns" itemValue="warns" />
- <f:selectItem itemLabel="name" itemValue="name" />
</rich:inplaceSelect>
are easy to exploit.
<h:panelGrid columns="2">
@@ -109,6 +109,7 @@
<h:commandButton actionListener="#{inplaceSelect.checkBinding}" value="Binding"></h:commandButton>
<h:outputText value = "#{inplaceSelect.bindLabel}"/>
+
</h:panelGrid>
16 years, 8 months
JBoss Rich Faces SVN: r7984 - trunk/test-applications/jsp/src/main/java/inplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 06:00:17 -0400 (Mon, 21 Apr 2008)
New Revision: 7984
Modified:
trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
Log:
Change binding
Modified: trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-21 09:57:48 UTC (rev 7983)
+++ trunk/test-applications/jsp/src/main/java/inplaceSelect/InplaceSelect.java 2008-04-21 10:00:17 UTC (rev 7984)
@@ -22,10 +22,12 @@
private boolean selectOnEdit;
private String selectWidth;
private boolean showControls;
+ private boolean changedClass;
+ private String changedLabel;
private int tabindex;
private Object value;
private String valueCL;
- private HtmlInplaceSelect myInplaceSelect;
+ private HtmlInplaceSelect myInplaceSelect = null;
private String bindLabel;
public InplaceSelect() {
@@ -47,8 +49,9 @@
openOnEdit = true;
rendered = true;
immediate = false;
- myInplaceSelect = new HtmlInplaceSelect();
bindLabel = "Click Binding";
+ changedLabel = "default";
+ changedClass = false;
}
public HtmlInplaceSelect getMyInplaceSelect(){
@@ -228,5 +231,27 @@
this.value = value;
}
+ public String getChangedLabel() {
+ return changedLabel;
+ }
+ public void setChangedLabel(String changedLabel) {
+ this.changedLabel = changedLabel;
+ }
+
+ public void checkChangedClass(){
+ if (changedClass){
+ setChangedLabel("activeTabStyle");
+ }
+ }
+
+ public boolean isChangedClass() {
+ return changedClass;
+ }
+
+ public void setChangedClass(boolean changedClass) {
+ this.changedClass = changedClass;
+ }
+
+
}
16 years, 8 months
JBoss Rich Faces SVN: r7982 - trunk/test-applications/jsp/src/main/webapp/InplaceInput.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:52:41 -0400 (Mon, 21 Apr 2008)
New Revision: 7982
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
Log:
Change binding
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp 2008-04-21 09:52:22 UTC (rev 7981)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp 2008-04-21 09:52:41 UTC (rev 7982)
@@ -4,11 +4,14 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="inplaceInputSubviewID">
+
<h:inputText value="For verify tabbing"></h:inputText> <br/>
+
This is because such an error can easily be made at programming level, <br />
and while invisible for the user who does not understand or cannot <br />
acquire the source code, many of those
-<rich:inplaceInput
+<rich:inplaceInput
+ id = "inplaceInputId1"
valueChangeListener="#{inplaceInput.valueChangeListener}"
converter="inplaceInputConverter"
converterMessage="Can't convert"
@@ -55,7 +58,8 @@
onmouseup="#{event.onmouseup}"
onselect="#{event.onselect}"
onviewactivated="#{evant.onviewactivated}"
- onviewactivation="#{event.onviewactivation}">
+ onviewactivation="#{event.onviewactivation}"
+ binding="#{inplaceInput.myInplaceInput}">
</rich:inplaceInput>
are easy to exploit.
16 years, 8 months
JBoss Rich Faces SVN: r7981 - trunk/test-applications/jsp/src/main/java/inplaceInput.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:52:22 -0400 (Mon, 21 Apr 2008)
New Revision: 7981
Modified:
trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java
Log:
Change binding
Modified: trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java 2008-04-21 09:34:00 UTC (rev 7980)
+++ trunk/test-applications/jsp/src/main/java/inplaceInput/InplaceInput.java 2008-04-21 09:52:22 UTC (rev 7981)
@@ -23,31 +23,10 @@
private boolean rendered;
private boolean immediate;
private String valueCL;
- private HtmlInplaceInput myInplaceInput;
+ private HtmlInplaceInput myInplaceInput = null;
private String bindLabel;
private String layout;
- public HtmlInplaceInput getMyInplaceInput() {
- return myInplaceInput;
- }
-
- public void setMyInplaceInput(HtmlInplaceInput myInplaceInput) {
- this.myInplaceInput = myInplaceInput;
- }
-
- public String getBindLabel() {
- return bindLabel;
- }
-
- public void setBindLabel(String bindLabel) {
- this.bindLabel = bindLabel;
- }
-
- public void checkBinding(ActionEvent actionEvent){
- FacesContext context = FacesContext.getCurrentInstance();
- bindLabel = myInplaceInput.getClientId(context);
- }
-
public InplaceInput() {
inputMaxLength = "200";
inputWidth = "150";
@@ -66,11 +45,31 @@
rendered = true;
immediate = false;
valueCL = "---";
- myInplaceInput = new HtmlInplaceInput();
bindLabel = "Click Binding";
layout = "inline";
}
+
+ public HtmlInplaceInput getMyInplaceInput() {
+ return myInplaceInput;
+ }
+
+ public void setMyInplaceInput(HtmlInplaceInput myInplaceInput) {
+ this.myInplaceInput = myInplaceInput;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myInplaceInput.getClientId(context);
+ }
+
public void valueChangeListener(ValueChangeEvent event){
valueCL = "valueChangeListener work!";
}
16 years, 8 months