You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2005/07/27 17:37:43 UTC
cvs commit: jakarta-tapestry/src/documentation/content/xdocs site.xml index.xml
hlship 2005/07/27 08:37:43
Modified: framework/src/java/org/apache/tapestry/form Form.js
. status.xml
framework/src/java/org/apache/tapestry/asset
ContextAssetFactory.java
config/jboss/deploy mckoi-service.xml
src/documentation/content/xdocs site.xml index.xml
Added: src/documentation/resources/images tsn-logo.png
Log:
TAPESTRY-445: ContextAssetFactory assembles wrong filename for assets
Revision Changes Path
1.7 +37 -1 jakarta-tapestry/framework/src/java/org/apache/tapestry/form/Form.js
Index: Form.js
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/java/org/apache/tapestry/form/Form.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Form.js 7 Jul 2005 23:26:52 -0000 1.6
+++ Form.js 27 Jul 2005 15:37:42 -0000 1.7
@@ -119,6 +119,8 @@
FormEventManager.prototype.invokeListeners = function(type, eventObj)
{
+ if (eventObj.cancelListeners) return;
+
var array = this.handlers[type];
if (array == null) return;
@@ -161,10 +163,28 @@
}
}
+// addPreSubmitListener(handler)
+//
+// Typically used to setup state prior to the submit handlers being invoked.
+// Pre-submit listeners are invoked before submit handlers are invoked. If
+// a pre-submit listener sets the cancelListeners flag on the event, the
+// submit and post-submit listeners will not be invoked.
+
+//
+// form - the Form object for which a listener is added
+// handler - recieves notification when the form is submitted
+
+FormEventManager.prototype.addPreSubmitListener = function(handler)
+{
+ this.addListener("presubmit", handler);
+}
+
// addSubmitListener(handler)
//
// Typically used for input validations; normal submit listeners are skipped when
-// a form is submitted to refresh some of its values.
+// a form is submitted to refresh some of its values. If a handler sets
+// the cancelListener flag on the event, then subsequent submit handlers, and all
+// post-submit handlers, will not be invoked.
//
// form - the Form object for which a listener is added
// handler - receives notifications when the form is submitted
@@ -174,18 +194,34 @@
this.addListener("submit", handler);
}
+// addPostSubmitListener(handler)
+//
+// Used to perform final cleanup after all submit listeners have been invoked.
+//
+// form - the Form object for which a listener is added
+// handler - receives notifications when the form is submitted
+
+FormEventManager.prototype.addPostSubmitListener = function(handler)
+{
+ this.addListener("postsubmit", handler);
+}
+
// submit()
//
// Submits a form. This is designed to be the form's onsubmit event handler, so it returns true
// to let the form submit, or false if any of the listeners set the abort flag on the event.
// Returns false if any listener set the event's abort flag, true otherwise.
+//
+// Invokes all pre-submit listeners, then all submit listeners, then all post-submit listeners.
//
FormEventManager.prototype.submit = function()
{
var event = new FormSubmitEvent(this.form, "submit");
+ this.invokeListeners("presubmit", event);
this.invokeListeners("submit", event);
+ this.invokeListeners("postsubmit", event);
if (event.abort)
return false;
1.174 +1 -0 jakarta-tapestry/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/status.xml,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -r1.173 -r1.174
--- status.xml 25 Jul 2005 13:09:13 -0000 1.173
+++ status.xml 27 Jul 2005 15:37:42 -0000 1.174
@@ -52,6 +52,7 @@
<changes>
<release version="4.0-beta-4" date="unreleased">
<action type="fix" dev="HLS">Add getComponent() method to IComponent.</action>
+ <action type="fix" dev="HLS" fixes-bug="TAPESTRY-445" due-to="Markus Joschko">ContextAssetFactory assembles wrong filename for assets</action>
</release>
<release version="4.0-beta-3" date="Jul 22 2005">
<action type="fix" dev="HLS" fixes-bug="TAPESTRY-398" due-to="Jonas Maurus">HiveMind configuration error breaks the useage of the state: binding prefix</action>
1.8 +1 -1 jakarta-tapestry/framework/src/java/org/apache/tapestry/asset/ContextAssetFactory.java
Index: ContextAssetFactory.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/java/org/apache/tapestry/asset/ContextAssetFactory.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ContextAssetFactory.java 20 May 2005 12:46:07 -0000 1.7
+++ ContextAssetFactory.java 27 Jul 2005 15:37:43 -0000 1.8
@@ -57,7 +57,7 @@
public IAsset createAsset(Resource resource, Location location)
{
- return new ContextAsset(resource.getPath(), resource, location);
+ return new ContextAsset(_contextPath, resource, location);
}
public void setContext(WebContext context)
1.11 +28 -104 jakarta-tapestry/config/jboss/deploy/mckoi-service.xml
Index: mckoi-service.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/config/jboss/deploy/mckoi-service.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- mckoi-service.xml 26 Jul 2005 13:57:22 -0000 1.10
+++ mckoi-service.xml 27 Jul 2005 15:37:43 -0000 1.11
@@ -1,106 +1,30 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- Adapated from default Hypersonic data source -->
-
-
+<?xml version="1.0"?>
<datasources>
- <local-tx-datasource>
-
- <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
- <!-- Datasources are not available outside the virtual machine -->
- <jndi-name>McKoiDB</jndi-name>
-
- <!-- for tcp connection, allowing other processes to use the hsqldb
- database. This requires the org.jboss.jdbc.HypersonicDatabase mbean. -->
- <connection-url>jdbc:mckoi://localhost/</connection-url>
-
- <!-- for totally in-memory db, not saved when jboss stops.
- The org.jboss.jdbc.HypersonicDatabase mbean necessary
- <connection-url>jdbc:hsqldb:.</connection-url>
--->
- <!-- for in-process persistent db, saved when jboss stops. The
- org.jboss.jdbc.HypersonicDatabase mbean is necessary for properly db shutdown
-
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
--->
-
- <!-- The driver class -->
- <driver-class>com.mckoi.JDBCDriver</driver-class>
-
- <!-- The login and password -->
- <user-name>admin</user-name>
- <password>secret</password>
-
- <!--example of how to specify class that determines if exception means connection should be destroyed-->
- <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->
-
- <!-- this will be run before a managed connection is removed from the pool for use by a client-->
- <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->
-
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>0</min-pool-size>
-
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>50</max-pool-size>
-
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>15</idle-timeout-minutes>
-
- <!-- sql to call when connection is created
- <new-connection-sql>some arbitrary sql</new-connection-sql>
- -->
-
- <!-- sql to call on an existing pooled connection when it is obtained from pool
- <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
- -->
-
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool
- <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>
- -->
-
- <!-- Whether to check all statements are closed when the connection is returned to the pool,
+ <local-tx-datasource>
+ <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
+ <!-- Datasources are not available outside the virtual machine -->
+ <jndi-name>McKoiDB</jndi-name>
+ <!-- for in-process persistent db, saved when jboss stops. The
+ org.jboss.jdbc.DerbyDatabase mbean is necessary for properly db shutdown -->
+ <connection-url>jdbc:mckoi://localhost/</connection-url>
+ <!-- The driver class -->
+ <driver-class>com.mckoi.JDBCDriver</driver-class>
+ <!-- The login and password -->
+ <user-name>admin</user-name>
+ <password>secret</password>
+ <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
+ <min-pool-size>5</min-pool-size>
+ <!-- The maximum connections in a pool/sub-pool -->
+ <max-pool-size>20</max-pool-size>
+ <!-- The time before an unused connection is destroyed -->
+ <idle-timeout-minutes>5</idle-timeout-minutes>
+ <!-- Whether to check all statements are closed when the connection is returned to the pool,
this is a debugging feature that should be turned off in production -->
- <track-statements/>
-
- <!-- Use the getConnection(user, pw) for logins
- <application-managed-security/>
- -->
-
- <!-- Use the security domain defined in conf/login-config.xml -->
- <security-domain>HsqlDbRealm</security-domain>
-
- <!-- Use the security domain defined in conf/login-config.xml or the
- getConnection(user, pw) for logins. The security domain takes precedence.
- <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
- -->
-
- <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
- <metadata>
- <type-mapping>McKoi</type-mapping>
- </metadata>
-
- <!-- This mbean can be used when using in process persistent hypersonic
- <depends>jboss:service=Hypersonic,database=localDB</depends> -->
- </local-tx-datasource>
-
- <!-- This mbean should be used only when using tcp connections. Uncomment
- when the tcp based connection-url is used.
- <mbean code="org.jboss.jdbc.HypersonicDatabase"
- name="jboss:service=Hypersonic">
- <attribute name="Port">1701</attribute>
- <attribute name="Silent">true</attribute>
- <attribute name="Database">default</attribute>
- <attribute name="Trace">false</attribute>
- <attribute name="No_system_exit">true</attribute>
- </mbean>
- -->
-
- <!-- This mbean can be used when using in process persistent db -->
-
-
- <mbean code="net.sf.tapestry.contrib.mckoi.McKoiDB" name="jboss:service=McKoiDB">
- <attribute name="ConfigPath">../server/default/db/tapestry.conf</attribute>
- </mbean>
-</datasources>
+ <track-statements/>
+ <!-- This mbean can be used when using in process persistent derby -->
+ <depends>jboss:service=McKoiDB</depends>
+ </local-tx-datasource>
+ <mbean code="net.sf.tapestry.contrib.mckoi.McKoiDB" name="jboss:service=McKoiDB">
+ <attribute name="ConfigPath">../server/default/db/tapestry.conf</attribute>
+ </mbean>
+</datasources>
\ No newline at end of file
1.1 jakarta-tapestry/src/documentation/resources/images/tsn-logo.png
<<Binary file>>
1.43 +1 -0 jakarta-tapestry/src/documentation/content/xdocs/site.xml
Index: site.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/src/documentation/content/xdocs/site.xml,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- site.xml 26 Jul 2005 13:57:19 -0000 1.42
+++ site.xml 27 Jul 2005 15:37:43 -0000 1.43
@@ -175,6 +175,7 @@
<item label="Apache FAQ" href="http://apache.org/foundation/faq.html"/>
<item label="Tapestry and HiveMind Blog"
href="http://howardlewisship.com/blog/"/>
+ <item label="TapestrySupport.com" href="http://tapestrysupport.com"/>
</info>
<related label="Related Projects">
1.20 +14 -0 jakarta-tapestry/src/documentation/content/xdocs/index.xml
Index: index.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/src/documentation/content/xdocs/index.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- index.xml 1 Jul 2005 16:41:03 -0000 1.19
+++ index.xml 27 Jul 2005 15:37:43 -0000 1.20
@@ -315,5 +315,19 @@
</section>
+<section>
+ <title>Tapestry Support</title>
+
+<figure src="images/tsn-logo.png" alt="Tapestry Support Network"/>
+
+<p>
+ The <link href="http://tapestrysupport.com">Tapestry Support Network</link> is a consortium of professional
+ software trainers and consultants that provide customized Tapestry training and teir-one support. The network includes
+ key players in the Tapestry world, including Howard Lewis Ship and Erik Hatcher, as well as other organizations, including
+ Interface21 and ArcMind.
+</p>
+
+</section>
+
</body>
</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org