Custom Asset Locator

2015-01-05 Thread Martin Papy
Hi Everyone, ( I am not sure if my previous email reached the ML, so I resend it... Apologies if I am spamming ) I am following and developing in Tapestry for a while now. Now I am interested in moving to T5.4. One area that I stumble upon during migration is Asset Location. Basically I built fo

Re: URL Rewrite with Form Validations

2015-01-05 Thread Thiago H de Paula Figueiredo
On Mon, 29 Dec 2014 12:47:07 -0200, George Christman wrote: Hi Thiago, The following approach does indeed work, but I'd like to verify it to be the correct approach for handling ComponentEventLinkTransformer. Looks good to me. :) SimpleLink is basically the class you wrote, I'm just not s

Re: Grid data source, BeanModel and nested properties

2015-01-05 Thread Thiago H de Paula Figueiredo
On Fri, 02 Jan 2015 06:45:30 -0200, Ilya Obshadko wrote: I'm trying to implement a Grid data source optimized for database retrievals (with paging support). Basically it's derived from HibernateGridDataSource from Tapestry distribution, and provides support for complex Criteria queries: https

Re: ServiceOverride help wanted

2015-01-05 Thread Thiago H de Paula Figueiredo
There's documentation for that: http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html On Sat, 03 Jan 2015 13:38:18 -0200, Dimitris Zenios wrote: This is the way i do it and it works @Contribute(ServiceOverride.class) public static void setupApplicationServiceOverrides(Mapp

Re: URL Rewrite with Form Validations

2015-01-05 Thread George Christman
I was a little confused, but I was able to resolve everything without issue. On Mon, Jan 5, 2015 at 6:27 AM, Thiago H de Paula Figueiredo wrote: > On Mon, 29 Dec 2014 12:47:07 -0200, George Christman > wrote: > >> Hi Thiago, The following approach does indeed work, but I'd like to >> verify it t

Re: Tapestry URLEncoder

2015-01-05 Thread George Christman
So do you believe if I use a custom implementation for PageActivationRequestParameter with the use of the java URLEncoder that could pose potential issues? I've had it implemented locally for the past week without any issues, but that's not to say once it's in production the user base won't find a

Prevent Tapestry from redirecting non existing pages to index.

2015-01-05 Thread George Christman
Hi guys, I'm wondering if Tapestry has a configuration setting some where to prevent the framework from redirecting non existing pages to the Index. This creates an SEO nightmare when pages are removed from the app, but still exist in the search engines index. They end up seeing the index page as h

Re: URL Rewrite with Form Validations

2015-01-05 Thread Thiago H de Paula Figueiredo
On Mon, 05 Jan 2015 12:59:16 -0200, George Christman wrote: I'm not sure why I ended up finding an alternative to your simplelink approach that I seem to like much better. I'd be curious as to your thoughts. private Link buildLink(String basePath, PageRenderRequestParameters parameters, St

Re: Grid data source, BeanModel and nested properties

2015-01-05 Thread Ilya Obshadko
I have ended up with custom DTO classes and Hibernate projections. Although the resulting code looks far from elegant, it's extremely fast, compared to 'normal' retrieval using lists, without paging (especially for lists with hundreds of records of course). On Mon, Jan 5, 2015 at 1:39 PM, Thiago H

Re: Prevent Tapestry from redirecting non existing pages to index.

2015-01-05 Thread Chris Poulsen
A strict onActivate in the index page can handle this On Mon, Jan 5, 2015 at 4:10 PM, George Christman wrote: > Hi guys, I'm wondering if Tapestry has a configuration setting some > where to prevent the framework from redirecting non existing pages to > the Index. This creates an SEO nightmare w

Re: Prevent Tapestry from redirecting non existing pages to index.

2015-01-05 Thread George Christman
So are you saying throw an exception if the home page onActivate contains any type of activation context? On Mon, Jan 5, 2015 at 11:53 AM, Chris Poulsen wrote: > A strict onActivate in the index page can handle this > > On Mon, Jan 5, 2015 at 4:10 PM, George Christman > wrote: > >> Hi guys, I'm

Re: Prevent Tapestry from redirecting non existing pages to index.

2015-01-05 Thread Chris Poulsen
yeah, examine the eventcontext and return an error/error page or whatever, if it does not contain what you expect. On Mon, Jan 5, 2015 at 8:28 PM, George Christman wrote: > So are you saying throw an exception if the home page onActivate > contains any type of activation context? > > On Mon, Jan

Re: Prevent Tapestry from redirecting non existing pages to index.

2015-01-05 Thread George Christman
Okay great, that seems pretty simple. Thanks On Mon, Jan 5, 2015 at 3:27 PM, Chris Poulsen wrote: > yeah, examine the eventcontext and return an error/error page or whatever, > if it does not contain what you expect. > > On Mon, Jan 5, 2015 at 8:28 PM, George Christman > wrote: > >> So are you s

Re: Prevent Tapestry from redirecting non existing pages to index.

2015-01-05 Thread Kalle Korhonen
Tapestry-routing (http://tynamo.org/tapestry-routing+guide) explicitly doesn't allow Index pages but lets you specify context-less routes instead and gives 404 for anything else. I've always thought that's the way it should work by default. Kalle On Mon, Jan 5, 2015 at 12:27 PM, Chris Poulsen wr

Re: Custom Asset Locator

2015-01-05 Thread Martin Papy
Hi, No one have an idea on how to achieve this ? I suspect I am not the only one who need to store user files outside the Application directory ? I would really appreciate some help -- Martin On Mon, Jan 5, 2015 at 3:00 PM, Martin Papy wrote: > Hi Everyone, > > ( I am not sure if my previous