Re: Ajax Navigation

2011-07-24 Thread Barry Books
If you look in my fork of tapestry5-jquery on github https://github.com/trsvax/tapestry5-jquery there is a mixin called bind that supports this. You can bind jQuery events to Tapestry component events and provide a tittle and history callback when the event is triggered. It also supports Tapestry

Re: Remove @PageAttached & @PageDetached

2011-07-24 Thread Josh Canfield
Attach and detach are request level events. Or so says the documentation, I've never had the urge to use them... On Jul 24, 2011 10:48 AM, "Thiago H. de Paula Figueiredo" < thiag...@gmail.com> wrote: > On Sun, 24 Jul 2011 01:06:50 -0300, Lenny Primak > wrote: > >> Tapestry in action book still ref

Re: Ajax Navigation

2011-07-24 Thread dragan.sahpas...@gmail.com
HI, On Sun, Jul 24, 2011 at 7:14 PM, stephanos2k wrote: > Thanks a lot for your post! :-) > > I looked at what you suggested, are there any hints/tips on how to > integrate > such functionality with Tapestry? > > Well it's obviously not trivial. > I suppose a JS script (like history.js) should r

ClientID and jQuery selectors

2011-07-24 Thread Barry Books
I'm working on a site using the new jQuery module and I've run into a bit of a problem trying to select elements by id when using ajax because I end up with something like this. for Including a clientId helps by adding name="slider" but that does not really solve the problem because name does

Re: Remove @PageAttached & @PageDetached

2011-07-24 Thread Thiago H. de Paula Figueiredo
On Sun, 24 Jul 2011 01:06:50 -0300, Lenny Primak wrote: Tapestry in action book still refers to them. Oh oh now I have to change things :) I am assuming @BeginRender and @AfterRender are the equivalents? They were never equivalent. @PageAttached and @PageDetached are page instance lifecyc

Re: Ajax Navigation

2011-07-24 Thread stephanos2k
Thanks a lot for your post! :-) I looked at what you suggested, are there any hints/tips on how to integrate such functionality with Tapestry? I suppose a JS script (like history.js) should receive and handle + request and 'call' Tapestry to actually do the rendering. But I can't seem to come up

Re: what is called when - ajax version

2011-07-24 Thread Geoff Callender
Done - new example "AJAX: What is Called and When" added as: http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/whatiscalledandwhen However, I don't know that it helps solve your problem, unless maybe you test request.isXHR() in pageAttached() and pageDetached()??? Geoff O

Re: Ajax Navigation

2011-07-24 Thread dragan.sahpas...@gmail.com
Hi, The approach in general is either use HTML5 history (works for html5 compatible browsers only), or use the hash change mechanism. As far as I know there is no out of the box integration with tapestry5, but there are various js scripts like the history.js

Ajax Navigation

2011-07-24 Thread stephanos2k
I have a web page similar to GMail: one list of items, sub-folders (like Spam/Inbox) and separate items to 'go in to'. Everything works via AJAX, but now I want to have bookmarkable URLs. Any recommendations on how to achieve this with Tapestry? Cheers -- View this message in context: http://ta