JBoss Rich Faces SVN: r8342 - in trunk/test-applications/seleniumTest/src: main/webapp/WEB-INF and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-04-29 12:23:54 -0400 (Tue, 29 Apr 2008)
New Revision: 8342
Added:
trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JKeepAliveTestBean.java
trunk/test-applications/seleniumTest/src/main/webapp/pages/keepAlive/
trunk/test-applications/seleniumTest/src/main/webapp/pages/keepAlive/keepAliveTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java
Modified:
trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml
Log:
KeepAlive component test
Added: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JKeepAliveTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JKeepAliveTestBean.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JKeepAliveTestBean.java 2008-04-29 16:23:54 UTC (rev 8342)
@@ -0,0 +1,47 @@
+package org.ajax4jsf;
+
+public class A4JKeepAliveTestBean {
+
+ /* result */
+ private Integer sum = 0;
+
+ /* value to be added to result */
+ private Integer augend = 5;
+
+ /**
+ * Gets value of sum field.
+ * @return value of sum field
+ */
+ public Integer getSum() {
+ return sum;
+ }
+
+ /**
+ * Set a new value for sum field.
+ * @param sum a new value for sum field
+ */
+ public void setSum(Integer sum) {
+ this.sum = sum;
+ }
+
+ /**
+ * Gets value of augend field.
+ * @return value of augend field
+ */
+ public Integer getAugend() {
+ return augend;
+ }
+
+ /**
+ * Set a new value for augend field.
+ * @param augend a new value for augend field
+ */
+ public void setAugend(Integer augend) {
+ this.augend = augend;
+ }
+
+ public String doSum() {
+ sum += augend;
+ return null;
+ }
+}
Property changes on: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/A4JKeepAliveTestBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml 2008-04-29 16:17:34 UTC (rev 8341)
+++ trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml 2008-04-29 16:23:54 UTC (rev 8342)
@@ -56,5 +56,15 @@
<managed-bean-name>pollBean</managed-bean-name>
<managed-bean-class>org.ajax4jsf.A4JPollTestBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>keepAliveBean</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.A4JKeepAliveTestBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>keepAliveBeanAjaxOnly</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.A4JKeepAliveTestBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
</managed-bean>
</faces-config>
\ No newline at end of file
Added: trunk/test-applications/seleniumTest/src/main/webapp/pages/keepAlive/keepAliveTest.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/seleniumTest/src/main/webapp/pages/keepAlive/keepAliveTest.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java 2008-04-29 16:23:54 UTC (rev 8342)
@@ -0,0 +1,56 @@
+package org.richfaces;
+
+import org.ajax4jsf.test.base.SeleniumTestBase;
+import org.ajax4jsf.test.base.Templates;
+import org.testng.annotations.AfterTest;
+import org.testng.annotations.BeforeTest;
+import org.testng.annotations.Parameters;
+import org.testng.annotations.Test;
+
+public class KeepAliveTest extends SeleniumTestBase {
+
+ public KeepAliveTest() {
+ super("http", "localhost", "8080");
+ }
+
+ /**
+ * This method are invoking before selenium tests started
+ */
+ @BeforeTest
+ @Parameters( { "browser" })
+ public void startSelenium(String browser) {
+ super.startSelenium(browser);
+ }
+
+ /**
+ * This method are invoking after selenium tests completed
+ */
+ @AfterTest
+ public void stopSelenium() {
+ super.stopSelenium();
+ }
+
+ @Test
+ public void testKeepAliveComponent() throws Exception {
+ _testKeepAliveComponent(Templates.DATATABLE);
+ }
+
+ private void _testKeepAliveComponent(Templates template) {
+ renderPage("/faces/pages/keepAlive/keepAliveTest.xhtml", template);
+
+ String parentId = getParentId();
+ String sumElemId = parentId + "sum";
+ AssertValueEquals(sumElemId, "0");
+ String addButtonId = parentId + "form:add";
+ String addAjaxButtonId = parentId + "form:addAjax";
+ clickById(addButtonId);
+ clickById(addButtonId);
+ delay(3000);
+ AssertValueEquals(sumElemId, "10");
+
+ clickById(addAjaxButtonId);
+ clickById(addAjaxButtonId);
+ waitForAjaxCompletion();
+ AssertValueEquals(sumElemId, "20");
+ }
+}
Property changes on: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/KeepAliveTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
16 years, 5 months
JBoss Rich Faces SVN: r8341 - trunk/test-applications/jsp/src/main/webapp/SortingAndFiltering.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-04-29 12:17:34 -0400 (Tue, 29 Apr 2008)
New Revision: 8341
Modified:
trunk/test-applications/jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp
Log:
fix
Modified: trunk/test-applications/jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp 2008-04-29 16:00:07 UTC (rev 8340)
+++ trunk/test-applications/jsp/src/main/webapp/SortingAndFiltering/SortingAndFiltering.jsp 2008-04-29 16:17:34 UTC (rev 8341)
@@ -39,6 +39,7 @@
<h:panelGrid columns="1" title="5">
<h:outputText value="sortOrder='#{sortingAndFiltering.sortOrder}'"></h:outputText>
<h:outputText value="comparator: sort by length" />
+ <h:outputText value="filterBy"></h:outputText>
</h:panelGrid>
<h:panelGrid columns="1" title="6">
<h:outputText value=" filterExpression='data > filterValue"></h:outputText>
16 years, 5 months
JBoss Rich Faces SVN: r8340 - trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-04-29 12:00:07 -0400 (Tue, 29 Apr 2008)
New Revision: 8340
Modified:
trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx
Log:
http://jira.jboss.com/jira/browse/RF-3213
Modified: trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx
===================================================================
--- trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx 2008-04-29 15:49:36 UTC (rev 8339)
+++ trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx 2008-04-29 16:00:07 UTC (rev 8340)
@@ -24,9 +24,9 @@
x:style='width:#{component.width};height:#{component.height};overflow:auto;#{component.attributes["style"]}'
x:passThruWithExclusions="value,name,id,style"
>
+ <button onclick="LOG.clear()">Clear</button><br />
<script type="text/javascript">
LOG.LEVEL = LOG.#{component.level};
- LOG.clear();
</script>
</div>
<jsp:scriptlet> } </jsp:scriptlet>
16 years, 5 months
JBoss Rich Faces SVN: r8339 - trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-04-29 11:49:36 -0400 (Tue, 29 Apr 2008)
New Revision: 8339
Modified:
trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx
Log:
http://jira.jboss.com/jira/browse/RF-3213
Modified: trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx
===================================================================
--- trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx 2008-04-29 15:49:31 UTC (rev 8338)
+++ trunk/ui/core/src/main/templates/org/ajax4jsf/renderkit/html/log.jspx 2008-04-29 15:49:36 UTC (rev 8339)
@@ -24,9 +24,10 @@
x:style='width:#{component.width};height:#{component.height};overflow:auto;#{component.attributes["style"]}'
x:passThruWithExclusions="value,name,id,style"
>
- <script type="text/javascript">
- LOG.LEVEL = LOG.#{component.level};
- </script>
+ <script type="text/javascript">
+ LOG.LEVEL = LOG.#{component.level};
+ LOG.clear();
+ </script>
</div>
<jsp:scriptlet> } </jsp:scriptlet>
</f:root>
\ No newline at end of file
16 years, 5 months
JBoss Rich Faces SVN: r8338 - trunk/framework/impl/src/main/javascript/ajaxjsf.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-04-29 11:49:31 -0400 (Tue, 29 Apr 2008)
New Revision: 8338
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/log4ajax.js
Log:
http://jira.jboss.com/jira/browse/RF-3213
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/log4ajax.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/log4ajax.js 2008-04-29 15:48:38 UTC (rev 8337)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/log4ajax.js 2008-04-29 15:49:31 UTC (rev 8338)
@@ -86,13 +86,28 @@
}
}
+LOG.clear = function() {
+ if(LOG._window && LOG._window.document){
+ consoleDiv = LOG._window.document.body;
+ } else {
+ consoleDiv = window.document.getElementById(LOG.consoleDivId);
+ }
+
+ consoleDiv.innerHTML = '<button onclick="LOG.clear()">Clear</button><br />';
+}
+
LOG.openWindow = function(name,features){
if(LOG._window){
LOG._window.focus();
} else {
LOG._window = window.open("",name,features);
+
+ LOG._window.LOG = LOG;
+ LOG.clear();
+
var _LOG = LOG;
LOG._window.onunload = function(){
+ _LOG._window.LOG = null;
_LOG._window = null;
_LOG.LEVEL = _LOG.OFF;
_LOG=undefined;
16 years, 5 months
JBoss Rich Faces SVN: r8337 - in trunk/test-applications/jsp/src/main: webapp/Calendar and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2008-04-29 11:48:38 -0400 (Tue, 29 Apr 2008)
New Revision: 8337
Modified:
trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
Log:
http://jira.jboss.com/jira/browse/RF-2269
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-04-29 15:41:31 UTC (rev 8336)
+++ trunk/test-applications/jsp/src/main/java/calendar/CalendarBean.java 2008-04-29 15:48:38 UTC (rev 8337)
@@ -73,6 +73,7 @@
private String jointPoint;
private String direction;
private String boundary;
+ private int firstWeekDay;
private String icon;
private String toolTipMode;
private String label;
@@ -162,6 +163,7 @@
public CalendarBean() {
+ firstWeekDay = 1;
defaultTime = "7:30";
resetTimeOnDateSelect = false;
showFooter = true;
@@ -754,4 +756,20 @@
this.inputSize = inputSize;
}
+
+ /**
+ * @return the firstWeekDay
+ */
+ public int getFirstWeekDay() {
+ return firstWeekDay;
+ }
+
+
+ /**
+ * @param firstWeekDay the firstWeekDay to set
+ */
+ public void setFirstWeekDay(int firstWeekDay) {
+ this.firstWeekDay = firstWeekDay;
+ }
+
}
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-29 15:41:31 UTC (rev 8336)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2008-04-29 15:48:38 UTC (rev 8337)
@@ -15,6 +15,7 @@
rendered="#{calendarBean.renderedAjax}" />
<rich:calendar id="calendarClientID"
+ firstWeekDay="#{calendarBean.firstWeekDay}"
defaultTime="#{calendarBean.defaultTime}"
resetTimeOnDateSelect="#{calendarBean.resetTimeOnDateSelect}"
showFooter="#{calendarBean.showFooter}"
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-04-29 15:41:31 UTC (rev 8336)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-04-29 15:48:38 UTC (rev 8337)
@@ -47,6 +47,17 @@
<h:outputText value="cellWidth: "></h:outputText>
<h:inputText value="#{calendarBean.cellWidth}" onchange="submit();"></h:inputText>
+ <h:outputText value="firstWeekDay"></h:outputText>
+ <h:selectOneRadio value="#{calendarBean.firstWeekDay}" onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="1"/>
+ <f:selectItem itemLabel="2" itemValue="2"/>
+ <f:selectItem itemLabel="3" itemValue="3"/>
+ <f:selectItem itemLabel="4" itemValue="4"/>
+ <f:selectItem itemLabel="5" itemValue="5"/>
+ <f:selectItem itemLabel="6" itemValue="6"/>
+ <f:selectItem itemLabel="7" itemValue="7"/>
+ </h:selectOneRadio>
+
<h:outputText value="todayControlMode" />
<h:selectOneRadio value="#{calendarBean.todayControlMode}" onchange="submit();">
<f:selectItem itemLabel="scroll" itemValue="scroll" />
16 years, 5 months
JBoss Rich Faces SVN: r8336 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces/dataTableScroller/examples and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-04-29 11:41:31 -0400 (Tue, 29 Apr 2008)
New Revision: 8336
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/simpleScroller.xhtml
Log:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147549#4147549
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-04-29 15:37:44 UTC (rev 8335)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2008-04-29 15:41:31 UTC (rev 8336)
@@ -24,6 +24,8 @@
private UIScrollableDataTable table;
+ private int scrollerPage;
+
private ArrayList<DemoInventoryItem> selectedCars = new ArrayList<DemoInventoryItem>();
private ArrayList<Facet> columns = new ArrayList<Facet>();
private static int DECIMALS = 1;
@@ -240,5 +242,13 @@
public ArrayList<Facet> getColumns() {
return columns;
}
+
+ public int getScrollerPage() {
+ return scrollerPage;
+ }
+
+ public void setScrollerPage(int scrollerPage) {
+ this.scrollerPage = scrollerPage;
+ }
}
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/simpleScroller.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/simpleScroller.xhtml 2008-04-29 15:37:44 UTC (rev 8335)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller/examples/simpleScroller.xhtml 2008-04-29 15:41:31 UTC (rev 8336)
@@ -1,54 +1,57 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
- <style>
- .col {
- width:100px;
- }
- </style>
-
- <h:form>
- <rich:datascroller align="left" for="carList" maxPages="20" />
- <rich:spacer height="30" />
- <rich:dataTable width="483" id="carList" rows="10" columnClasses="col"
- value="#{dataTableScrollerBean.allCars}" var="category">
- <f:facet name="header">
- <rich:columnGroup>
- <h:column>
- <h:outputText styleClass="headerText" value="Make" />
- </h:column>
- <h:column>
- <h:outputText styleClass="headerText" value="Model" />
- </h:column>
- <h:column>
- <h:outputText styleClass="headerText" value="Price" />
- </h:column>
- <h:column>
- <h:outputText styleClass="headerText" value="Mileage" />
- </h:column>
- </rich:columnGroup>
- </f:facet>
+ <style>
+.col {
+ width: 100px;
+}
+</style>
- <h:column>
- <h:outputText value="#{category.make}" />
- </h:column>
- <h:column>
- <h:outputText value="#{category.model}" />
- </h:column>
- <h:column>
- <h:outputText value="#{category.price}" />
- </h:column>
- <h:column>
- <h:outputText value="#{category.mileage}" />
- </h:column>
+ <h:form>
+ <rich:datascroller align="left" for="carList" maxPages="20"
+ page="#{dataTableScrollerBean.scrollerPage}" reRender="sc2" id="sc1" />
+ <rich:spacer height="30" />
+ <rich:dataTable width="483" id="carList" rows="10" columnClasses="col"
+ value="#{dataTableScrollerBean.allCars}" var="category">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <h:column>
+ <h:outputText styleClass="headerText" value="Make" />
+ </h:column>
+ <h:column>
+ <h:outputText styleClass="headerText" value="Model" />
+ </h:column>
+ <h:column>
+ <h:outputText styleClass="headerText" value="Price" />
+ </h:column>
+ <h:column>
+ <h:outputText styleClass="headerText" value="Mileage" />
+ </h:column>
+ </rich:columnGroup>
+ </f:facet>
+ <h:column>
+ <h:outputText value="#{category.make}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.model}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.price}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{category.mileage}" />
+ </h:column>
- </rich:dataTable>
- </h:form>
+ </rich:dataTable>
+ <rich:datascroller align="left" for="carList" maxPages="20"
+ page="#{dataTableScrollerBean.scrollerPage}" id="sc2" reRender="sc1" />
+ </h:form>
+
</ui:composition>
\ No newline at end of file
16 years, 5 months
JBoss Rich Faces SVN: r8335 - trunk/test-applications/jsp/src/main/java/combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-29 11:37:44 -0400 (Tue, 29 Apr 2008)
New Revision: 8335
Modified:
trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
Log:
Erase test for accesskey
Modified: trunk/test-applications/jsp/src/main/java/combobox/Combobox.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-29 15:36:34 UTC (rev 8334)
+++ trunk/test-applications/jsp/src/main/java/combobox/Combobox.java 2008-04-29 15:37:44 UTC (rev 8335)
@@ -37,18 +37,8 @@
private HtmlComboBox myComboBox = null;
private String bindLabel;
private String align;
- private String alt;
- private String accesskey;
- public String getAccesskey() {
- return accesskey;
- }
-
- public void setAccesskey(String accesskey) {
- this.accesskey = accesskey;
- }
-
public Combobox() {
this.disabled = false;
this.defaultLabel = "defaultLabel";
@@ -72,8 +62,6 @@
this.selectItem = new ArrayList<SelectItem>();
this.bindLabel = "Click Binding";
this.align = "left";
- this.alt = "hidden";
- this.accesskey = "y";
Random r = new Random();
for(int i = 0; i < 10; i++){
suggestionValues.add(new Data("selectItem", i));
16 years, 5 months
JBoss Rich Faces SVN: r8334 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: gmaksimenko
Date: 2008-04-29 11:36:34 -0400 (Tue, 29 Apr 2008)
New Revision: 8334
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
Log:
Erase test for accesskey
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-29 15:33:35 UTC (rev 8333)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-04-29 15:36:34 UTC (rev 8334)
@@ -20,10 +20,7 @@
<h:inputText value="#{combobox.listHeight}" onchange="submit();"></h:inputText>
<h:outputText value="listWidth"></h:outputText>
- <h:inputText value="#{combobox.listWidth}" onchange="submit();"></h:inputText>
-
- <h:outputText value="accesskey"></h:outputText>
- <h:inputText value="#{combobox.accesskey}" onchange="submit();"></h:inputText>
+ <h:inputText value="#{combobox.listWidth}" onchange="submit();"></h:inputText>
<h:outputText value="enableManualInput"></h:outputText>
<h:selectBooleanCheckbox value="#{combobox.enableManualInput}" onchange="submit();"></h:selectBooleanCheckbox>
16 years, 5 months
JBoss Rich Faces SVN: r8333 - trunk/test-applications/facelets/src/main/java/dataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-04-29 11:33:35 -0400 (Tue, 29 Apr 2008)
New Revision: 8333
Modified:
trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java
Log:
Modified: trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java 2008-04-29 15:32:25 UTC (rev 8332)
+++ trunk/test-applications/facelets/src/main/java/dataTable/TestBean.java 2008-04-29 15:33:35 UTC (rev 8333)
@@ -1,11 +1,25 @@
package dataTable;
import java.util.ArrayList;
import java.util.List;
+import org.richfaces.component.html.HtmlDataGrid;
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
public class TestBean {
private List<Table> tables = new ArrayList<Table>();
+ private HtmlDataGrid myDataGrid = null;
+ private String bindLabel;
+ private String elements;
+ public String getElements() {
+ return elements;
+ }
+
+ public void setElements(String elements) {
+ this.elements = elements;
+ }
+
public TestBean() {
Table t1 = new Table();
tables.add(t1);
@@ -16,6 +30,8 @@
tables.add(t2);
t2.getCells().add(new Cell());
t2.getCells().add(new Cell());
+ bindLabel = "not ready";
+ elements = "0";
}
public String submit() {
@@ -26,6 +42,11 @@
}
+ public void checkBinding(ActionEvent actionEvent){
+ FacesContext context = FacesContext.getCurrentInstance();
+ bindLabel = myDataGrid.getBaseClientId(context);
+ }
+
public List<Table> getTables() {
return tables;
}
@@ -33,4 +54,20 @@
public void setTables(List<Table> tables) {
this.tables = tables;
}
+
+ public HtmlDataGrid getMyDataGrid() {
+ return myDataGrid;
+ }
+
+ public void setMyDataGrid(HtmlDataGrid myDataGrid) {
+ this.myDataGrid = myDataGrid;
+ }
+
+ public String getBindLabel() {
+ return bindLabel;
+ }
+
+ public void setBindLabel(String bindLabel) {
+ this.bindLabel = bindLabel;
+ }
}
16 years, 5 months