JBoss Rich Faces SVN: r19954 - modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-11-05 10:04:44 -0400 (Fri, 05 Nov 2010)
New Revision: 19954
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java
Log:
https://jira.jboss.org/browse/RFPL-817
* fixed testRender
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java 2010-11-05 14:00:32 UTC (rev 19953)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java 2010-11-05 14:04:44 UTC (rev 19954)
@@ -87,6 +87,6 @@
@Test
public void testRender() {
- super.testEvents(button);
+ super.testRender(button);
}
}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java 2010-11-05 14:00:32 UTC (rev 19953)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java 2010-11-05 14:04:44 UTC (rev 19954)
@@ -87,6 +87,6 @@
@Test
public void testRender() {
- super.testEvents(link);
+ super.testRender(link);
}
}
14 years, 2 months
JBoss Rich Faces SVN: r19953 - in modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest: a4jCommandButton and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-11-05 10:00:32 -0400 (Fri, 05 Nov 2010)
New Revision: 19953
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputSecret.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputText.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputTextarea.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandButton/TestA4JCommandButton.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java
Log:
* added IssueTracking annotations to tests because of RF-9665
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java 2010-11-05 13:52:06 UTC (rev 19952)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandButton.java 2010-11-05 14:00:32 UTC (rev 19953)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
/**
@@ -49,6 +50,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")// </editor-fold>
public void testSimpleClickUnicode() {
super.testClick(button, "ľščťžýáíéúôň фывацукйешгщь");
}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java 2010-11-05 13:52:06 UTC (rev 19952)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHCommandLink.java 2010-11-05 14:00:32 UTC (rev 19953)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
/**
@@ -49,6 +50,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")
public void testSimpleClickUnicode() {
super.testClick(link, "ľščťžýáíéúôň фывацукйешгщь");
}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputSecret.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputSecret.java 2010-11-05 13:52:06 UTC (rev 19952)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputSecret.java 2010-11-05 14:00:32 UTC (rev 19953)
@@ -25,6 +25,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
@@ -49,6 +50,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")
public void testSimpleTypeUnicode() {
super.testType(input, "ľščťžýáíéúôň фывацукйешгщь");
}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputText.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputText.java 2010-11-05 13:52:06 UTC (rev 19952)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputText.java 2010-11-05 14:00:32 UTC (rev 19953)
@@ -25,6 +25,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
@@ -49,6 +50,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")
public void testSimpleTypeUnicode() {
super.testType(input, "ľščťžýáíéúôň фывацукйешгщь");
}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputTextarea.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputTextarea.java 2010-11-05 13:52:06 UTC (rev 19952)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jAjax/TestHInputTextarea.java 2010-11-05 14:00:32 UTC (rev 19953)
@@ -25,6 +25,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.richfaces.tests.metamer.ftest.annotations.IssueTracking;
import org.testng.annotations.Test;
@@ -49,6 +50,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")
public void testSimpleTypeUnicode() {
super.testType(input, "ľščťžýáíéúôň фывацукйешгщь");
}
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandButton/TestA4JCommandButton.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandButton/TestA4JCommandButton.java 2010-11-05 13:52:06 UTC (rev 19952)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandButton/TestA4JCommandButton.java 2010-11-05 14:00:32 UTC (rev 19953)
@@ -74,6 +74,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")
public void testSimpleClickUnicode() {
selenium.typeKeys(input, "ľščťžýáíéňô");
selenium.click(button);
Modified: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java
===================================================================
--- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java 2010-11-05 13:52:06 UTC (rev 19952)
+++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java 2010-11-05 14:00:32 UTC (rev 19953)
@@ -74,6 +74,7 @@
}
@Test
+ @IssueTracking("https://jira.jboss.org/browse/RF-9665")
public void testSimpleClickUnicode() {
selenium.typeKeys(input, "ľščťžýáíéňô");
selenium.click(link);
14 years, 2 months
JBoss Rich Faces SVN: r19952 - trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-11-05 09:52:06 -0400 (Fri, 05 Nov 2010)
New Revision: 19952
Modified:
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js
trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss
Log:
http://jira.jboss.com/jira/browse/RF-9620
http://jira.jboss.com/jira/browse/RF-9622
Modified: trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js 2010-11-05 13:39:44 UTC (rev 19951)
+++ trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/Tooltip.js 2010-11-05 13:52:06 UTC (rev 19952)
@@ -128,7 +128,7 @@
this.__addUserEventHandler("beforehide");
this.__addUserEventHandler("beforeshow");
- this.popup = new RichFaces.ui.Popup(this.id + ":cntr", {
+ this.popup = new RichFaces.ui.Popup(this.id, {
attachTo: this.target,
attachToBody: false,
positionType: "TOOLTIP",
@@ -186,7 +186,6 @@
var tooltip = this;
this.__delay(this.options.hideDelay, function () {
tooltip.popup.hide();
- $(rf.getDomElement(tooltip.id)).hide();
});
},
@@ -222,7 +221,6 @@
var tooltip = this;
this.__delay(this.options.showDelay, function () {
tooltip.popup.show(event);
- $(rf.getDomElement(tooltip.id)).show();
});
},
Modified: trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss
===================================================================
--- trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss 2010-11-05 13:39:44 UTC (rev 19951)
+++ trunk/ui/output/ui/src/main/resources/META-INF/resources/org.richfaces/tooltip.ecss 2010-11-05 13:52:06 UTC (rev 19952)
@@ -41,7 +41,4 @@
border-color : '#{richSkin.tipBorderColor}';
font-family: '#{richSkin.generalFamilyFont}';
font-size: '#{richSkin.generalSizeFont}';
- float: left;
- position: absolute;
- display: none;
}
\ No newline at end of file
14 years, 2 months
JBoss Rich Faces SVN: r19951 - trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-11-05 09:39:44 -0400 (Fri, 05 Nov 2010)
New Revision: 19951
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/select.js
Log:
https://jira.jboss.org/browse/RF-9660
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/select.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/select.js 2010-11-05 12:53:47 UTC (rev 19950)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/select.js 2010-11-05 13:39:44 UTC (rev 19951)
@@ -224,6 +224,7 @@
break;
case rf.KEYS.ESC:
+ e.preventDefault();
if(visible) {
this.hidePopup();
}
14 years, 2 months
JBoss Rich Faces SVN: r19950 - modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-11-05 08:53:47 -0400 (Fri, 05 Nov 2010)
New Revision: 19950
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml
Log:
* calendar sample fixed because attributes were renamed (RF-9615)
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml 2010-11-05 12:15:35 UTC (rev 19949)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml 2010-11-05 12:53:47 UTC (rev 19950)
@@ -83,7 +83,7 @@
dayStyleClass="#{richCalendarBean.attributes['dayStyleClass'].value}"
defaultTime="#{richCalendarBean.attributes['defaultTime'].value}"
- disable="#{richCalendarBean.attributes['disable'].value}"
+ disabled="#{richCalendarBean.attributes['disabled'].value}"
enableManualInput="#{richCalendarBean.attributes['enableManualInput'].value}"
firstWeekDay="#{richCalendarBean.attributes['firstWeekDay'].value}"
hidePopupOnScroll="#{richCalendarBean.attributes['hidePopupOnScroll'].value}"
14 years, 2 months
JBoss Rich Faces SVN: r19949 - trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-11-05 08:15:35 -0400 (Fri, 05 Nov 2010)
New Revision: 19949
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar-utils.js
Log:
http://jira.jboss.com/jira/browse/RF-9651
also fixed wrong week number calculation
Modified: trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar-utils.js
===================================================================
--- trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar-utils.js 2010-11-05 11:57:37 UTC (rev 19948)
+++ trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/calendar-utils.js 2010-11-05 12:15:35 UTC (rev 19949)
@@ -267,10 +267,10 @@
getLastWeekOfPrevYear: function(o) {
var year = o.date.getFullYear()-1;
- var days = (isLeapYear(year) ? 366 : 365);
+ var days = (this.isLeapYear(year) ? 366 : 365);
var obj = this.getFirstWeek(year, o.mdifw, o.fdow);
days = (days - 7 + o.firstDay);
- var weeks = Math.floor(days/7)+1;
+ var weeks = Math.ceil(days/7);
return weeks+obj.weekNumber;
},
@@ -282,7 +282,7 @@
if (month==0)
{
if (o.weekNumber==1) return 1;
- return getLastWeekOfPrevYear(o);
+ return this.getLastWeekOfPrevYear(o);
}
var oneweek = 604800000;
var d = new Date(year, month,1);
14 years, 2 months
JBoss Rich Faces SVN: r19948 - in modules/tests/metamer/trunk/application/src/main/webapp/components: richCalendar and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-11-05 07:57:37 -0400 (Fri, 05 Nov 2010)
New Revision: 19948
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml
Log:
https://jira.jboss.org/browse/RF-9178
* added a4j:ajax to calendar
* calendar added to h:dataTable, rich:dataTable, rich:extendedDataTable and rich:subTable
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml 2010-11-05 11:57:37 UTC (rev 19948)
@@ -147,7 +147,10 @@
<h:outputText id="columnHeaderBirthdateComponent" value="rich:calendar" />
</f:facet>
- <h:outputText value="#{record.birthdate}" />
+ <rich:calendar id="birthdate" value="#{record.birthdate}">
+ <a4j:ajax event="inputchange" render="@this"/>
+ </rich:calendar>
+
<f:facet name="footer">
<h:outputText id="columnFooterBirthdate" value="Birthdate" />
</f:facet>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richCalendar/simple.xhtml 2010-11-05 11:57:37 UTC (rev 19948)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!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: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:metamer="http://java.sun.com/jsf/composite/metamer" xmlns:rich="http://richfaces.org/rich"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html">
<!--
JBoss, Home of Professional Open Source
@@ -131,11 +132,15 @@
weekDayLabels="#{richCalendarBean.attributes['weekDayLabels'].value}"
weekDayLabelsShort="#{richCalendarBean.attributes['weekDayLabelsShort'].value}"
zindex="#{richCalendarBean.attributes['zindex'].value}"
- />
+ >
+ <a4j:ajax event="inputchange" render="output"/>
+ </rich:calendar>
</div>
<br/><br/>
+ output: <h:outputText id="output" value="#{richCalendarBean.attributes['value'].value}"/>
+
</ui:define>
<ui:define name="outOfTemplateAfter">
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml 2010-11-05 11:57:37 UTC (rev 19948)
@@ -137,7 +137,10 @@
<h:outputText id="columnHeaderBirthdateComponent" value="rich:calendar" />
</f:facet>
- <h:outputText value="#{record.birthdate}" />
+ <rich:calendar id="birthdate" value="#{record.birthdate}">
+ <a4j:ajax event="inputchange" render="@this"/>
+ </rich:calendar>
+
<f:facet name="footer">
<h:outputText id="columnFooterBirthdate" value="Birthdate" />
</f:facet>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml 2010-11-05 11:57:37 UTC (rev 19948)
@@ -41,7 +41,7 @@
}
.rf-edt {
- width: 970px !important;
+ width: 990px !important;
height: 400px !important;
}
@@ -64,7 +64,7 @@
.rf-edt-c-columnBirthdate {
text-align: center;
- width: 150px !important;
+ width: 170px !important;
}
.rf-edt-c-columnCompanies {
@@ -185,7 +185,10 @@
<h:outputText id="columnHeaderBirthdateComponent" value="rich:calendar" />
</f:facet>
- <h:outputText value="#{record.birthdate}" />
+ <rich:calendar id="birthdate" value="#{record.birthdate}">
+ <a4j:ajax event="inputchange" render="@this"/>
+ </rich:calendar>
+
<f:facet name="footer">
<h:outputText id="columnFooterBirthdate" value="Birthdate" />
</f:facet>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml 2010-11-05 11:57:37 UTC (rev 19948)
@@ -128,7 +128,9 @@
</rich:inplaceSelect>
</rich:column>
<rich:column id="columnBirthdate">
- <h:outputText value="#{item.birthdate}" />
+ <rich:calendar id="birthdate" value="#{item.birthdate}">
+ <a4j:ajax event="inputchange" render="@this"/>
+ </rich:calendar>
</rich:column>
<rich:column id="columnCompanies">
<ul>
14 years, 2 months
JBoss Rich Faces SVN: r19947 - in trunk/examples/richfaces-showcase/src/main: webapp/richfaces and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-11-05 07:55:06 -0400 (Fri, 05 Nov 2010)
New Revision: 19947
Added:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/ajaxValidation.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/samples/
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/samples/ajaxValidation-sample.xhtml
Modified:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/accordion/samples/simple-sample.xhtml
Log:
accordion switchtype changed to client for better performance of simple sample
Added: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/validation/ValidationBean.java 2010-11-05 11:55:06 UTC (rev 19947)
@@ -0,0 +1,88 @@
+/**
+ *
+ */
+package org.richfaces.demo.validation;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.RequestScoped;
+import javax.validation.constraints.Max;
+import javax.validation.constraints.Min;
+import javax.validation.constraints.NotNull;
+import javax.validation.groups.Default;
+
+import org.hibernate.validator.constraints.Email;
+import org.hibernate.validator.constraints.Length;
+import org.hibernate.validator.constraints.NotEmpty;
+
+/**
+ * @author Ilya Shaikovsky
+ *
+ */
+@ManagedBean
+@RequestScoped
+public class ValidationBean {
+ private static final Class<?>[] DEFAULT_GROUP = { Default.class };
+ private String progressString = "Fill the form please";
+
+ // @NotEmpty
+ // @Pattern(regexp=".*[^\\s].*", message="This string contain only spaces")
+ @Length(min = 3, max = 12)
+ private String name;
+ @Email
+ @NotEmpty
+ private String email;
+
+ @NotNull
+ @Min(18)
+ @Max(100)
+ private Integer age;
+
+ public List<String> getRender() {
+ List<String> res = new ArrayList<String>();
+ res.add("msg");
+ return res;
+ }
+
+ public Class[] getGroups() {
+ return DEFAULT_GROUP;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public Integer getAge() {
+ return age;
+ }
+
+ public void setAge(Integer age) {
+ this.age = age;
+ }
+
+ public void success() {
+ setProgressString(getProgressString() + "(Strored successfully)");
+ }
+
+ public String getProgressString() {
+ return progressString;
+ }
+
+ public void setProgressString(String progressString) {
+ this.progressString = progressString;
+ }
+}
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/accordion/samples/simple-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/accordion/samples/simple-sample.xhtml 2010-11-05 11:46:40 UTC (rev 19946)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/accordion/samples/simple-sample.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
@@ -14,7 +14,7 @@
}
</style>
<h:form>
- <rich:accordion>
+ <rich:accordion switchType="client">
<rich:accordionItem header="Overview:">
<h:graphicImage value="/images/icons/common/rf.png"
style="float:right" />
Added: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/ajaxValidation.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/ajaxValidation.xhtml (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/ajaxValidation.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
@@ -0,0 +1,19 @@
+<!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">
+
+<ui:composition>
+ <p>DESC</p>
+
+ <ui:include src="#{demoNavigator.sampleIncludeURI}" />
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />
+ <ui:param name="sourceType" value="xhtml" />
+ <ui:param name="openLabel" value="View Source" />
+ <ui:param name="hideLabel" value="Hide Source" />
+ </ui:include>
+</ui:composition>
+
+</html>
\ No newline at end of file
Added: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/samples/ajaxValidation-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/samples/ajaxValidation-sample.xhtml (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/clientValidation/samples/ajaxValidation-sample.xhtml 2010-11-05 11:55:06 UTC (rev 19947)
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition 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:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+ <h:form id="clientValidatorForm2">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:messages id="msg"/>
+ </a4j:outputPanel>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="User Info:" />
+ </f:facet>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{validationBean.name}" id="name" required="true" >
+ <rich:validator groups="#{validationBean.groups}" render="#{validationBean.render}"/>
+ </h:inputText>
+
+ </h:panelGrid>
+ </rich:panel>
+ </h:form>
+ <a4j:commandButton></a4j:commandButton>
+</ui:composition>
\ No newline at end of file
14 years, 2 months
JBoss Rich Faces SVN: r19946 - in trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree: model and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-11-05 07:46:40 -0400 (Fri, 05 Nov 2010)
New Revision: 19946
Modified:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/model/NamedNode.java
Log:
https://jira.jboss.org/browse/RF-9656
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java 2010-11-05 11:39:02 UTC (rev 19945)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/TreeBean.java 2010-11-05 11:46:40 UTC (rev 19946)
@@ -28,9 +28,9 @@
import java.util.Map;
import javax.annotation.PostConstruct;
+import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
-import javax.faces.bean.SessionScoped;
import javax.swing.tree.TreeNode;
import org.richfaces.demo.tree.model.CD;
@@ -43,7 +43,7 @@
*
*/
@ManagedBean
-@SessionScoped
+@ApplicationScoped
public class TreeBean implements Serializable {
@ManagedProperty(value = "#{cdsParser.cdsList}")
private List<CDXmlDescriptor> cdXmlDescriptors;
Modified: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/model/NamedNode.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/model/NamedNode.java 2010-11-05 11:39:02 UTC (rev 19945)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/tree/model/NamedNode.java 2010-11-05 11:46:40 UTC (rev 19946)
@@ -1,6 +1,8 @@
package org.richfaces.demo.tree.model;
-public class NamedNode {
+import java.io.Serializable;
+
+public class NamedNode implements Serializable{
private String type;
public String getType() {
14 years, 2 months
JBoss Rich Faces SVN: r19945 - trunk/ui/input/ui/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2010-11-05 07:39:02 -0400 (Fri, 05 Nov 2010)
New Revision: 19945
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
https://jira.jboss.org/browse/RF-9662
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2010-11-05 00:09:58 UTC (rev 19944)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2010-11-05 11:39:02 UTC (rev 19945)
@@ -288,7 +288,7 @@
}
public String getButtonIcon(FacesContext facesContext, UIComponent component) {
- boolean disable = (Boolean)component.getAttributes().get("disable");
+ boolean disable = (Boolean)component.getAttributes().get("disabled");
String buttonIcon = (String)component.getAttributes().get("buttonIcon");
if(disable) {
buttonIcon = (String)component.getAttributes().get("buttonIconDisabled");
14 years, 2 months