Re: Hyphens in URL possible?

2016-05-02 Thread Stephen Nutbrown
Carlos, Many thanks for this - this is absolutely fantastic. Thank you for the effort of posting this and the help. It'll take me a little bit of time to digest it and fully understand how I can apply this to our exact project, but it looks like everything I need is here! Many thanks again, I rea

Re: Changing Grid.currentPage persistency to flash

2016-05-02 Thread Barry Books
I have not changed it to flash but I did write a persistence strategy to put the values is the url. I would agree that persisting the values in the session has issues. The only problem with using the URL is if you have more than one grid on a page you have to name the query parameters correctly. Us

RE: Changing Grid.currentPage persistency to flash

2016-05-02 Thread Davide Vecchi
Thanks, I didn't know about Persistence Strategy Inheritance, it's good info. In this specific case I probably will not need to use it because we have already heavily customized the grid code, but I will certainly go for this inheritance mechanism when I need to control persistency on a componen

Re: Changing Grid.currentPage persistency to flash

2016-05-02 Thread Chris Poulsen
I haven't used the grid with flash persistence, so I cannot comment on that. But I just want to let you know that you can control the behavior of @Persist inside the Grid using "Persistence Strategy Inheritance" ( http://tapestry.apache.org/persistent-page-data.html ) without having to alter the c

Re: Hyphens in URL possible?

2016-05-02 Thread Carlos Montero Canabal
Yes. I do it in many webapps. AppModule: @Contribute(PageRenderLinkTransformer.class) @Primary public static void provideURLRewriting(final OrderedConfiguration configuration) { configuration.addInstance( “MyLinkTransformer", MyLin

RE: Hyphens in URL possible?

2016-05-02 Thread Davide Vecchi
The JavaDoc for service interface org.apache.tapestry5.services.linktransform.PageRenderLinkTransformer seems to suggest it can be used for that. However this is just a guess and a pointer if you want to look at it, because I have no previous knowledge or experience with that. I'm sure you are

Hyphens in URL possible?

2016-05-02 Thread Stephen Nutbrown
Hi, I am working on a tapestry project and someone has asked me to change the URLs to include hyphens which they believe will improve SEO. As per https://support.google.com/webmasters/answer/76329?hl=en, it's supposedly good practise to "Consider using punctuation in your URLs. The URL *http://ww

Changing Grid.currentPage persistency to flash

2016-05-02 Thread Davide Vecchi
Hi everybody I see that the instance field that holds the current page number of a grid (org.apache.tapestry5.corelib.components.Grid.currentPage) is annotated with @Persist . This has the probably desirable effect that f.ex. if I am on webpage A and it has a grid and I browse to its page #2 a