git commit: adjust quickstart achertype to reflect changes introduced by the adoption of bootstrap 3

2013-08-28 Thread mlusetti
Updated Branches:
  refs/heads/master 76f2679fd -> d2cd6f668


adjust quickstart achertype to reflect changes introduced by the adoption of 
bootstrap 3


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/d2cd6f66
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/d2cd6f66
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/d2cd6f66

Branch: refs/heads/master
Commit: d2cd6f6680bc6e5bff89f7e9c9703f83950c980e
Parents: 76f2679
Author: Massimo Lusetti 
Authored: Wed Aug 28 20:10:26 2013 +0200
Committer: Massimo Lusetti 
Committed: Wed Aug 28 20:10:26 2013 +0200

--
 .../src/main/java/services/AppModule.java| 15 ++-
 .../resources/META-INF/maven/archetype-metadata.xml  |  6 ++
 2 files changed, 16 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/d2cd6f66/quickstart/filtered/archetype-resources/src/main/java/services/AppModule.java
--
diff --git 
a/quickstart/filtered/archetype-resources/src/main/java/services/AppModule.java 
b/quickstart/filtered/archetype-resources/src/main/java/services/AppModule.java
index 87d645e..c42293e 100644
--- 
a/quickstart/filtered/archetype-resources/src/main/java/services/AppModule.java
+++ 
b/quickstart/filtered/archetype-resources/src/main/java/services/AppModule.java
@@ -6,11 +6,14 @@ import org.apache.tapestry5.*;
 import org.apache.tapestry5.ioc.MappedConfiguration;
 import org.apache.tapestry5.ioc.OrderedConfiguration;
 import org.apache.tapestry5.ioc.ServiceBinder;
+import org.apache.tapestry5.ioc.annotations.Contribute;
 import org.apache.tapestry5.ioc.annotations.Local;
-import org.apache.tapestry5.services.Request;
-import org.apache.tapestry5.services.RequestFilter;
-import org.apache.tapestry5.services.RequestHandler;
-import org.apache.tapestry5.services.Response;
+import org.apache.tapestry5.ioc.services.ApplicationDefaults;
+import org.apache.tapestry5.ioc.services.SymbolProvider;
+import org.apache.tapestry5.services.*;
+import org.apache.tapestry5.services.javascript.JavaScriptStack;
+import org.apache.tapestry5.services.javascript.StackExtension;
+import org.apache.tapestry5.services.javascript.StackExtensionType;
 import org.slf4j.Logger;
 
 /**
@@ -62,10 +65,11 @@ public class AppModule
public static void setupEnvironment(MappedConfiguration 
configuration)
{

configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery");
-   configuration.add(SymbolConstants.BOOTSTRAP_ROOT, 
"context:mybootstrap");
+// configuration.add(SymbolConstants.BOOTSTRAP_ROOT, 
"context:mybootstrap");
configuration.add(SymbolConstants.MINIFICATION_ENABLED, true);
}
 
+   /*
// This will override the bundled bootstrap version and will compile it 
at runtime
@Contribute(JavaScriptStack.class)
@Core
@@ -74,6 +78,7 @@ public class AppModule
configuration.override("bootstrap.css",
new 
StackExtension(StackExtensionType.STYLESHEET, 
"context:mybootstrap/css/bootstrap.css"), "before:tapestry.css");
}
+   */
 
 /**
  * This is a service definition, the service will be named "TimingFilter". 
The interface,

http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/d2cd6f66/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml
--
diff --git 
a/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml 
b/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml
index 14a8549..a107b85 100644
--- a/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -19,6 +19,9 @@
 *.ico
 **/*.jpg
 **/*.gif
+**/*.png
+**/*.js
+**/*.css
 
 
 
@@ -30,6 +33,9 @@
 *.ico
 **/*.jpg
 **/*.gif
