Author: alexsmirnov
Date: 2007-06-19 20:10:43 -0400 (Tue, 19 Jun 2007)
New Revision: 269
Added:
trunk/ajax4jsf_classes.xls
trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/
trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.htc
trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.html
Modified:
trunk/pom.xml
trunk/samples/ajaxPortlet/.exadelproject
Log:
append excel file with classes for a refactoring.
Added: trunk/ajax4jsf_classes.xls
===================================================================
(Binary files differ)
Property changes on: trunk/ajax4jsf_classes.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2007-06-19 14:36:17 UTC (rev 268)
+++ trunk/pom.xml 2007-06-20 00:10:43 UTC (rev 269)
@@ -39,6 +39,13 @@
</plugin>
</plugins>
</pluginManagement>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ssh</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ </extensions>
</build>
<licenses>
<license>
Modified: trunk/samples/ajaxPortlet/.exadelproject
===================================================================
--- trunk/samples/ajaxPortlet/.exadelproject 2007-06-19 14:36:17 UTC (rev 268)
+++ trunk/samples/ajaxPortlet/.exadelproject 2007-06-20 00:10:43 UTC (rev 269)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<FILESYSTEMS APPLICATION_NAME="ajaxPortlet" ENTITY="FileSystems"
+<FILESYSTEMS APPLICATION_NAME="portalAjaxSample"
ENTITY="FileSystems"
VERSION="8.0.4" WORKSPACE_HOME="./resources/WEB-INF">
<FILESYSTEM ENTITY="FileSystemFolder"
LOCATION="%exadel.workspace%" NAME="WEB-INF"/>
<FILESYSTEM ENTITY="FileSystemFolder" INFO="Content-Type=Web"
@@ -9,6 +9,8 @@
<FILESYSTEM ENTITY="FileSystemFolder"
LOCATION="%exadel.eclipse.project%" NAME="ajaxPortlet"/>
<FILESYSTEM ENTITY="FileSystemFolder"
LOCATION="%exadel.workspace%/lib" NAME="lib"/>
+ <FILESYSTEM ENTITY="FileSystemFolder"
+ LOCATION="%exadel.workspace%/../../../../target/classes"
NAME="classes"/>
<WEB ENTITY="ExadelWeb" MODEL_PATH="/web.xml"
SERVLET_VERSION="2.4">
<MODULE ENTITY="WebJSFModule" ROOT="WEB-ROOT"
SRC="src" URI="/WEB-INF/faces-config.xml"/>
</WEB>
Added: trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.htc
===================================================================
--- trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.htc
(rev 0)
+++ trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.htc 2007-06-20 00:10:43 UTC
(rev 269)
@@ -0,0 +1,7 @@
+<method name="submit" internalname="_submit" />
+<script type="text/javascript">
+ function _submit()
+ {
+ mycallback(this);
+ }
+</script>
Added: trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.html
===================================================================
--- trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.html
(rev 0)
+++ trunk/samples/ajaxPortlet/src/main/webapp/formSubmit/test.html 2007-06-20 00:10:43 UTC
(rev 269)
@@ -0,0 +1,57 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+ <title>Test interception of programmatic form submission</title>
+ <!--<script type="text/javascript"
src="../resources/prototype.js"></script>-->
+ <!--[if IE]>
+ <style type="text/css">
+ form
+ {
+ behavior: url(test.htc);
+ }
+ </style>
+ <![endif]-->
+ <script type="text/javascript">
+ var isIE = /msie/i.test(navigator.userAgent);
+ if (!isIE)
+ {
+ try
+ {
+ HTMLFormElement.prototype.submit = function()
+ {
+ mycallback(this)
+ };
+ }
+ catch (e)
+ {
+ alert("No prototype manipulation possible");
+ }
+ }
+ </script>
+</head>
+<body>
+
+
+<p>The goal of this page is to test the interception of programmatic form
submission.</p>
+
+<form id="the_form" action="">
+ <select onclick="document.getElementById('the_form').submit()"
multiple="multiple">
+ <option>A</option>
+ <option>B</option>
+ <option>C</option>
+ </select>
+</form>
+
+<a
href="javascript:document.getElementById('the_form').submit()">submit</a>
+
+<script type="text/javascript">
+ function mycallback(form)
+ {
+ alert(form.id);
+ }
+</script>
+
+
+</body>
+</html>
\ No newline at end of file
Show replies by date