Re: Modules not found by Tapestry 5.4.1; serving 'index' instead

2016-06-30 Thread Chris Poulsen
change @Import(module = { "mymodule.js",}) to @Import(module = { "mymodule"}) -- Chris On Fri, Jul 1, 2016 at 4:31 AM, Claude Andrew wrote: > I just upgraded to 5.4.1 from 5.3. I am switching my js libraries to > requirejs modules. Following the guide at > http://tapestry.apache.org/javascri

Re: after migrating to T5.4 home page won't load

2016-06-30 Thread Chris Poulsen
check mvn dependency:tree to see what is actually resolved -- Chris On Thu, Jun 30, 2016 at 10:52 PM, Qbyte Consulting < qbyteconsult...@gmail.com> wrote: > Here are the effective dependencies: > > > > org.apache.tapestry > tapestry-core > 5.4.1 > compile >

Re: problem accessing assets after migration to 5.4

2016-06-30 Thread Chris Poulsen
assets are usually in a specific path (resources/META-INF/assets/...) - Could it be that your file is not an asset and that it should be loaded using normal methods (classloader.getResourceAsStream or similar) -- Chris On Thu, Jun 30, 2016 at 8:23 PM, Thiago H de Paula Figueiredo < thiag...@gmai

Re: Tapestry with Selenium and Cucumber

2016-06-30 Thread Chris Poulsen
The tapestry sources are tested using selenium. On Thu, Jun 30, 2016 at 5:31 PM, Qbyte Consulting wrote: > Hi, > > Are there any Tapestry sample projects around with Selenium and/or Cucumber > tests? > > thanks, > John >

Modules not found by Tapestry 5.4.1; serving 'index' instead

2016-06-30 Thread Claude Andrew
I just upgraded to 5.4.1 from 5.3. I am switching my js libraries to requirejs modules. Following the guide at http://tapestry.apache.org/javascript-modules.html, I placed my module files in 'src/main/resources/META-INF/modules' and included one in a page's java class: @Import(module = { "mymodul

Modules not found by Tapestry 5.4.1; serving 'index' instead

2016-06-30 Thread Claude Andrew
I just upgraded to 5.4.1 from 5.3. I am switching my js libraries to requirejs modules. Following the guide at http://tapestry.apache.org/javascript-modules.html, I placed my module files in 'src/main/resources/META-INF/modules' and included one in a page's java class: @Import(module = { "mymodul

Re: after migrating to T5.4 home page won't load

2016-06-30 Thread Qbyte Consulting
Here are the effective dependencies: org.apache.tapestry tapestry-core 5.4.1 compile org.testng testng 5.14.10 test org.easymock easymock 3.0 test org.apache.tapestry tapestry-te

Re: problem accessing assets after migration to 5.4

2016-06-30 Thread Thiago H de Paula Figueiredo
On Thu, 30 Jun 2016 13:13:23 -0300, Qbyte Consulting wrote: Hi, Hi! I've changed my project deps to T5.4. After fixing some depricated page link methods my app compiles. However when I run I get exceptions from a menu loading service: is = assetSource.getClasspathAsset("menu.properties")

Re: after migrating to T5.4 home page won't load

2016-06-30 Thread Thiago H de Paula Figueiredo
On Thu, 30 Jun 2016 13:47:31 -0300, Qbyte Consulting wrote: I got jetty:run to launch the app, but when requesting the home page: HTTP ERROR 500 Problem accessing /audit/. Reason: Server Error Caused by: java.lang.AbstractMethodError This very probably means you have mixed Tapestry

after migrating to T5.4 home page won't load

2016-06-30 Thread Qbyte Consulting
I got jetty:run to launch the app, but when requesting the home page: HTTP ERROR 500 Problem accessing /audit/. Reason: Server Error Caused by: java.lang.AbstractMethodError at org.apache.tapestry5.internal.services.ajax.JavaScriptSupportImpl.getModuleNameToStackName(JavaScriptSupportImpl.j

problem accessing assets after migration to 5.4

2016-06-30 Thread Qbyte Consulting
Hi, I've changed my project deps to T5.4. After fixing some depricated page link methods my app compiles. However when I run I get exceptions from a menu loading service: is = assetSource.getClasspathAsset("menu.properties").getResource() .openStream(); } catch (RuntimeException e) { final String

Tapestry with Selenium and Cucumber

2016-06-30 Thread Qbyte Consulting
Hi, Are there any Tapestry sample projects around with Selenium and/or Cucumber tests? thanks, John

Re: Caching problem?

2016-06-30 Thread Nathan Quirynen
Ok, thanks for the heads-up, I added it to the constraint. Nathan On 30/06/16 17:10, Chris Poulsen wrote: btw the modules path can be both "modules" and "modules.gz" depending on various things. On Thu, Jun 30, 2016 at 4:35 PM, Nathan Quirynen mailto:nat...@pensionarchitects.be>> wrote:

Re: Caching problem?

2016-06-30 Thread Chris Poulsen
btw the modules path can be both "modules" and "modules.gz" depending on various things. On Thu, Jun 30, 2016 at 4:35 PM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hey Chris, > > Yeah, that's the only option I've found until now using following check as > you said: > > if( ! (path.s

Re: Caching problem?

2016-06-30 Thread Nathan Quirynen
Hey Chris, Yeah, that's the only option I've found until now using following check as you said: if( ! (path.startsWith("/assets/") || path.startsWith("/modules.gz/")) ) { // add headers } Hope I got everything covered by this, but it's at least an improvement as how it was before (cach

Re: Caching problem?

2016-06-30 Thread Chris Poulsen
check the path? (asset paths usually contains "/asset/" and module paths contains "/modules/") On Thu, Jun 30, 2016 at 11:55 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Is there any way to know in a Request filter if it is a page request (not > a request to some asset). > > I thou

Re: Caching problem?

2016-06-30 Thread Nathan Quirynen
Is there any way to know in a Request filter if it is a page request (not a request to some asset). I thought doing the following: PageRenderRequestParameters parameters = linkEncoder.decodePageRenderRequest(request); if (parameters == null) { // not a page request } But it seems that

Re: FW: Null pointer on sort with 5.3.8 that didn't occur with 5.3.7

2016-06-30 Thread Chris Poulsen
I guess using t:add is OK as long as the grid is not performing operations where it needs to access the property in the data source (for operations like sorting/filtering). Generally speaking we (@work) almost always end up using bean models, except in the most simple cases. -- Chris On Thu, Ju

RE: FW: Null pointer on sort with 5.3.8 that didn't occur with 5.3.7

2016-06-30 Thread Davide Vecchi
Thanks for the pointers, creating a BeanModel and adding my extra columns to it sounds like the right way to go. As an emergency solution for now I'm just going through all grids and adding the t:add columns into t:excludeSort in order to avoid the crashes on sorting. Then I will work on the act