+**/*.png
+**/*.js
+**/*.css
 
 
 



[jira] [Commented] (TAP5-1007) When Tapestry is loading templates or other files on case-insensitive OSs (Windows) it should trigger an error if the file name case is incorrect (which will result in a

2013-08-28 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13752312#comment-13752312
 ] 

Hudson commented on TAP5-1007:
--

SUCCESS: Integrated in tapestry-trunk-freestyle #1141 (See 
[https://builds.apache.org/job/tapestry-trunk-freestyle/1141/])
TAP5-1007 fix test to be run only on case insentive OS (mlusetti: rev 
dd109817ea9595b5103a1abcff5bbd53064c8981)
* tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy


> When Tapestry is loading templates or other files on case-insensitive OSs 
> (Windows) it should trigger an error if the file name case is incorrect 
> (which will result in a runtime failure on case-sensitive OSs, such as Linux)
> ---
>
> Key: TAP5-1007
> URL: https://issues.apache.org/jira/browse/TAP5-1007
> Project: Tapestry 5
>  Issue Type: Improvement
>  Components: tapestry-core
>Affects Versions: 5.2
>Reporter: Howard M. Lewis Ship
>Assignee: Howard M. Lewis Ship
> Fix For: 5.4
>
>
> In other words, on Windows you might find file "myComponent.tml" when it 
> should be named "MyComponent.tml" (to match the name of the class, 
> MyComponent).  This is irritating to find in testing or production, and 
> Tapestry should be able to add a check that the case of the file name does 
> not match the expected case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


git commit: bump version

2013-08-28 Thread mlusetti
Updated Branches:
  refs/heads/master dd109817e -> 76f2679fd


bump version


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/76f2679f
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/76f2679f
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/76f2679f

Branch: refs/heads/master
Commit: 76f2679fd25850f426adf3fd4c07a5075096c073
Parents: dd10981
Author: Massimo Lusetti 
Authored: Wed Aug 28 13:14:29 2013 +0200
Committer: Massimo Lusetti 
Committed: Wed Aug 28 13:14:29 2013 +0200

--
 build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/76f2679f/build.gradle
--
diff --git a/build.gradle b/build.gradle
index 9b71d5a..0ec31ff 100755
--- a/build.gradle
+++ b/build.gradle
@@ -36,7 +36,7 @@ project.version = tapestryVersion()
 def tapestryVersion() {
 
 def major = "5.4"
-def minor = "-alpha-15"
+def minor = "-alpha-16"
 
 // When building on the CI server, make sure -SNAPSHOT is appended, as it 
is a nightly build.
 // When building normally, or for a release, no suffix is desired.



[jira] [Commented] (TAP5-1007) When Tapestry is loading templates or other files on case-insensitive OSs (Windows) it should trigger an error if the file name case is incorrect (which will result in a

2013-08-28 Thread Massimo Lusetti (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13752298#comment-13752298
 ] 

Massimo Lusetti commented on TAP5-1007:
---

Yep, both are OS dependent.
The check is valid only on case insensitive OS so the same apply for the test 
which check the code.

> When Tapestry is loading templates or other files on case-insensitive OSs 
> (Windows) it should trigger an error if the file name case is incorrect 
> (which will result in a runtime failure on case-sensitive OSs, such as Linux)
> ---
>
> Key: TAP5-1007
> URL: https://issues.apache.org/jira/browse/TAP5-1007
> Project: Tapestry 5
>  Issue Type: Improvement
>  Components: tapestry-core
>Affects Versions: 5.2
>Reporter: Howard M. Lewis Ship
>Assignee: Howard M. Lewis Ship
> Fix For: 5.4
>
>
> In other words, on Windows you might find file "myComponent.tml" when it 
> should be named "MyComponent.tml" (to match the name of the class, 
> MyComponent).  This is irritating to find in testing or production, and 
> Tapestry should be able to add a check that the case of the file name does 
> not match the expected case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


git commit: TAP5-1007 fix test to be run only on case insentive OS

2013-08-28 Thread mlusetti
Updated Branches:
  refs/heads/master cd7f9c874 -> dd109817e


TAP5-1007 fix test to be run only on case insentive OS


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/dd109817
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/dd109817
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/dd109817

Branch: refs/heads/master
Commit: dd109817ea9595b5103a1abcff5bbd53064c8981
Parents: cd7f9c8
Author: Massimo Lusetti 
Authored: Wed Aug 28 13:08:35 2013 +0200
Committer: Massimo Lusetti 
Committed: Wed Aug 28 13:08:35 2013 +0200

--
 .../src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy| 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/dd109817/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
--
diff --git 
a/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy 
b/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
index a99336d..8b17650 100644
--- a/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
+++ b/tapestry-ioc/src/test/groovy/ioc/specs/ClasspathResourceSpec.groovy
@@ -1,5 +1,6 @@
 package ioc.specs
 
+import org.apache.commons.lang3.SystemUtils
 import org.apache.tapestry5.ioc.internal.util.ClasspathResource
 import spock.lang.Specification
 
@@ -24,7 +25,11 @@ class ClasspathResourceSpec extends Specification {
 content(r) == RESOURCE_TXT_CONTENT
 }
 
-def "case-mismatch on file name is detected"() {
+def "case-mismatch on file name is detected on case insensitive OS"() {
+
+if (!SystemUtils.IS_OS_WINDOWS)
+return
+
 def r = new ClasspathResource("$FOLDER/Resource.Txt")
 
 when:



[jira] [Created] (TAP5-2162) Prevent default actions for DOM events using preventDefault() rather that stopping the events entirely

2013-08-28 Thread Jochen Kemnade (JIRA)
Jochen Kemnade created TAP5-2162:


 Summary: Prevent default actions for DOM events using 
preventDefault() rather that stopping the events entirely
 Key: TAP5-2162
 URL: https://issues.apache.org/jira/browse/TAP5-2162
 Project: Tapestry 5
  Issue Type: Improvement
  Components: tapestry-core
Affects Versions: 5.4
Reporter: Jochen Kemnade
 Attachments: 
0001-add-EventWrapper.preventDefault-and-use-it-to-preven.patch

Currently, Tapestry returns {{false}} from many DOM event handlers. That 
prevents other handlers for the same event/element combinations from being 
called.
The patch adds a preventDefault() method to EventWrapper and uses it instead of 
returning false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (TAP5-2162) Prevent default actions for DOM events using preventDefault() rather that stopping the events entirely

2013-08-28 Thread Jochen Kemnade (JIRA)

 [ 
https://issues.apache.org/jira/browse/TAP5-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade updated TAP5-2162:
-

Attachment: 0001-add-EventWrapper.preventDefault-and-use-it-to-preven.patch

> Prevent default actions for DOM events using preventDefault() rather that 
> stopping the events entirely
> --
>
> Key: TAP5-2162
> URL: https://issues.apache.org/jira/browse/TAP5-2162
> Project: Tapestry 5
>  Issue Type: Improvement
>  Components: tapestry-core
>Affects Versions: 5.4
>Reporter: Jochen Kemnade
>  Labels: patch
> Attachments: 
> 0001-add-EventWrapper.preventDefault-and-use-it-to-preven.patch
>
>
> Currently, Tapestry returns {{false}} from many DOM event handlers. That 
> prevents other handlers for the same event/element combinations from being 
> called.
> The patch adds a preventDefault() method to EventWrapper and uses it instead 
> of returning false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (TAP5-2162) Prevent default actions for DOM events using preventDefault() rather that stopping the events entirely

2013-08-28 Thread Jochen Kemnade (JIRA)

 [ 
https://issues.apache.org/jira/browse/TAP5-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade updated TAP5-2162:
-

Labels: dom events javascript patch  (was: patch)

> Prevent default actions for DOM events using preventDefault() rather that 
> stopping the events entirely
> --
>
> Key: TAP5-2162
> URL: https://issues.apache.org/jira/browse/TAP5-2162
> Project: Tapestry 5
>  Issue Type: Improvement
>  Components: tapestry-core
>Affects Versions: 5.4
>Reporter: Jochen Kemnade
>  Labels: dom, events, javascript, patch
> Attachments: 
> 0001-add-EventWrapper.preventDefault-and-use-it-to-preven.patch
>
>
> Currently, Tapestry returns {{false}} from many DOM event handlers. That 
> prevents other handlers for the same event/element combinations from being 
> called.
> The patch adds a preventDefault() method to EventWrapper and uses it instead 
> of returning false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (TAP5-2161) Remove the t5/core/grid module

2013-08-28 Thread Jochen Kemnade (JIRA)

 [ 
https://issues.apache.org/jira/browse/TAP5-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jochen Kemnade updated TAP5-2161:
-

Attachment: 0001-remove-the-t5-core-grid-module-as-it-is-not-needed.patch

> Remove the t5/core/grid module
> --
>
> Key: TAP5-2161
> URL: https://issues.apache.org/jira/browse/TAP5-2161
> Project: Tapestry 5
>  Issue Type: Task
>  Components: tapestry-core
>Affects Versions: 5.4
>Reporter: Jochen Kemnade
>  Labels: javascript, patch
> Attachments: 
> 0001-remove-the-t5-core-grid-module-as-it-is-not-needed.patch
>
>
> The {{t5/core/grid}} module is not needed. The client-side logic is handled 
> by {{t5/core/zone}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (TAP5-2161) Remove the t5/core/grid module

2013-08-28 Thread Jochen Kemnade (JIRA)
Jochen Kemnade created TAP5-2161:


 Summary: Remove the t5/core/grid module
 Key: TAP5-2161
 URL: https://issues.apache.org/jira/browse/TAP5-2161
 Project: Tapestry 5
  Issue Type: Task
  Components: tapestry-core
Affects Versions: 5.4
Reporter: Jochen Kemnade


The {{t5/core/grid}} module is not needed. The client-side logic is handled by 
{{t5/core/zone}}.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira