JBoss Rich Faces SVN: r10654 - trunk/test-applications/jsp/src/main/webapp/DataTable.
by richfaces-svn-commits@lists.jboss.org
Author: tromanovich
Date: 2008-10-03 05:00:29 -0400 (Fri, 03 Oct 2008)
New Revision: 10654
Modified:
trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp 2008-10-03 08:55:47 UTC (rev 10653)
+++ trunk/test-applications/jsp/src/main/webapp/DataTable/DataTable.jsp 2008-10-03 09:00:29 UTC (rev 10654)
@@ -106,6 +106,7 @@
</rich:tree>
<div>column with the 1st tree</div>
</rich:column>
+ <rich:column></rich:column>
<rich:subTable id="detail" var="detail" value="#{dataTableID.detail}" rowKeyVar="subRowKey"
columnClasses="#{style.columnClassesA}" footerClass="#{style.footerClassA}" headerClass="#{style.headerClassA}" rowClasses="#{style.rowClassesA}" onclick="#{event.onclick}"
ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
16 years, 1 month
JBoss Rich Faces SVN: r10653 - trunk/test-applications/jsp/src/main/webapp/Calendar.
by richfaces-svn-commits@lists.jboss.org
Author: tromanovich
Date: 2008-10-03 04:55:47 -0400 (Fri, 03 Oct 2008)
New Revision: 10653
Modified:
trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-10-02 17:06:16 UTC (rev 10652)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-10-03 08:55:47 UTC (rev 10653)
@@ -37,10 +37,6 @@
<h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}"
onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="showScrollerBar: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showScrollerBar}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
<h:outputText value="showWeeksBar: "></h:outputText>
<h:selectBooleanCheckbox value="#{calendarBean.showWeeksBar}"
onchange="submit();"></h:selectBooleanCheckbox>
16 years, 1 month
JBoss Rich Faces SVN: r10652 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/ajaxStatus and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-10-02 13:06:16 -0400 (Thu, 02 Oct 2008)
New Revision: 10652
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/layout/layout.xhtml
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
Log:
AjaxStatus: test onstart/onstop events firing
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/layout/layout.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
===================================================================
(Binary files differ)
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 2008-10-02 15:39:52 UTC (rev 10651)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-10-02 17:06:16 UTC (rev 10652)
@@ -960,5 +960,18 @@
}
}
}
-
+
+ public void assertEvents(List<String> eventsExpected) {
+ StringBuilder sb = new StringBuilder();
+ String delim = "";
+ for (String event : eventsExpected) {
+ sb.append(delim).append("'").append(event).append("'");
+ delim = ",";
+ }
+ String json = "[" + sb.toString() + "]";
+ String message = runScript("EventQueue.assert(eval(\"" + json + "\"))");
+ if (null != message && message.length() > 0) {
+ Assert.fail(message);
+ }
+ }
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-02 15:39:52 UTC (rev 10651)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-02 17:06:16 UTC (rev 10652)
@@ -1,5 +1,8 @@
package org.richfaces.testng;
+import java.util.ArrayList;
+import java.util.List;
+
import org.ajax4jsf.template.Template;
import org.richfaces.SeleniumTestBase;
import org.testng.Assert;
@@ -116,6 +119,26 @@
assertClassNames(stopFacetId, new String[] {"stop-class"}, "Class attribute was not output to client for stop facet", true);
}
+ @Test
+ public void testOnstartOnstopEventsFired(Template template) {
+ renderPage(template);
+
+ writeStatus("Check onstart/onstop events are fired ");
+
+ List<String> eventsExpected = new ArrayList<String>();
+ assertEvents(eventsExpected);
+
+ clickById(getParentId() + "_form:" + BTN_1_ID);
+
+ eventsExpected.add("onstart");
+ assertEvents(eventsExpected);
+
+ delay(3000);
+
+ eventsExpected.add("onstop");
+ assertEvents(eventsExpected);
+ }
+
public String getTestUrl() {
return "pages/ajaxStatus/ajaxStatusTest.xhtml";
}
16 years, 1 month
JBoss Rich Faces SVN: r10650 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/modalPanel and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-10-02 10:55:50 -0400 (Thu, 02 Oct 2008)
New Revision: 10650
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/ModalPanelTestBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/modalPanel/modalPanelTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
Log:
Modal panel: test autosized
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/ModalPanelTestBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/ModalPanelTestBean.java 2008-10-02 12:29:07 UTC (rev 10649)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/ModalPanelTestBean.java 2008-10-02 14:55:50 UTC (rev 10650)
@@ -17,6 +17,7 @@
private Boolean showWhenRendered = false;
private Boolean moveable = true;
private Boolean resizeable = true;
+ private Boolean autosized = false;
private String input;
/**
* @return the rendered
@@ -79,12 +80,20 @@
return null;
}
+ public String setAutosized() {
+ resizeable = false;
+ autosized = true;
+ showWhenRendered = true;
+ return null;
+ }
+
public String reset(){
rendered = true;
showWhenRendered = false;
moveable = true;
resizeable = true;
input = null;
+ autosized = false;
return null;
}
@@ -100,5 +109,17 @@
public void setInput(String input) {
this.input = input;
}
+ /**
+ * @return the autosized
+ */
+ public Boolean getAutosized() {
+ return autosized;
+ }
+ /**
+ * @param autosized the autosized to set
+ */
+ public void setAutosized(Boolean autosized) {
+ this.autosized = autosized;
+ }
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/modalPanel/modalPanelTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-10-02 12:29:07 UTC (rev 10649)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-10-02 14:55:50 UTC (rev 10650)
@@ -24,6 +24,7 @@
private final static String RESET_ID="reset";
private final static String CHANGE_RENDERED_ID="change_rendered";
private final static String CHANGE_ATTRIBUTES_ID="change_attributes";
+ private final static String CHANGE_AUTOSIZED_ID = "set_autosized";
private final static String HIDE_ID="hide";
private final static String SHOW_ID="show";
private final static String PANEL_C_DIV_ID = PANEL_ID + "CDiv";
@@ -101,7 +102,6 @@
writeStatus("Testing not resizeable panel");
String panelId = getParentId() + PANEL_CONTAINER_DIV_ID;
- String contentId = getParentId() + PANEL_CONTENT_DIV_ID;
String resizerNId = getParentId() + PANEL_ID + "ResizerN";
String resizerSELId = getParentId() + PANEL_ID + "ResizerSEL";
String resizerSWUId = getParentId() + PANEL_ID + "ResizerSWU";
@@ -248,6 +248,47 @@
}
+ @Test
+ public void testAutosized(Template template) {
+ renderPage(template, RESET_METHOD_NAME);
+
+ String contentId = getParentId() + PANEL_CONTENT_DIV_ID;
+ String panelId = getParentId() + PANEL_CONTAINER_DIV_ID;
+ String resizerNId = getParentId() + PANEL_ID + "ResizerN";
+ String resizerSELId = getParentId() + PANEL_ID + "ResizerSEL";
+ String resizerSWUId = getParentId() + PANEL_ID + "ResizerSWU";
+ String cIdvId = getParentId() + PANEL_C_DIV_ID;
+
+
+ clickShow();
+
+ String width = getWidth(contentId);
+ String height = getHeight(contentId);
+
+ clickSetAutosized();
+
+ AssertVisible(panelId);
+ AssertNotPresent(resizerSELId, "Autosized panel should not be resizeable");
+ AssertNotPresent(resizerSWUId, "Autosized panel should not be resizeable");
+ AssertNotPresent(resizerNId, "Autosized panel should not be resizeable");
+
+ Assert.assertFalse(getWidth(contentId).equals(width), "Panel was not autosized");
+ Assert.assertFalse(getHeight(contentId).equals(height), "Panel was not autosized");
+
+ //check moveable
+ writeStatus("Check moveability of autosized panel");
+ String headerId = getParentId() + PANEL_HEADER_ID;
+
+ Integer left = (Integer)getLeftById(cIdvId);
+ Integer top = (Integer)getTopById(cIdvId);
+
+ selenium.dragAndDrop(headerId, "+10,+10");
+
+ Assert.assertFalse(((Integer)getLeftById(cIdvId)).equals(left), "Autosized panel should be moved");
+ Assert.assertFalse(((Integer)getTopById(cIdvId)).equals(top), "Autosized panel should be moved");
+
+ }
+
private String getWidth(String id) {
String w = runScript("$('"+id+"').style.width", false);
@@ -264,6 +305,12 @@
writeStatus("Click reset button");
clickCommandAndWait(buttonId);
}
+
+ private void clickSetAutosized() {
+ String buttonId = getParentId() + FORM_ID + CHANGE_AUTOSIZED_ID;
+ writeStatus("Click set autosized button");
+ clickCommandAndWait(buttonId);
+ }
private void clickChangeRendered() {
String buttonId = getParentId() + FORM_ID + CHANGE_RENDERED_ID;
16 years, 1 month
JBoss Rich Faces SVN: r10649 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-10-02 08:29:07 -0400 (Thu, 02 Oct 2008)
New Revision: 10649
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
Log:
AjaxStatus: test proper style and style classes are applied to "start" and "stop" states
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ajaxStatus/ajaxStatusTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-02 12:21:46 UTC (rev 10648)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxStatusTest.java 2008-10-02 12:29:07 UTC (rev 10649)
@@ -99,6 +99,23 @@
AssertNotPresent(getParentId() + "_form:" + STATUS_3_ID);
}
+ @Test
+ public void testProperStylesAreAppliedToStartAndStopStates(Template template) {
+ renderPage(template);
+
+ writeStatus("Check proper style and style classes are applied to 'start' and 'stop' states");
+
+ String statusElemId = getParentId() + "_form:" + STATUS_1_ID;
+ String startFacetId = statusElemId + ".start";
+ String stopFacetId = statusElemId + ".stop";
+
+ assertStyleAttribute(startFacetId, "color: red");
+ assertClassNames(startFacetId, new String[] {"start-class"}, "Class attribute was not output to client for start facet", true);
+
+ assertStyleAttribute(stopFacetId, "color: green");
+ assertClassNames(stopFacetId, new String[] {"stop-class"}, "Class attribute was not output to client for stop facet", true);
+ }
+
public String getTestUrl() {
return "pages/ajaxStatus/ajaxStatusTest.xhtml";
}
16 years, 1 month
JBoss Rich Faces SVN: r10648 - trunk/test-applications/seleniumTest/richfaces/src/main/webapp/layout.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-10-02 08:21:46 -0400 (Thu, 02 Oct 2008)
New Revision: 10648
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/layout/layout.xhtml
Log:
prototype.js added: selenium auxiliary methods use prototype api while not every component being tested load prototype.js by itself
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/layout/layout.xhtml
===================================================================
(Binary files differ)
16 years, 1 month
JBoss Rich Faces SVN: r10647 - trunk/sandbox/ui/editor/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-10-02 08:19:11 -0400 (Thu, 02 Oct 2008)
New Revision: 10647
Modified:
trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java
Log:
Adjust Seam text converter work
Modified: trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java
===================================================================
--- trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java 2008-10-02 12:19:07 UTC (rev 10646)
+++ trunk/sandbox/ui/editor/src/main/java/org/richfaces/component/SeamTextConverter.java 2008-10-02 12:19:11 UTC (rev 10647)
@@ -14,9 +14,13 @@
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.jboss.seam.text.SeamTextLexer;
import org.jboss.seam.text.SeamTextParser;
+import antlr.ANTLRException;
+import antlr.RecognitionException;
import antlr.TokenStream;
/**
@@ -27,6 +31,8 @@
*/
public class SeamTextConverter implements Converter {
+ private static final Log _log = LogFactory.getLog(SeamTextConverter.class);
+
/**
* <p>
* The standard converter id for this converter.
@@ -41,33 +47,45 @@
@SuppressWarnings("unchecked")
public Object getAsObject(FacesContext context, UIComponent component,
String value) {
+ return value;
+ }
+
+ /**
+ * @see javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext,
+ * javax.faces.component.UIComponent, java.lang.Object)
+ */
+ @SuppressWarnings("unchecked")
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) {
+ if (value == null) {
+ return null;
+ }
+
+ SeamTextParser parser = null;
+
try {
- Reader r = new StringReader(value);
+
+ Reader r = new StringReader(value.toString());
Class seamTextLexerClass = Class.forName("org.jboss.seam.text.SeamTextLexer");
Class seamTextParserClass = Class.forName("org.jboss.seam.text.SeamTextParser");
Constructor seamTextLexerConstructor = seamTextLexerClass.getConstructor(Reader.class);
SeamTextLexer lexer = (SeamTextLexer) seamTextLexerConstructor.newInstance(new Object[] { r });
Constructor seamTextParserConstructor = seamTextParserClass.getConstructor(TokenStream.class);
- SeamTextParser parser = (SeamTextParser) seamTextParserConstructor.newInstance(new Object[] { lexer });
-
- parser.startRule();
- return parser.toString();
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- return null;
+ parser = (SeamTextParser) seamTextParserConstructor.newInstance(new Object[] { lexer });
} catch (Exception e) {
- e.printStackTrace();
- return null;
+ throw new RuntimeException(e);
}
+ try {
+ parser.startRule();
+ } catch (RecognitionException rex) {
+ // Log a nice message for any lexer/parser errors, users can disable
+ // this if they want to
+ _log.warn("Seam Text parse error: " + rex.getMessage());
+ } catch (ANTLRException ex) {
+ // All other errors are fatal;
+ throw new RuntimeException(ex);
+ }
+ return parser.toString();
}
- /**
- * @see javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext,
- * javax.faces.component.UIComponent, java.lang.Object)
- */
- public String getAsString(FacesContext context, UIComponent component,
- Object value) {
- return value.toString();
- }
-
}
16 years, 1 month
JBoss Rich Faces SVN: r10646 - in trunk/sandbox/samples/editorSeam-sample: src/main/java/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: alevkovsky
Date: 2008-10-02 08:19:07 -0400 (Thu, 02 Oct 2008)
New Revision: 10646
Modified:
trunk/sandbox/samples/editorSeam-sample/pom.xml
trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java
Log:
Adjust Seam text converter work
Modified: trunk/sandbox/samples/editorSeam-sample/pom.xml
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/pom.xml 2008-10-02 10:52:54 UTC (rev 10645)
+++ trunk/sandbox/samples/editorSeam-sample/pom.xml 2008-10-02 12:19:07 UTC (rev 10646)
@@ -207,7 +207,7 @@
</dependency>
</dependencies>
<build>
- <finalName>editor-sample</finalName>
+ <finalName>editorSeam-sample</finalName>
</build>
</project>
\ No newline at end of file
Modified: trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java
===================================================================
--- trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java 2008-10-02 10:52:54 UTC (rev 10645)
+++ trunk/sandbox/samples/editorSeam-sample/src/main/java/org/richfaces/EditorBean.java 2008-10-02 12:19:07 UTC (rev 10646)
@@ -7,7 +7,7 @@
public class EditorBean {
- private String value = "Some value....";
+ private String value = "It's easy to make *emphasis*, |monospace|,\n ~deleted text~, super^scripts^ or _underlines_.";
private UIEditor editor;
private boolean rendered = true;
16 years, 1 month
JBoss Rich Faces SVN: r10645 - in trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces: testng and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-10-02 06:52:54 -0400 (Thu, 02 Oct 2008)
New Revision: 10645
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
Log:
modal panel: test JS api
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 2008-10-02 09:52:30 UTC (rev 10644)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-10-02 10:52:54 UTC (rev 10645)
@@ -478,6 +478,16 @@
public void AssertVisible(String id) {
Assert.assertTrue(isVisibleById(id));
}
+
+ /**
+ * Asserts DOM node is visible
+ *
+ * @param id -
+ * DOM element id
+ */
+ public void AssertVisible(String id, String message) {
+ Assert.assertTrue(isVisibleById(id), message);
+ }
/**
* Asserts DOM node is not present
@@ -488,7 +498,18 @@
public void AssertNotPresent(String id) {
Assert.assertFalse(isPresentById(id));
}
+
+ /**
+ * Asserts DOM node is not present
+ *
+ * @param id -
+ * DOM element id
+ */
+ public void AssertNotPresent(String id, String message) {
+ Assert.assertFalse(isPresentById(id), message);
+ }
+
/**
* Asserts DOM node is not visible
*
@@ -500,6 +521,17 @@
}
/**
+ * Asserts DOM node is not visible
+ *
+ * @param id -
+ * DOM element id
+ */
+ public void AssertNotVisible(String id, String message) {
+ Assert.assertFalse(isVisibleById(id), message);
+ }
+
+
+ /**
* Asserts DOM node is present
*
* @param id -
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-10-02 09:52:30 UTC (rev 10644)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/ModalPanelTest.java 2008-10-02 10:52:54 UTC (rev 10645)
@@ -94,8 +94,57 @@
AssertPresent(panelId);
AssertVisible(panelId);
}
+
+ @Test
+ public void testNotResizeableAndNotMoveable(Template template) {
+ renderPage(template, RESET_METHOD_NAME);
+ writeStatus("Testing not resizeable panel");
+ String panelId = getParentId() + PANEL_CONTAINER_DIV_ID;
+ String contentId = getParentId() + PANEL_CONTENT_DIV_ID;
+ String resizerNId = getParentId() + PANEL_ID + "ResizerN";
+ String resizerSELId = getParentId() + PANEL_ID + "ResizerSEL";
+ String resizerSWUId = getParentId() + PANEL_ID + "ResizerSWU";
+ String headerId = getParentId() + PANEL_HEADER_ID;
+ String cIdvId = getParentId() + PANEL_C_DIV_ID;
+
+ clickChangeAttributes();
+
+ AssertPresent(panelId);
+ AssertVisible(panelId);
+
+ AssertNotPresent(resizerSELId, "Resizeable = false does not work");
+ AssertNotPresent(resizerSWUId, "Resizeable = false does not work");
+ AssertNotPresent(resizerNId, "Resizeable = false does not work");
+
+
+ Integer left = (Integer)getLeftById(cIdvId);
+ Integer top = (Integer)getTopById(cIdvId);
+
+ selenium.dragAndDrop(headerId, "+10,+10");
+
+ Assert.assertTrue(((Integer)getLeftById(cIdvId)).equals(left), "Moveable = false attribute does not work");
+ Assert.assertTrue(((Integer)getTopById(cIdvId)).equals(top), "Moveable = false attribute does not work");
+
+
+ }
+
@Test
+ public void testJSApi(Template template) {
+ renderPage(template, RESET_METHOD_NAME);
+ String panelId = getParentId() + PANEL_CONTAINER_DIV_ID;
+
+ AssertNotVisible(panelId);
+ switchPanel(true);
+
+ AssertVisible(panelId, "Modal panel has not opened by JS API");
+
+ switchPanel(false);
+
+ AssertNotVisible(panelId, "Modal panel has not closed by JS API");
+ }
+
+ @Test
public void testLayoutAttributes(Template template) throws Exception {
renderPage(template, RESET_METHOD_NAME);
writeStatus("Testing layout attribute");
@@ -240,4 +289,14 @@
clickById(buttonId);
}
+ private void switchPanel(boolean show) {
+ String panelId = getParentId() + PANEL_ID;
+ if (show) {
+ invokeFromComponent(panelId, "show", null);
+ }else {
+ invokeFromComponent(panelId, "hide", null);
+ }
+
+ }
+
}
16 years, 1 month
JBoss Rich Faces SVN: r10644 - trunk/docs/faq/en/src/main/docbook/module.
by richfaces-svn-commits@lists.jboss.org
Author: atsebro
Date: 2008-10-02 05:52:30 -0400 (Thu, 02 Oct 2008)
New Revision: 10644
Modified:
trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
Log:
RF-3860: FAQ What new in 3.2.x
Modified: trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml
===================================================================
--- trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-10-01 14:02:32 UTC (rev 10643)
+++ trunk/docs/faq/en/src/main/docbook/module/RFCfaq.xml 2008-10-02 09:52:30 UTC (rev 10644)
@@ -2718,4 +2718,23 @@
</h:form>
...]]></programlisting>
</section>
+
+ <section id="newin32x">
+ <title>What's new in a4j in 3.2.x release</title>
+ <para>RichFaces 3.2.x releases have some new features:
+ <itemizedlist>
+ <listitem>
+ <para>the <emphasis role="bold"><property><a4j:portlet></property></emphasis>
+ component is DEPRECATED as far as JSR-301 was defined a same functionality for a UIViewRoot component;
+ </para>
+ </listitem>
+ <listitem>
+ <para>to provide different types of validations <emphasis role="bold"><property><rich:ajaxValidator></property></emphasis>,
+ <emphasis role="bold"><property><rich:beanValidator></property></emphasis> and
+ <emphasis role="bold"><property><rich:graphValidator></property></emphasis> validators are added.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </section>
</chapter>
16 years, 1 month