Re: Getting a page URL ..

2014-04-10 Thread Kalle Korhonen
On Thu, Apr 10, 2014 at 5:45 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 10 Apr 2014 20:30:42 -0300, Sanket Sharma > wrote: > > > Also, what would be the best way to replace localhost/hostname for >> outgoing links? Since the application will be running behind a >> fi

Re: 5.4 Endless Scroll Component

2014-04-10 Thread Barry Books
I wrote this one a few years ago. It's a mixin that you can attach to the grid. It fetches more rows using the pagination links and adds them to the page. This allows it to works the way Lance wants, it works with or without javascript enabled. Most/all of the work is done by a jquery lib https:/

Re: Getting a page URL ..

2014-04-10 Thread Thiago H de Paula Figueiredo
On Thu, 10 Apr 2014 20:30:42 -0300, Sanket Sharma wrote: Hi, Hi! Is there a way to get the URL of a page with request parameters in REST format? Tapestry format, with page activation context, which you don't seem to know yet, is REST format already. Please read http://tapestry.apach

Re: Getting a page URL ..

2014-04-10 Thread George Christman
I think you can just add multiple context values to your page render link like so. @Inject private PageRenderLinkSource linkSource; Link link = linkSource.createPageRenderLinkWithContext(YourPage.class, context1, context2); String absoluteURI = link.toAbsoluteURI(); System.out.println("URL " +

Getting a page URL ..

2014-04-10 Thread Sanket Sharma
Hi, Is there a way to get the URL of a page with request parameters in REST format? e.g. I have a REST scheme based on the following format http://localhost:8080/products/categoryid/productid Is there a straightforward way for creating URLs like this? I was looking at PageRenderLinkSource - I see

Re: 5.4 Endless Scroll Component

2014-04-10 Thread George Christman
On Thu, Apr 10, 2014 at 5:04 AM, françois facon wrote: The last time I tried Tap-Jquery it wasn't ready, I'll have to give it a try again. I'm using beta-3, do you think it will still work with 3 too? did you test the branch related to 5.4 ? > > According to > > https://github.com/got5/tapestry5

Re: 5.4 Endless Scroll Component

2014-04-10 Thread George Christman
That's an interesting idea lance. It would be cool if we could detect js before the page ever renders and serve up the appropriate UI. For the time being I'd like to use this feature with mobile, but after reading some of the side effects example the back button etc may prove very challenging. On

Antw: Re: subject authentication lost after several page requests

2014-04-10 Thread Marco Wulf
Hi, thanks for your advise. I'll check if I can change to tapestry-security. >>> "Thiago H de Paula Figueiredo" 10.04.2014 15:10 >>> On Thu, 10 Apr 2014 09:40:56 -0300, Marco Wulf wrote: Hi all, Hi! I use shiro-1.2.1 for web security implementations. Are you using tapestry-security

Re: subject authentication lost after several page requests

2014-04-10 Thread Thiago H de Paula Figueiredo
On Thu, 10 Apr 2014 09:40:56 -0300, Marco Wulf wrote: Hi all,Hi!I use shiro-1.2.1 for web security implementations.Are you using tapestry-security (Tapestry-Shiro integration)? If not, the problem is probably not in Tapestry, as your Tapestry code is just using Shiro and very probably wouldn't ha

subject authentication lost after several page requests

2014-04-10 Thread Marco Wulf
Hi all, I've an webapplication with a loginform. The user has to authenticate and authorize agains the LDAP system. ... Subject subj = SecurityUtils.getSubject(); subj.getSession(true); UsernamePasswordToken token = new UsernamePasswordToken(userName, password, true); token.setRememberMe(true)

subject authentication lost after several page requests

2014-04-10 Thread Marco Wulf
Hi all, I've an webapplication with a loginform. The user has to authenticate and authorize agains the LDAP system. ... Subject subj = SecurityUtils.getSubject(); subj.getSession(true); UsernamePasswordToken token = new UsernamePasswordToken(userName, password, true); token.setRememberMe(true)

Re: 5.4 Endless Scroll Component

2014-04-10 Thread françois facon
did you test the branch related to 5.4 ? According to https://github.com/got5/tapestry5-jquery/blob/5.4/src/main/java/org/got5/tapestry5/jquery/components/PageScroll.java and https://github.com/got5/tapestry5-jquery/blob/5.4/src/main/resources/META-INF/modules/tjq/jscrollpane.js this component s

Re: 5.4 Endless Scroll Component

2014-04-10 Thread Lance Java
Whatever the solution, I think it should gracefully degrade for crawlers / bots etc. Ie initially render page links then replace page links with infinite scroll if javascript is available. On 9 Apr 2014 15:43, "George Christman" wrote: > Hi Guys, has anybody happened to build an endless scroll c