JBoss Rich Faces SVN: r8040 - in branches/3.1.x/test-applications/facelets/src/main: webapp/ScrollableDataTable and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-21 12:59:51 -0400 (Mon, 21 Apr 2008)
New Revision: 8040
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml
Log:
binding+selection
Modified: branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-04-21 16:35:27 UTC (rev 8039)
+++ branches/3.1.x/test-applications/facelets/src/main/java/scrollableDataTable/ScrollableDataTable.java 2008-04-21 16:59:51 UTC (rev 8040)
@@ -4,6 +4,9 @@
import org.ajax4jsf.model.DataComponentState;
import org.richfaces.model.selection.Selection;
+import org.richfaces.component.html.HtmlScrollableDataTable;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
import util.data.Data;
@@ -32,11 +35,14 @@
private boolean ignoreDupResponses;
private String eventsQueue;
private String activeRowKey;
+ private String bindLabel;
private Selection selection;
private boolean ajaxSingle;
+ private HtmlScrollableDataTable myScrollableDT = null;
public ScrollableDataTable() {
width = "400px";
+ bindLabel = "not ready";
rows = 30;
hideWhenScrolling = false;
dataLength = 40;
@@ -213,4 +219,28 @@
public void setAjaxSingle(boolean ajaxSingle) {
this.ajaxSingle = ajaxSingle;
}
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
+
+ public HtmlScrollableDataTable getMyScrollableDT() {
+ return myScrollableDT;
+ }
+
+ public void setMyScrollableDT(HtmlScrollableDataTable myScrollableDT) {
+ this.myScrollableDT = myScrollableDT;
+ }
+
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myScrollableDT.getBaseClientId(context);
+ System.out.println("======Binding work=====" + bindLabel);
+ selection = myScrollableDT.getSelection();
+ System.out.println("======Selection work=====" + selection);
+ }
}
\ No newline at end of file
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2008-04-21 16:35:27 UTC (rev 8039)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTable.xhtml 2008-04-21 16:59:51 UTC (rev 8040)
@@ -12,7 +12,8 @@
timeout="#{scrollableDT.timeout}"
selection="#{scrollableDT.selection}"
oncomplete="showEvent('oncompleteInputID', 'oncomplete work!')"
- onselectionchange="showEvent('onselectionchangeInputID', 'onselectionchange work!')">
+ onselectionchange="showEvent('onselectionchangeInputID', 'onselectionchange work!')"
+ binding="#{scrollableDT.myScrollableDT}" >
<f:facet name="header">
<h:outputText value="facet header"></h:outputText>
</f:facet>
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml 2008-04-21 16:35:27 UTC (rev 8039)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.xhtml 2008-04-21 16:59:51 UTC (rev 8040)
@@ -1,52 +1,66 @@
-<f:subview xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="scrollableDataTablePropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="length:"></h:outputText>
- <h:inputText value="#{scrollableDT.dataLength}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="rows:" />
- <h:inputText value="#{scrollableDT.rows}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="first:"></h:outputText>
- <h:inputText value="#{scrollableDT.first}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="timeout"></h:outputText>
- <h:inputText value="#{scrollableDT.timeout}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="width:" />
- <h:inputText value="#{scrollableDT.width}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="height:"></h:outputText>
- <h:inputText value="#{scrollableDT.height}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="frozenColCount"></h:outputText>
- <h:inputText value="#{scrollableDT.frozenColCount}" onchange="submit();">
- </h:inputText>
-
- <h:outputText value="limitToList"></h:outputText>
- <h:selectBooleanCheckbox value="#{scrollableDT.limitToList}" onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="bypassUpdates:"></h:outputText>
- <h:selectBooleanCheckbox value="#{scrollableDT.bypassUpdates}" onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="ajaxSingle:"></h:outputText>
- <h:selectBooleanCheckbox value="#{scrollableDT.ajaxSingle}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{scrollableDT.rendered}" onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="hideWhenScrolling:" />
- <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}" onchange="submit();">
- </h:selectBooleanCheckbox>
- </h:panelGrid>
- <a4j:commandButton value="reRender" reRender="sdt"></a4j:commandButton>
+<f:subview xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="scrollableDataTablePropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="length:"></h:outputText>
+ <h:inputText value="#{scrollableDT.dataLength}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="rows:" />
+ <h:inputText value="#{scrollableDT.rows}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="first:"></h:outputText>
+ <h:inputText value="#{scrollableDT.first}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="timeout"></h:outputText>
+ <h:inputText value="#{scrollableDT.timeout}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="width:" />
+ <h:inputText value="#{scrollableDT.width}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="height:"></h:outputText>
+ <h:inputText value="#{scrollableDT.height}" onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="frozenColCount"></h:outputText>
+ <h:inputText value="#{scrollableDT.frozenColCount}"
+ onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="limitToList"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.limitToList}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="bypassUpdates:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.bypassUpdates}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ajaxSingle:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.ajaxSingle}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{scrollableDT.rendered}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="hideWhenScrolling:" />
+ <h:selectBooleanCheckbox value="#{scrollableDT.hideWhenScrolling}"
+ onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:commandButton actionListener="#{scrollableDT.checkBinding}"
+ value="Binding" />
+ <h:outputText value="#{scrollableDT.bindLabel}" />
+ </h:panelGrid>
+ <a4j:commandButton value="reRender" reRender="sdt"></a4j:commandButton>
</f:subview>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r8039 - trunk/test-applications/facelets/src/main/java/util/data.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 12:35:27 -0400 (Mon, 21 Apr 2008)
New Revision: 8039
Modified:
trunk/test-applications/facelets/src/main/java/util/data/Data.java
Log:
Add test for converter
Modified: trunk/test-applications/facelets/src/main/java/util/data/Data.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/data/Data.java 2008-04-21 16:35:05 UTC (rev 8038)
+++ trunk/test-applications/facelets/src/main/java/util/data/Data.java 2008-04-21 16:35:27 UTC (rev 8039)
@@ -1,8 +1,9 @@
package util.data;
+import java.io.Serializable;
import java.util.Random;
-public class Data {
+public class Data implements Serializable{
public static final String[] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
public static final String[] status = {"error", "fatal", "info", "passed", "warn"};
@@ -232,4 +233,8 @@
return true;
}
+ @Override
+ public String toString() {
+ return str0 +":"+int0;
+ }
}
16 years, 8 months
JBoss Rich Faces SVN: r8038 - trunk/test-applications/facelets/src/main/java/util/converter.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 12:35:05 -0400 (Mon, 21 Apr 2008)
New Revision: 8038
Modified:
trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java
Log:
Add test for converter
Modified: trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java 2008-04-21 16:34:39 UTC (rev 8037)
+++ trunk/test-applications/facelets/src/main/java/util/converter/OrderingListConverter.java 2008-04-21 16:35:05 UTC (rev 8038)
@@ -12,6 +12,7 @@
public Object getAsObject(FacesContext arg0, UIComponent arg1, String arg2) {
String [] str = arg2.split(":");
+ System.out.println("Str:"+ str);
return new Data(Integer.parseInt(str[0]), str[1], str[2], str[3],str[4]);
}
//list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
16 years, 8 months
JBoss Rich Faces SVN: r8037 - trunk/test-applications/facelets/src/main/java/combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 12:34:39 -0400 (Mon, 21 Apr 2008)
New Revision: 8037
Modified:
trunk/test-applications/facelets/src/main/java/combobox/Combobox.java
Log:
Add test for converter
Modified: trunk/test-applications/facelets/src/main/java/combobox/Combobox.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/combobox/Combobox.java 2008-04-21 16:33:47 UTC (rev 8036)
+++ trunk/test-applications/facelets/src/main/java/combobox/Combobox.java 2008-04-21 16:34:39 UTC (rev 8037)
@@ -69,7 +69,7 @@
this.immediate = false;
this.inputSize = "4";
this.width = "300";
- this.value = new Data("ffff",5);
+ this.value = new Data("default",0);
this.tabindex = 2;
this.size = 5;
this.showDelay = "200";
16 years, 8 months
JBoss Rich Faces SVN: r8036 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 12:33:47 -0400 (Mon, 21 Apr 2008)
New Revision: 8036
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
Log:
Add test for converter
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-21 16:33:16 UTC (rev 8035)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-21 16:33:47 UTC (rev 8036)
@@ -11,9 +11,6 @@
<h:outputText value="filterNewValues"></h:outputText>
<h:selectBooleanCheckbox value="#{combobox.filterNewValues}" onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="value"></h:outputText>
- <h:inputText value="#{combobox.value}" onchange="submit();"></h:inputText>
-
<h:outputText value="tabindex"></h:outputText>
<h:inputText value="#{combobox.tabindex}" onchange="submit();"></h:inputText>
16 years, 8 months
JBoss Rich Faces SVN: r8035 - trunk/test-applications/jsp/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 12:33:16 -0400 (Mon, 21 Apr 2008)
New Revision: 8035
Modified:
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
Log:
Add test for converter
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml 2008-04-21 16:32:50 UTC (rev 8034)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Converter.xml 2008-04-21 16:33:16 UTC (rev 8035)
@@ -22,4 +22,8 @@
<converter-id>inplaceInputConverter</converter-id>
<converter-class>util.converter.InplaceInputConverter</converter-class>
</converter>
+ <converter>
+ <converter-id>comboBoxConverter</converter-id>
+ <converter-class>util.converter.ComboBoxConverter</converter-class>
+ </converter>
</faces-config>
16 years, 8 months
JBoss Rich Faces SVN: r8034 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 12:32:50 -0400 (Mon, 21 Apr 2008)
New Revision: 8034
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp
Log:
Add test for converter
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp 2008-04-21 16:31:59 UTC (rev 8033)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/Combobox.jsp 2008-04-21 16:32:50 UTC (rev 8034)
@@ -19,11 +19,8 @@
onmouseout="#{event.onmouseout}" onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" onselect="#{event.onselect}"
binding="#{combobox.myComboBox}"
align="#{combobox.align}"
- alt="#{combobox.alt}">
- <f:selectItem itemValue="selectItem 1"/>
- <f:selectItem itemValue="selectItem 2"/>
- <f:selectItem itemValue="selectItem 3"/>
- <f:selectItems value="#{combobox.selectItem}"/>
+ alt="#{combobox.alt}"
+ converter="comboBoxConverter">
</rich:comboBox>
</f:subview>
\ No newline at end of file
16 years, 8 months
JBoss Rich Faces SVN: r8033 - trunk/test-applications/jsp/src/main/java/combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-21 12:31:59 -0400 (Mon, 21 Apr 2008)
New Revision: 8033
Modified:
trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
Log:
Add test for converter
Modified: trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-21 16:26:08 UTC (rev 8032)
+++ trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-21 16:31:59 UTC (rev 8033)
@@ -21,9 +21,9 @@
public boolean immediate;
public int inputSize;
public String width;
- public String value;
+ public Data value;
public int tabindex;
- public List<String> suggestionValues;
+ public List<Data> suggestionValues;
public int size;
public String showDelay;
public boolean required;
@@ -50,7 +50,7 @@
this.immediate = false;
this.inputSize = 4;
this.width = "300";
- this.value = "";
+ this.value = new Data("default",0);
this.tabindex = 2;
this.size = 5;
this.showDelay = "200";
@@ -62,15 +62,16 @@
this.enableManualInput = true;
this.listHeight = "400";
this.listWidth = "350";
- this.suggestionValues = new ArrayList<String>();
+ this.suggestionValues = new ArrayList<Data>();
this.selectItem = new ArrayList<SelectItem>();
this.bindLabel = "Click Binding";
this.align = "left";
this.alt = "default alt";
Random r = new Random();
for(int i = 0; i < 10; i++){
- suggestionValues.add("suggestionValues " + r.nextInt(10) + " N=" + i);
- selectItem.add(new SelectItem("selectItem " + r.nextInt(10) + " N=" + i));
+ suggestionValues.add(new Data("selectItem", i));
+ selectItem.add(new SelectItem(new Data("selectItem", i)));
+ System.out.println(selectItem.get(i).getValue().toString());
}
}
@@ -142,11 +143,11 @@
this.width = width;
}
- public String getValue() {
+ public Data getValue() {
return value;
}
- public void setValue(String value) {
+ public void setValue(Data value) {
this.value = value;
}
@@ -158,11 +159,11 @@
this.tabindex = tabindex;
}
- public List<String> getSuggestionValues() {
+ public List<Data> getSuggestionValues() {
return suggestionValues;
}
- public void setSuggestionValues(List<String> suggestionValues) {
+ public void setSuggestionValues(List<Data> suggestionValues) {
this.suggestionValues = suggestionValues;
}
16 years, 8 months
JBoss Rich Faces SVN: r8032 - trunk/docs/migrationguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-21 12:26:08 -0400 (Mon, 21 Apr 2008)
New Revision: 8032
Modified:
trunk/docs/migrationguide/en/src/main/docbook/included/actionparam.xml
Log:
http://jira.jboss.com/jira/browse/RF-3048
Language correction
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/actionparam.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/actionparam.xml 2008-04-21 16:25:58 UTC (rev 8031)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/actionparam.xml 2008-04-21 16:26:08 UTC (rev 8032)
@@ -29,7 +29,7 @@
</a4j:support>
...]]></programlisting>
<para>
- This issue is occurs in JSP pages only.
+ This issue occurs in JSP pages only.
</para>
</section>
<section>
16 years, 8 months
JBoss Rich Faces SVN: r8031 - trunk/docs/migrationguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-04-21 12:25:58 -0400 (Mon, 21 Apr 2008)
New Revision: 8031
Modified:
trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml
Log:
http://jira.jboss.com/jira/browse/RF-3048
Language correction
Modified: trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml
===================================================================
--- trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml 2008-04-21 16:22:14 UTC (rev 8030)
+++ trunk/docs/migrationguide/en/src/main/docbook/included/seamMultipartFilter.xml 2008-04-21 16:25:58 UTC (rev 8031)
@@ -29,7 +29,7 @@
<section>
<title>How to reproduce</title>
<para>
- Use the <emphasis role="bold"><property><rich:fileUpload></property></emphasis> component and <property>Seam</property> multi-part filter at the same time.
+ The problem occurs if you use the <emphasis role="bold"><property><rich:fileUpload></property></emphasis> component and <property>Seam</property> multi-part filter at the same time.
</para>
</section>
<section>
@@ -42,7 +42,7 @@
<section>
<title>Workarounds</title>
<para>
- Turn the <property>Seam</property> multi-part filter off.
+ The solution is turn the <property>Seam</property> multi-part filter off.
</para>
</section>
</section>
\ No newline at end of file
16 years, 8 months