JBoss Rich Faces SVN: r13346 - trunk/test-applications/jsp/src/main/webapp/Validator.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2009-04-01 12:20:07 -0400 (Wed, 01 Apr 2009)
New Revision: 13346
Modified:
trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp
Log:
+new features like type... commited
Modified: trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2009-04-01 15:49:49 UTC (rev 13345)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/Validator.jsp 2009-04-01 16:20:07 UTC (rev 13346)
@@ -3,85 +3,85 @@
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="validatorSubviewID">
-
- <rich:panel>
+
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText>Single input field with label and message. Validated by AJAX on every changing.</h:outputText>
+ </f:facet>
+ <h:outputLabel for="ltext" value="#{lengthBean.textDescription}" />
+ <h:inputText id="ltext" value="#{lengthBean.text}">
+ <rich:ajaxValidator event="onchange" />
+ </h:inputText>
+ </rich:panel>
+ <h2>Input fields with label and message in the JSF dataTable. Each
+ field validated by AJAX on "onchange" event</h2>
+ <rich:graphValidator value="#{dataValidator}" id="graphValidatorID"
+ binding="#{dataValidator.graphValidatorComponent}" summary="#{dataValidator.summary}"
+ type="customGraphValidator">
+ <rich:dataTable value="#{dataValidator.beans}" var="dataBean"
+ id="table">
<f:facet name="header">
- <h:outputText>Single input field with label and message. Validated by AJAX on every changing.</h:outputText>
+ <h:outputText
+ value="Validate values in the data table. Total sum for an all integer values validated for a value less then 20" />
</f:facet>
- <h:outputLabel for="ltext" value="#{lengthBean.textDescription}" />
- <h:inputText id="ltext" value="#{lengthBean.text}">
- <rich:ajaxValidator event="onchange" />
- </h:inputText>
- <rich:message for="ltext" showDetail="true" showSummary="true" />
- </rich:panel>
- <a4j:region>
- <h2>Input fields with label and message in the JSF dataTable.
- Each field validated by AJAX on "onchange" event</h2>
- <rich:graphValidator value="#{dataValidator}"
- binding="#{dataValidator.graphValidatorComponent}" id="graphValidatorID"
- rendered="#{dataValidator.rendered}">
- <rich:dataTable value="#{dataValidator.beans}" var="dataBean" id="table">
+
+ <h:column>
<f:facet name="header">
- <h:outputText
- value="Validate values in the data table. Total sum for an all integer values validated for a value less then 20" />
+ <h:outputText value="text field" />
</f:facet>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="text field" />
- </f:facet>
- <h:outputLabel for="text" value="#{dataBean.textDescription}" />
- <h:inputText id="text" value="#{dataBean.text}">
- <rich:ajaxValidator event="onchange" />
- </h:inputText>
- </h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="integer field" />
- </f:facet>
- <h:outputLabel for="intValue" value="#{dataBean.intDescription}" />
- <h:inputText id="intValue" value="#{dataBean.intValue}">
- <rich:ajaxValidator event="onchange" />
- </h:inputText>
- <rich:message for="intValue" showDetail="true" showSummary="true" />
- </h:column>
- <f:facet name="footer">
- <h:panelGroup>
- <h:outputText>in addition to fields validation, total sum for an all integer values validated for a value less then 20.</h:outputText>
- <a4j:commandButton value="Submit all fields"></a4j:commandButton>
- </h:panelGroup>
+ <h:outputLabel for="text" value="#{dataBean.textDescription}" />
+ <h:inputText id="text" value="#{dataBean.text}">
+ <rich:ajaxValidator event="onchange" />
+ </h:inputText>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="integer field" />
</f:facet>
- </rich:dataTable>
- </rich:graphValidator>
- </a4j:region>
+ <h:outputLabel for="intValue" value="#{dataBean.intDescription}" />
+ <h:inputText id="intValue" value="#{dataBean.intValue}">
+ <rich:ajaxValidator event="onchange" />
+ </h:inputText>
+ </h:column>
+ <f:facet name="footer">
+ <h:panelGroup>
+ <h:outputText>in addition to fields validation, total sum for an all integer values validated for a value less then 20.</h:outputText>
+ <a4j:commandButton value="Submit all fields"></a4j:commandButton>
+ </h:panelGroup>
+ </f:facet>
+ </rich:dataTable>
+ </rich:graphValidator>
<br />
- <%--<rich:graphValidator value="#{graphValidator}">--%>
+ <%--rich:graphValidator value="#{graphValidator}"--%>
<h:panelGrid columns="2" border="2" id="panelGridID">
<f:facet name="header">
<h:outputText value="Ajax Validator test" />
</f:facet>
- <h:outputLabel for="mailValue" value="Mail validation:" />
+ <h:outputLabel for="mailValue" value="Mail validation*:" />
<h:panelGroup>
<h:inputText value="#{validator.text}" id="mailValue">
<rich:ajaxValidator binding="#{validator.ajaxValidatorComponent}"
data="{param1:'param1',param2:'param2'}"
- disableDefault="#{validator.disableDefault}" event="onchange"
+ disableDefault="#{validator.disableDefault}" event="onblur"
eventsQueue="#{validator.eventsQueue}" focus="mailValue"
id="ajaxValidatorID"
- ignoreDupResponses="#{validator.ignoreDupResponses}"
+ ignoreDupResponses="#{validator.ignoreDupResponses}"
limitToList="#{validator.limitToList}"
onbeforedomupdate="#{event.onbeforedomupdate}"
- oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
- rendered="#{validator.rendered}"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ rendered="#{validator.rendered}"
requestDelay="#{validator.requestDelay}"
reRender="mailValue,booleanValue,assertTrue,eanValue,creditValue"
- status="mailValue"
- ajaxListener="#{validator.processAjax}"></rich:ajaxValidator>
+ status="mailValue" ajaxListener="#{validator.processAjax}"
+ summary="#{validator.summary}" timeout="#{validator.timeout}">
+ <a4j:support event="onblur" reRender="hiddenField" action="#"></a4j:support>
+ </rich:ajaxValidator>
</h:inputText>
<rich:message for="mailValue" showDetail="true" showSummary="true" />
+ <h:inputHidden value="#{validator.temp}" id="hiddenField"/>
</h:panelGroup>
<h:outputLabel for="booleanValue" value="AssertFalse validation:" />
@@ -94,7 +94,7 @@
</h:panelGroup>
<h:outputLabel for="assertTrue" value="AssertTrue validation:" />
- <h:panelGroup>
+ <h:panelGroup>
<h:selectBooleanCheckbox value="#{validator.assertTrue}"
id="assertTrue">
<rich:ajaxValidator event="onchange"></rich:ajaxValidator>
@@ -102,7 +102,7 @@
<rich:message for="assertTrue" showDetail="true" showSummary="true" />
</h:panelGroup>
- <h:outputLabel for="dateValue" value="Future validation:" />
+ <h:outputLabel for="dateValue" value="Future validation*:" />
<h:panelGroup>
<h:inputText value="#{validator.dateValue}" id="dateValue"
converter="dateValueConverter">
@@ -164,11 +164,12 @@
<a4j:commandButton value="validate all fields" reRender="panelGridID"></a4j:commandButton>
<f:facet name="footer">
- <h:outputText value="...together with graphValidator" />
+ <h:outputText
+ value="*-total length > 20,but < 50 (graphValidator test)" />
</f:facet>
</h:panelGrid>
- <%--</rich:graphValidator>--%>
+ <%--/rich:graphValidator--%>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp 2009-04-01 15:49:49 UTC (rev 13345)
+++ trunk/test-applications/jsp/src/main/webapp/Validator/ValidatorProperty.jsp 2009-04-01 16:20:07 UTC (rev 13346)
@@ -3,16 +3,20 @@
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="validatorPropertySubviewID">
- <a4j:commandButton value="add(ajaxValidator) test" action="#{validator.add}"></a4j:commandButton>
+ <a4j:commandButton value="add(ajaxValidator) test"
+ action="#{validator.add}"></a4j:commandButton>
- <a4j:commandButton value="add(graphValidator) test" action="#{dataValidator.add}"></a4j:commandButton>
+ <a4j:commandButton value="add(graphValidator) test"
+ action="#{dataValidator.add}"></a4j:commandButton>
<br />
<br />
<h:panelGrid columns="2" style="display:block; vertical-align:top;">
- <h:outputText value="Ajax Validator test" style="align:center; font-weight:bold;"/>
- <h:outputText value="Graph Validator test" style="align:center; font-weight:bold;"/>
- <h:panelGrid columns="2" border="2">
-
+ <h:outputText value="Ajax Validator test"
+ style="align:center; font-weight:bold;" />
+ <h:outputText value="Graph Validator test"
+ style="align:center; font-weight:bold;" />
+ <h:panelGrid columns="2" border="2">
+
<h:outputText value="ajaxSingle" />
<h:selectBooleanCheckbox value="#{validator.ajaxSingle}"
onchange="submit();" />
@@ -59,6 +63,11 @@
<h:selectBooleanCheckbox value="#{validator.submitted}"
onchange="submit();" />
+ <h:outputText value="summary" />
+ <h:inputText value="#{validator.summary}">
+ <a4j:support event="onchange" reRender="ajaxValidatorID"></a4j:support>
+ </h:inputText>
+
<h:outputText value="timeout" />
<h:inputText value="#{validator.timeout}">
<a4j:support event="onchange" reRender="ajaxValidatorID"></a4j:support>
@@ -71,11 +80,11 @@
value="Binding" />
<h:outputText value="#{dataValidator.bindLabel}" />
- <h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{dataValidator.rendered}"
- onchange="submit();" />
+ <h:outputText value="summary" />
+ <h:inputText value="#{dataValidator.summary}">
+ <a4j:support event="onchange" reRender="graphValidatorID"></a4j:support>
+ </h:inputText>
</h:panelGrid>
-
</h:panelGrid>
</f:subview>
\ No newline at end of file
15 years, 8 months
JBoss Rich Faces SVN: r13345 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-04-01 11:49:49 -0400 (Wed, 01 Apr 2009)
New Revision: 13345
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java 2009-04-01 15:49:22 UTC (rev 13344)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DataScrollerTest.java 2009-04-01 15:49:49 UTC (rev 13345)
@@ -657,8 +657,8 @@
}
@Override
- public String getTestDependedTemplates() {
- return "simple,modal_panel";
+ public Object [][] getTestDependedTemplates() {
+ return new Object [][] { { Template.SIMPLE }, { Template.MODAL_PANEL } };
}
@Override
15 years, 8 months
JBoss Rich Faces SVN: r13344 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-04-01 11:49:22 -0400 (Wed, 01 Apr 2009)
New Revision: 13344
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2009-04-01 15:26:59 UTC (rev 13343)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2009-04-01 15:49:22 UTC (rev 13344)
@@ -135,8 +135,8 @@
@DataProvider(name = "templates")
protected Object[][] templates() {
//return new Object[][] { { Template.SIMPLE }, { Template.DATA_TABLE }, { Template.DATA_TABLE2 }, { Template.MODAL_PANEL } };
- return Configurator.getTemplates();
- //return this.data;
+
+ return !useDefaultTemplates() ? getTestDependedTemplates() : Configurator.getTemplates();
}
/**
@@ -152,12 +152,7 @@
}
}
- if(!useDefaultTemplates()) {
- String processTemplates = getTestDependedTemplates();
- Configurator.setTemplates(processTemplates);
- }
-
- synchronized (MUTEX) {
+ synchronized (MUTEX) {
this.filterPrefix = filterPrefix;
selenium = createSeleniumClient(protocol + "://" + host + ":" + port + "/", browser);
setFileExtensionContent();
@@ -236,7 +231,7 @@
* override this methods if you want use set custom templates per test class
*
*/
- protected String getTestDependedTemplates() {
+ protected Object [][] getTestDependedTemplates() {
return null;
}
15 years, 8 months
JBoss Rich Faces SVN: r13343 - trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2009-04-01 11:26:59 -0400 (Wed, 01 Apr 2009)
New Revision: 13343
Modified:
trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
Log:
https://jira.exadel.com/browse/SC-449
https://jira.jboss.org/jira/browse/RF-6672
Modified: trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js
===================================================================
--- trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2009-04-01 13:53:35 UTC (rev 13342)
+++ trunk/ui/menu-components/src/main/resources/org/richfaces/renderkit/html/scripts/menu.js 2009-04-01 15:26:59 UTC (rev 13343)
@@ -27,7 +27,6 @@
return e;
}
-
RichFaces.Menu.Layers = {
listl: new Array(),
father: {},
@@ -75,6 +74,23 @@
showTimeoutLength: 0,
queuedId : '',
+ destroy: function () {
+ this.listl = null;
+ this.father = null;
+ var obj;
+ for (var name in this.layers) {
+ obj = this.layers[name];
+ obj.layer = null;
+ obj.items = null;
+ $A(obj.bindings)
+ .each(
+ function(binding){
+ binding.remove();
+ }
+ );
+ }
+ this.layers = null;
+ },
LMPopUp:function(menuName, isCurrent, event) {
if (!this.loaded || ( this.isVisible(menuName) && !isCurrent)) {
@@ -86,7 +102,7 @@
this.LMPopUpL(menuName, true, event);
} else {
//this.shutdown();
- foobar = menuName;
+ var foobar = menuName; //PY: var added
do {
this.LMPopUpL(foobar, true, event);
foobar = this.father[foobar];
@@ -287,6 +303,13 @@
}
};
+if (window.attachEvent) {
+ window.attachEvent("onunload", function() {
+ var layers = RichFaces.Menu.Layers;
+ layers.destroy();
+ });
+}
+
/**
* return true if defined document element or document body, otherwise return false
*/
@@ -844,7 +867,7 @@
this.bindings.push(binding);
binding.refresh();
- arrayinp=$A(this.layer.getElementsByTagName("select"));
+ var arrayinp=$A(this.layer.getElementsByTagName("select")); // PY: var added
for(i=0; i<arrayinp.length; i++){
var openSelectb = this.openSelect.bindAsEventListener(this);
var closeSelectb = this.closeSelect.bindAsEventListener(this);
@@ -1264,6 +1287,13 @@
return true;
}
return false;
+ },
+ remove:function(){
+ var obj = $(this.objectId);
+ if (obj) {
+ Event.stopObserving(obj, this.eventname, this.handler);
+ this.handler=null;
+ }
}
};
RichFaces.Menu.Items = {
15 years, 8 months
JBoss Rich Faces SVN: r13342 - trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2009-04-01 09:53:35 -0400 (Wed, 01 Apr 2009)
New Revision: 13342
Added:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ActionTools.java
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ShelfAction.java
Log:
Add recently date
Added: trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ActionTools.java
===================================================================
--- trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ActionTools.java (rev 0)
+++ trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ActionTools.java 2009-04-01 13:53:35 UTC (rev 13342)
@@ -0,0 +1,18 @@
+package org.richfaces.realworld.service;
+
+import java.util.Date;
+import java.util.Calendar;
+
+/**
+ * @user: akolonitsky
+ * Date: Apr 1, 2009
+ */
+public class ActionTools {
+ private static final int RECENTLY_DAYS = 15;
+
+ public static Date getRecentlyDate() {
+ final Calendar calendar = Calendar.getInstance();
+ calendar.add(Calendar.DAY_OF_YEAR, -RECENTLY_DAYS);
+ return calendar.getTime();
+ }
+}
Modified: trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ShelfAction.java
===================================================================
--- trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ShelfAction.java 2009-04-01 13:48:25 UTC (rev 13341)
+++ trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ShelfAction.java 2009-04-01 13:53:35 UTC (rev 13342)
@@ -26,9 +26,11 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
+import java.util.Collection;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
+import javax.persistence.Query;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.In;
@@ -43,55 +45,50 @@
@AutoCreate
public class ShelfAction implements IShelfAction {
- @In(value="entityManager")
- EntityManager em;
- @In FlushStrategy flushStrategy;
- @In @Out
+ @In(value = "entityManager")
+ private EntityManager em;
+
+ @In
+ private FlushStrategy flushStrategy;
+
+ @In
+ @Out
private User user;
public void addShelf(Shelf shelf) {
em.persist(shelf);
user.addShelf(shelf);
- if(flushStrategy.isDatabaseStoreStrategy()){
+ if (flushStrategy.isDatabaseStoreStrategy()) {
em.flush();
}
}
-
- public void deleteShelf(Shelf shelf){
+
+ public void deleteShelf(Shelf shelf) {
user.removeShelf(shelf);
em.remove(shelf);
- if(flushStrategy.isDatabaseStoreStrategy()){
+ if (flushStrategy.isDatabaseStoreStrategy()) {
em.flush();
}
}
-
- public void editShelf(Shelf shelf){
- if(flushStrategy.isDatabaseStoreStrategy()){
+
+ public void editShelf(Shelf shelf) {
+ if (flushStrategy.isDatabaseStoreStrategy()) {
em.flush();
}
}
-
+
public List<Shelf> getShelfs(User user) {
- //TODO nick - preserve shelves ordering? Maybe use TreeSet with Comparator?
- Set<Shelf> sh = new HashSet<Shelf>();
- List<Shelf> shelfs = em.createQuery("from Shelf s where s.shared=true")
- .getResultList();
- sh.addAll(shelfs);
- sh.addAll(user.getShelfs());
- shelfs.clear();
- shelfs.addAll(sh);
- return shelfs;
+ final Query query = em.createQuery(
+ "select distinct s from Shelf s where s.shared = true or s.owner = :user order by s.name");
+ query.setParameter("user", user.getId() == null ? null : user);
+
+ return query.getResultList();
}
- public List<Image> getUnvisitedImages(Shelf shelf){
+ public List<Image> getUnvisitedImages(Shelf shelf) {
//TODO nick - use data from user
- return (List<Image>)em.createQuery("from Image i where i.album.shelf=:shelf and i.uploaded > :date").setParameter("shelf", shelf).setParameter("date", getDate()).getResultList();
+ return (List<Image>) em.createQuery("from Image i where i.album.shelf = :shelf and i.uploaded > :date")
+ .setParameter("shelf", shelf)
+ .setParameter("date", ActionTools.getRecentlyDate()).getResultList();
}
-
- private Date getDate() {
- //TODO nick - copy-pasted from AlbumAction, see TODOs there
- Calendar c = Calendar.getInstance();
- c.add(Calendar.DAY_OF_YEAR, -15);
- return c.getTime();
- }
-}
+}
\ No newline at end of file
15 years, 8 months
JBoss Rich Faces SVN: r13341 - trunk/test-applications/richfaces-docs/web.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-01 09:48:25 -0400 (Wed, 01 Apr 2009)
New Revision: 13341
Modified:
trunk/test-applications/richfaces-docs/web/pom.xml
Log:
https://jira.jboss.org/jira/browse/RF-6593
files layout components
Modified: trunk/test-applications/richfaces-docs/web/pom.xml
===================================================================
--- trunk/test-applications/richfaces-docs/web/pom.xml 2009-04-01 13:47:48 UTC (rev 13340)
+++ trunk/test-applications/richfaces-docs/web/pom.xml 2009-04-01 13:48:25 UTC (rev 13341)
@@ -34,14 +34,15 @@
- <dependency>
-<groupId>javax.annotation</groupId>
-<artifactId>jsr250-api</artifactId>
-<version>1.0</version>
-</dependency>
+ <dependency>
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ <version>1.0</version>
+ <scope>compile</scope>
+ </dependency>
+
-
<dependency>
<groupId>org.richfaces.ui</groupId>
15 years, 8 months
JBoss Rich Faces SVN: r13340 - trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/fileUpload.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-01 09:47:48 -0400 (Wed, 01 Apr 2009)
New Revision: 13340
Modified:
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/fileUpload/FileUpload.java
Log:
https://jira.jboss.org/jira/browse/RF-6593
files layout components
Modified: trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/fileUpload/FileUpload.java
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/fileUpload/FileUpload.java 2009-04-01 13:47:19 UTC (rev 13339)
+++ trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/fileUpload/FileUpload.java 2009-04-01 13:47:48 UTC (rev 13340)
@@ -17,6 +17,8 @@
public class FileUpload {
+
+ String pathToImage = ".."+File.separator+"";
private List data;
15 years, 8 months
JBoss Rich Faces SVN: r13339 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-01 09:47:19 -0400 (Wed, 01 Apr 2009)
New Revision: 13339
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/richPage.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6593
files layout components
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/richPage.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/richPage.xhtml 2009-04-01 13:47:02 UTC (rev 13338)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/richPage.xhtml 2009-04-01 13:47:19 UTC (rev 13339)
@@ -6,7 +6,7 @@
<rich:page sidebarPosition="left" sidebarWidth="300"
- theme="" title="advisory" contentType="text/html; charset=UTF-8" >
+ theme="simple" title="advisory" pageTitle="Gleb is back" contentType="text/html; charset=UTF-8" >
<f:facet name="pageHeader" >
<title>Page Title 2</title>
15 years, 8 months
JBoss Rich Faces SVN: r13338 - trunk/test-applications/richfaces-docs/web/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2009-04-01 09:47:02 -0400 (Wed, 01 Apr 2009)
New Revision: 13338
Modified:
trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6593
files layout components
Modified: trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml 2009-04-01 10:54:21 UTC (rev 13337)
+++ trunk/test-applications/richfaces-docs/web/src/main/webapp/layout.xhtml 2009-04-01 13:47:02 UTC (rev 13338)
@@ -18,29 +18,37 @@
<rich:panel>
<f:facet name="header">Layout Components: rich:layout and rich:layoutPanel </f:facet>
-
+
+<h3>Listing 1: top, left, center, right, bottom</h3>
- <rich:layout>
+<rich:layout>
+ <rich:layoutPanel position="top">
+ <!--top-->
+ </rich:layoutPanel>
+ <rich:layoutPanel position="left">
+ <!--left-->
+ </rich:layoutPanel>
+ <rich:layoutPanel position="center">
+ <!--center-->
+ </rich:layoutPanel>
<rich:layoutPanel position="right">
- <p>right</p>
- <rich:layout>
-
- <rich:layoutPanel position="top">
- <p>top</p>
- </rich:layoutPanel>
- <rich:layoutPanel position="center">
- <p> center - bottom</p>
- </rich:layoutPanel>
- </rich:layout>
- </rich:layoutPanel>
-
- <rich:layoutPanel position="center">
- <p> center-left</p>
- </rich:layoutPanel>
- </rich:layout>
-
+ <!--right-->
+ </rich:layoutPanel>
+ <rich:layoutPanel position="bottom">
+ <!--bottom-->
+</rich:layoutPanel>
+</rich:layout>
+ <h3>Listing 1: top, left, center, right, bottom</h3>
+<rich:layout>
+
+ <rich:layoutPanel position="center">
+ <!--center-->
+</rich:layoutPanel>
+
+
+</rich:layout>
<table class="tableofattributes" cellpadding="0" cellspacing="0">
15 years, 8 months
JBoss Rich Faces SVN: r13337 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2009-04-01 06:54:21 -0400 (Wed, 01 Apr 2009)
New Revision: 13337
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
Log:
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-04-01 10:49:16 UTC (rev 13336)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/CalendarTest.java 2009-04-01 10:54:21 UTC (rev 13337)
@@ -334,6 +334,7 @@
selenium.click("//td[@id='" + calendarHeaderId + "']/table/tbody/tr/td[@class='rich-calendar-tool'][3]/div");
Assert.assertFalse(getCalendarDate().equals(date), "Current date has not been changed after next month clicked");
c.set(Calendar.MONTH, c.get(Calendar.MONTH) + 1);
+ c.set(Calendar.DATE, 1);
return c;
}
@@ -342,6 +343,7 @@
selenium.click("//td[@id='" + calendarHeaderId + "']/table/tbody/tr/td[@class='rich-calendar-tool'][2]/div");
Assert.assertFalse(getCalendarDate().equals(date), "Current date has not been changed after previous month clicked");
c.set(Calendar.MONTH, c.get(Calendar.MONTH) - 1);
+ c.set(Calendar.DATE, 1);
return c;
}
15 years, 8 months