* If one needs to override parts of the host page, it is suggested that one
* overrides on of several submethods which are called by this method:
* <ul>
- * <li> {@link #setAjaxPageHeaders(HttpServletResponse)
- * <li> {@link #writeAjaxPageHtmlHeadStart(BufferedWriter, HttpServletRequest)
- * <li> {@link #writeAjaxPageHtmlHeader(BufferedWriter, String, String, HttpServletRequest)
- * <li> {@link #writeAjaxPageHtmlBodyStart(BufferedWriter, HttpServletRequest)
+ * <li> {@link #setAjaxPageHeaders(HttpServletResponse)}
* <li>
- * {@link #writeAjaxPageHtmlVaadinScripts(Window, String, Application, BufferedWriter, String, String, String, HttpServletRequest)
+ * {@link #writeAjaxPageHtmlHeadStart(BufferedWriter, HttpServletRequest)}
* <li>
- * {@link #writeAjaxPageHtmlMainDiv(BufferedWriter, String, String, String, HttpServletRequest)
+ * {@link #writeAjaxPageHtmlHeader(BufferedWriter, String, String, HttpServletRequest)}
+ * <li>
+ * {@link #writeAjaxPageHtmlBodyStart(BufferedWriter, HttpServletRequest)}
+ * <li>
+ * {@link #writeAjaxPageHtmlVaadinScripts(Window, String, Application, BufferedWriter, String, String, String, HttpServletRequest)}
+ * <li>
+ * {@link #writeAjaxPageHtmlMainDiv(BufferedWriter, String, String, String, HttpServletRequest)}
* <li> {@link #writeAjaxPageHtmlBodyEnd(BufferedWriter)}
* </ul>
*
+ getDefaultTheme().replaceAll("[^a-zA-Z0-9]", "");
}
- String classNames = "v-app " + themeClass + " "
- + appClass;
+ String classNames = "v-app " + themeClass + " " + appClass;
String divStyle = null;
if (request.getAttribute(REQUEST_APPSTYLE) != null) {
* @param appId
* @param classNames
* @param divStyle
- * @param request
+ * @param request
* @throws IOException
*/
protected void writeAjaxPageHtmlMainDiv(final BufferedWriter page,
- String appId, String classNames, String divStyle, HttpServletRequest request)
- throws IOException {
+ String appId, String classNames, String divStyle,
+ HttpServletRequest request) throws IOException {
page.write("<div id=\"" + appId + "\" class=\"" + classNames + "\" "
+ (divStyle != null ? divStyle : "") + ">");
page.write("<div class=\"v-app-loading\"></div>");
*/
public void setNullRepresentation(String nullRepresentation) {
this.nullRepresentation = nullRepresentation;
+ requestRepaint();
}
/**
* </p>
*
* @param nullSettingAllowed
- * Should the null-string represenation be always converted to
+ * Should the null-string representation always be converted to
* null-values.
* @see TextField#getNullRepresentation()
*/
public void setNullSettingAllowed(boolean nullSettingAllowed) {
this.nullSettingAllowed = nullSettingAllowed;
+ requestRepaint();
}
/**
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="http://vaadin-integration-tests.intra.itmill.com:7001/" />
+<title>weblogic-portal-integration</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">weblogic-portal-integration</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/AddrPortal/TestPortal.portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>mouseClick</td>
+ <td>vaadin=v-AddressBook_1::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[2]/domChild[0]/domChild[0]</td>
+ <td>52,14</td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>Marge_selected</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>vaadin=v-AddressBook_1::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VHorizontalLayout[0]/ChildComponentContainer[2]/VButton[0]/domChild[0]/domChild[0]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>Marge_in_edit_mode</td>
+</tr>
+<tr>
+ <td>mouseClick</td>
+ <td>vaadin=v-AddressBook_1::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VTextField[0]</td>
+ <td>52,13</td>
+</tr>
+<tr>
+ <td>enterCharacter</td>
+ <td>vaadin=v-AddressBook_1::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VFormLayout[0]/VFormLayout$VFormLayoutTable[0]/VTextField[0]</td>
+ <td>Margery</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>vaadin=v-AddressBook_1::/VVerticalLayout[0]/ChildComponentContainer[1]/VSplitPanelHorizontal[0]/VSplitPanelVertical[0]/VForm[0]/VHorizontalLayout[0]/ChildComponentContainer[0]/VButton[0]/domChild[0]/domChild[0]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>screenCapture</td>
+ <td></td>
+ <td>Margery_Simmons</td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
<?xml version="1.0"?>\r
\r
<project name="Test sampler deployment" basedir="." default="integration-test-all">\r
- \r
+\r
<!-- Target deploying demo.war -->\r
<fail unless="test.integration.server" message="test.integration.server must be set for integration tests to run"/>\r
\r
\r
<target name="integration-test-eXo-3">\r
<fileset dir="integration-testscripts" id="html-test-files" includes="eXo-3/eXo-integration.html" />\r
- <pathconvert pathsep=" " property="test-gatein" refid="html-test-files" />\r
+ <pathconvert pathsep=" " property="test-exo" refid="html-test-files" />\r
\r
<subant target="run-tests" failonerror="false" antfile="test.xml">\r
<property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />\r
<property name="com.vaadin.testbench.deployment.url" value="${deployment.url}" />\r
<property name="server.start.succeeded" value="1" />\r
<property name="browsers" value="winxp-firefox36" />\r
- <property name="testfiles" value="${test-gatein}" />\r
+ <property name="testfiles" value="${test-exo}" />\r
+ <property name="test-output-dir" value="../build/integration-test-output" />\r
+ \r
+ <fileset dir="." includes="test.xml" />\r
+ </subant>\r
+ </target>\r
+ \r
+ <target name="integration-test-weblogic-portal">\r
+ <fileset dir="integration-testscripts" id="html-test-files" includes="weblogic-portal/weblogic-portal-integration.html" />\r
+ <pathconvert pathsep=" " property="test-weblogic" refid="html-test-files" />\r
+ \r
+ <subant target="run-tests" failonerror="false" antfile="test.xml">\r
+ <property name="com.vaadin.testbench.lib.dir" value="${com.vaadin.testbench.lib.dir}" />\r
+ <property name="com.vaadin.testbench.tester.host" value="${com.vaadin.testbench.tester.host}" />\r
+ <property name="com.vaadin.testbench.deployment.url" value="http://${test.integration.server}:7001" />\r
+ <property name="server.start.succeeded" value="1" />\r
+ <property name="browsers" value="winxp-firefox36" />\r
+ <property name="testfiles" value="${test-weblogic}" />\r
<property name="test-output-dir" value="../build/integration-test-output" />\r
\r
<fileset dir="." includes="test.xml" />\r
<target name="integration-test-stop-weblogic10">\r
<sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-10.3" />\r
</target>\r
+\r
+ <target name="integration-test-start-weblogic-portal">\r
+ <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} start-weblogic-portal" />\r
+ </target>\r
+\r
+ <target name="integration-test-stop-weblogic-portal">\r
+ <sshexec host="${test.integration.server}" username="${user}" keyfile="${sshkey.file}" command="ant -f ${ant.hub} stop-weblogic-portal" />\r
+ </target>\r
\r
<!-- Run sampler deployment test on GAE -->\r
<target name="integration-test-test-GAE">\r
<antcall target="integration-test-stop-weblogic10"/>\r
</target>\r
\r
+ <target name="integration-test-weblogicPortal">\r
+ <antcall target="integration-test-start-weblogic-portal"/>\r
+ <antcall target="integration-test-weblogic-portal"/>\r
+ <antcall target="integration-test-stop-weblogic-portal"/>\r
+ </target>\r
+ \r
<target name="integration-test-GAE">\r
<antcall target="integration-test-deploy-to-GAE"/>\r
<antcall target="integration-test-test-GAE" />\r
<antcall target="run-integration-test">\r
<param name="target-server" value="weblogic10"/>\r
</antcall>\r
+ <antcall target="run-integration-test">\r
+ <param name="target-server" value="weblogicPortal"/>\r
+ </antcall>\r
<antcall target="run-integration-test">\r
<param name="target-server" value="GAE"/>\r
</antcall>\r
<td>vaadin=runcomvaadintestscomponentswindowWindowClickEvents::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VVerticalLayout[0]/ChildComponentContainer[0]/VLabel[0]</td>\r
<td>4. Click using left on Sub window</td>\r
</tr>\r
+<!--Clicking on the button should not produce a window click event-->\r
+<tr>\r
+ <td>click</td>\r
+ <td>vaadin=runcomvaadintestscomponentswindowWindowClickEvents::/VWindow[0]/FocusableScrollPanel[0]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>\r
+ <td></td>\r
+</tr>\r
+<tr>\r
+ <td>assertText</td>\r
+ <td>vaadin=runcomvaadintestscomponentswindowWindowClickEvents::PID_SLog_row_0</td>\r
+ <td>5. Click on button</td>\r
+</tr>\r
+<tr>\r
+ <td>assertText</td>\r
+ <td>vaadin=runcomvaadintestscomponentswindowWindowClickEvents::PID_SLog_row_2</td>\r
+ <td>3. Click using left on Sub window layout</td>\r
+</tr>\r
+<tr>\r
+ <td>assertText</td>\r
+ <td>vaadin=runcomvaadintestscomponentswindowWindowClickEvents::PID_SLog_row_1</td>\r
+ <td>4. Click using left on Sub window</td>\r
+</tr>\r
</tbody></table>\r
</body>\r
</html>\r
Label l = new Label("This window is centered");
l.setSizeUndefined();
- Button b = new Button("Clicking here should not produce an event");
+ Button b = new Button(
+ "Clicking here should not produce a layout click event");
+ b.addListener(new Button.ClickListener() {
+
+ public void buttonClick(com.vaadin.ui.Button.ClickEvent event) {
+ log.log("Click on button");
+ }
+
+ });
centered.addComponent(l);
centered.addComponent(b);