JBoss Rich Faces SVN: r7980 - trunk/test-applications/facelets/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:34:00 -0400 (Mon, 21 Apr 2008)
New Revision: 7980
Modified:
trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml
Log:
Add test for Binding
Modified: trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml 2008-04-21 09:33:46 UTC (rev 7979)
+++ trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml 2008-04-21 09:34:00 UTC (rev 7980)
@@ -57,6 +57,9 @@
<h:selectBooleanCheckbox value="#{combobox.required}" onchange="submit();"></h:selectBooleanCheckbox>
<h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{combobox.requiredMessage}" onchange="submit();"></h:inputText>
+ <h:inputText value="#{combobox.requiredMessage}" onchange="submit();"></h:inputText>
+
+ <h:commandButton actionListener="#{combobox.checkBinding}" value="Binding"></h:commandButton>
+ <h:outputText value="#{combobox.bindLabel}"></h:outputText>
</h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r7979 - trunk/test-applications/facelets/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:33:46 -0400 (Mon, 21 Apr 2008)
New Revision: 7979
Modified:
trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml
Log:
Add test for Binding
Modified: trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml 2008-04-21 09:33:30 UTC (rev 7978)
+++ trunk/test-applications/facelets/src/main/webapp/Combobox/Combobox.xhtml 2008-04-21 09:33:46 UTC (rev 7979)
@@ -11,7 +11,8 @@
onblur="#{event.onblur}" onchange="#{event.onchange}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
onfocus="#{event.onfocus}" onitemselected="#{event.onitemselected}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
onkeyup="#{event.onkeyup}" onlistcall="#{event.onlistcall}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}">
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}"
+ binding="#{combobox.myComboBox}">
<f:selectItem itemValue="selectItem 1"/>
<f:selectItem itemValue="selectItem 2"/>
<f:selectItem itemValue="selectItem 3"/>
16 years, 8 months
JBoss Rich Faces SVN: r7978 - trunk/test-applications/facelets/src/main/java/combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:33:30 -0400 (Mon, 21 Apr 2008)
New Revision: 7978
Modified:
trunk/test-applications/facelets/src/main/java/combobox/Combobox.java
Log:
Add test for Binding
Modified: trunk/test-applications/facelets/src/main/java/combobox/Combobox.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/combobox/Combobox.java 2008-04-21 09:32:07 UTC (rev 7977)
+++ trunk/test-applications/facelets/src/main/java/combobox/Combobox.java 2008-04-21 09:33:30 UTC (rev 7978)
@@ -3,6 +3,9 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
+import org.richfaces.component.html.HtmlComboBox;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
@@ -36,6 +39,8 @@
public String listHeight;
public String listWidth;
public ArrayList<SelectItem> selectItem;
+ private HtmlComboBox myComboBox = null;
+ private String bindLabel;
public Combobox() {
this.disabled = false;
@@ -60,6 +65,7 @@
this.listWidth = "350";
this.suggestionValues = new ArrayList<String>();
this.selectItem = new ArrayList<SelectItem>();
+ this.bindLabel = "Click Binding";
Random r = new Random();
for(int i = 0; i < 10; i++){
suggestionValues.add("suggestionValues " + r.nextInt(10) + " N=" + i);
@@ -247,4 +253,25 @@
this.inputSize = inputSize;
}
+ public HtmlComboBox getMyComboBox() {
+ return myComboBox;
+ }
+
+ public void setMyComboBox(HtmlComboBox myComboBox) {
+ this.myComboBox = myComboBox;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myComboBox.getClientId(context);
+ }
+
}
16 years, 8 months
JBoss Rich Faces SVN: r7977 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:32:07 -0400 (Mon, 21 Apr 2008)
New Revision: 7977
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
Log:
Add test for Binding
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-21 09:31:53 UTC (rev 7976)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-21 09:32:07 UTC (rev 7977)
@@ -54,6 +54,9 @@
<h:selectBooleanCheckbox value="#{combobox.required}" onchange="submit();"></h:selectBooleanCheckbox>
<h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{combobox.requiredMessage}" onchange="submit();"></h:inputText>
+ <h:inputText value="#{combobox.requiredMessage}" onchange="submit();"></h:inputText>
+
+ <h:commandButton actionListener="#{combobox.checkBinding}" value="Binding"></h:commandButton>
+ <h:outputText value="#{combobox.bindLabel}"></h:outputText>
</h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r7976 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:31:53 -0400 (Mon, 21 Apr 2008)
New Revision: 7976
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp
Log:
Add test for Binding
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp 2008-04-21 09:31:42 UTC (rev 7975)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp 2008-04-21 09:31:53 UTC (rev 7976)
@@ -16,7 +16,8 @@
onblur="#{event.onblur}" onchange="#{event.onchange}" onclick="#{event.onclick}" ondblclick="#{event.ondblclick}"
onfocus="#{event.onfocus}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
onkeyup="#{event.onkeyup}" onlistcall="#{event.onlistcall}" onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}">
+ onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}"
+ binding="#{combobox.myComboBox}">
<f:selectItem itemValue="selectItem 1"/>
<f:selectItem itemValue="selectItem 2"/>
<f:selectItem itemValue="selectItem 3"/>
16 years, 8 months
JBoss Rich Faces SVN: r7975 - trunk/test-applications/jsp/src/main/java/combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 05:31:42 -0400 (Mon, 21 Apr 2008)
New Revision: 7975
Modified:
trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
Log:
Add test for Binding
Modified: trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-21 09:31:26 UTC (rev 7974)
+++ trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-21 09:31:42 UTC (rev 7975)
@@ -3,6 +3,9 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
+import org.richfaces.component.html.HtmlComboBox;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
@@ -32,7 +35,9 @@
public String listHeight;
public String listWidth;
public ArrayList<SelectItem> selectItem;
-
+ private HtmlComboBox myComboBox = null;
+ private String bindLabel;
+
public Combobox() {
this.disabled = false;
this.defaultLabel = "defaultLabel";
@@ -56,6 +61,7 @@
this.listWidth = "350";
this.suggestionValues = new ArrayList<String>();
this.selectItem = new ArrayList<SelectItem>();
+ this.bindLabel = "Click Binding";
Random r = new Random();
for(int i = 0; i < 10; i++){
suggestionValues.add("suggestionValues " + r.nextInt(10) + " N=" + i);
@@ -242,4 +248,25 @@
public void setListWidth(String listWidth) {
this.listWidth = listWidth;
}
+
+ public HtmlComboBox getMyComboBox() {
+ return myComboBox;
+ }
+
+ public void setMyComboBox(HtmlComboBox myComboBox) {
+ this.myComboBox = myComboBox;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myComboBox.getClientId(context);
+ }
}
16 years, 8 months
JBoss Rich Faces SVN: r7974 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-21 05:31:26 -0400 (Mon, 21 Apr 2008)
New Revision: 7974
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
Log:
RF-3134 - added information about using and possible values for saveControlIcon and cancelControlIcon attributes.
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-04-21 09:07:35 UTC (rev 7973)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceInput.xml 2008-04-21 09:31:26 UTC (rev 7974)
@@ -328,13 +328,13 @@
attribute and it has to be defined as "true".
</para>
</note>
- <!-- para>
+ <para>
Redefinition of the
"save" and "cancel" icons can be performed using
<emphasis><property>"saveControlIcon"</property></emphasis>
and
<emphasis><property>"cancelControlIcon"</property></emphasis>
- attributes. You need to define the path to where your images are located.
+ attributes. You need to define the path to where your images are located.
</para>
<para>
<emphasis role="bold">Example:</emphasis>
@@ -345,8 +345,8 @@
showControls="true"
controlsHorizontalPosition="left"
controlsVerticalPosition="top"
- saveControlIcon="/richfaces-demo/richfaces/cancel.gif"
- cancelControlIcon="/richfaces-demo/richfaces/save.gif"/>
+ saveControlIcon="/images/cancel.gif"
+ cancelControlIcon="/images/save.gif"/>
...]]> </programlisting>
<figure>
<title>Redefining of "save" and "cancel" buttons</title>
@@ -355,7 +355,10 @@
<imagedata fileref="images/inplaceInputShowControlsCustom.png"/>
</imageobject>
</mediaobject>
- </figure-->
+ </figure>
+
+
+ <para><emphasis><property>""</property></emphasis></para>
<para>
The <emphasis role="bold"><property><rich:inplaceInput></property></emphasis> component could be rendered with
16 years, 8 months
JBoss Rich Faces SVN: r7973 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-04-21 05:07:35 -0400 (Mon, 21 Apr 2008)
New Revision: 7973
Modified:
trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
Log:
RF-3120 - definition "center" has been removed from guide
Modified: trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-04-21 08:52:42 UTC (rev 7972)
+++ trunk/docs/userguide/en/src/main/docbook/included/inplaceSelect.xml 2008-04-21 09:07:35 UTC (rev 7973)
@@ -299,7 +299,7 @@
<listitem>
<para>
The <emphasis><property>"controlsVerticalPosition "</property></emphasis> attribute
- with "bottom", "center" and "top" definitions
+ with "bottom" and "top" definitions
</para>
</listitem>
</itemizedlist>
16 years, 8 months
JBoss Rich Faces SVN: r7972 - trunk/ui/fileUpload/src/main/config/component.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-04-21 04:52:42 -0400 (Mon, 21 Apr 2008)
New Revision: 7972
Modified:
trunk/ui/fileUpload/src/main/config/component/fileUpload.xml
Log:
RF-3155
Modified: trunk/ui/fileUpload/src/main/config/component/fileUpload.xml
===================================================================
--- trunk/ui/fileUpload/src/main/config/component/fileUpload.xml 2008-04-21 08:52:14 UTC (rev 7971)
+++ trunk/ui/fileUpload/src/main/config/component/fileUpload.xml 2008-04-21 08:52:42 UTC (rev 7972)
@@ -342,6 +342,13 @@
<defaultvalue>false</defaultvalue>
</property>
+ <property>
+ <name>status</name>
+ <classname>java.lang.String</classname>
+ <description>
+ ID (in format of call UIComponent.findComponent()) of Request status component </description>
+ </property>
+
<property elonly="true" hidden="true" existintag="false" exist="false" >
<name>size</name>
<classname>java.lang.Object</classname>
16 years, 8 months
JBoss Rich Faces SVN: r7971 - trunk/test-applications/facelets/src/main/java/pickList.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 04:52:14 -0400 (Mon, 21 Apr 2008)
New Revision: 7971
Modified:
trunk/test-applications/facelets/src/main/java/pickList/PickList.java
Log:
Change binding
Modified: trunk/test-applications/facelets/src/main/java/pickList/PickList.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/pickList/PickList.java 2008-04-21 08:51:58 UTC (rev 7970)
+++ trunk/test-applications/facelets/src/main/java/pickList/PickList.java 2008-04-21 08:52:14 UTC (rev 7971)
@@ -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;
@@ -31,31 +34,9 @@
private String requiredMessage;
private Object[] value;
private String valueCL;
-
- public String getValueCL() {
- return valueCL;
- }
-
- public void setValueCL(String valueCL) {
- this.valueCL = valueCL;
- }
-
- public boolean isRequired() {
- return required;
- }
-
- public void setRequired(boolean required) {
- this.required = required;
- }
-
- public String getRequiredMessage() {
- return requiredMessage;
- }
-
- public void setRequiredMessage(String requiredMessage) {
- this.requiredMessage = requiredMessage;
- }
-
+ private HtmlPickList myPickList = null;
+ private String bindLabel;
+
public PickList() {
this.copyAllControlLabel = "copyAllControlLabel";
this.copyControlLabel = "copyControlLabel";
@@ -78,12 +59,58 @@
this.title = "title";
this.required = false;
this.requiredMessage = "requiredMessage";
+ bindLabel = "Click Binding";
data = new ArrayList<SelectItem>();
for (int i = 0; i < 10; i++)
data.add(new SelectItem("selectItems " + i));
}
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myPickList.getClientId(context);
+ }
+ 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;
+ }
+
+ public void setValueCL(String valueCL) {
+ this.valueCL = valueCL;
+ }
+
+ public boolean isRequired() {
+ return required;
+ }
+
+ public void setRequired(boolean required) {
+ this.required = required;
+ }
+
+ public String getRequiredMessage() {
+ return requiredMessage;
+ }
+
+ public void setRequiredMessage(String requiredMessage) {
+ this.requiredMessage = requiredMessage;
+ }
+
public void valueChangeListener(ValueChangeEvent event) {
valueCL = "valueChangeListener work!";
}
16 years, 8 months