Re: Live support solution

2013-04-30 Thread Tom Nys
: Monday, April 29, 2013 8:55 PM To: Tapestry users Subject: Re: Live support solution I've just checked in a fix to support the HttpSession in push events so you can ignore the BayeuxServer / BayeuxContext code I gave you. You can now use @SessionAttribute etc in your push events. I've also added

Re: Live support solution

2013-04-30 Thread Lance Java
Hmm... Your use case is really needing the entire server spec in your push event innit? It seems as if you are generating links in your push event's block, correct? Unfortunately, FakeHttpServletResponse does not have an implementation for encodeURL which is required by AbstractLink to generate

Re: Live support solution

2013-04-30 Thread Tom Nys
(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:722) -Oorspronkelijk bericht- From: Lance Java Sent: Tuesday, April 30, 2013 9:56 AM To: Tapestry users Subject: Re: Live support solution Hmm... Your

Re: Live support solution

2013-04-30 Thread Lance Java
It's fine in the sidebar, you just need to understand the limitations of trying to hack tapestry to function outside of the normal request / response flow. CometD requires that the HttpSession is created before the push occurs. Perhaps you could initialize your httpsession scoped list in the

Re: Live support solution

2013-04-29 Thread Lance Java
Unfortunately, CometD doesn't expose the HttpSession in a public API so I can't pass it to tapestry in the FakeHttpServletRequest. You can use the following code to get a session attribute: @Inject BayeuxServer bayeuxServer; HttpTransport transport = (HttpTransport)

Re: Live support solution

2013-04-28 Thread Lance Java
I've just committed changes to tapestry-cometd to support page activation context in push events. I've deployed version 0.9.16 to my github maven repository. Please increase your dependency version and give it a whirl. Cheers, Lance.

Re: Live support solution

2013-04-23 Thread Tom Nys
an option. I guess that putting the chat in the sidebar is just impossible becous of this? -Oorspronkelijk bericht- From: Lance Java Sent: Monday, April 22, 2013 6:14 PM To: Tapestry users Subject: Re: Live support solution Also, do you have a security framework that might be getting

Re: Live support solution

2013-04-23 Thread Lance Java
is just impossible becous of this? -Oorspronkelijk bericht- From: Lance Java Sent: Monday, April 22, 2013 6:14 PM To: Tapestry users Subject: Re: Live support solution Also, do you have a security framework that might be getting in the way? Perhaps this framework is returning a login

Re: Live support solution

2013-04-23 Thread Lance Java
I've created an issue here https://github.com/uklance/tapestry-cometd/issues/55

Re: Live support solution

2013-04-23 Thread Tom Nys
in the sidebar is just impossible becous of this? -Oorspronkelijk bericht- From: Lance Java Sent: Monday, April 22, 2013 6:14 PM To: Tapestry users Subject: Re: Live support solution Also, do you have a security framework that might be getting in the way? Perhaps this framework is returning

Re: Live support solution

2013-04-23 Thread Lance Java
Java Sent: Tuesday, April 23, 2013 10:24 AM To: Tapestry users Subject: Re: Live support solution Do you do any redirecting in your onActivate? (eg do you return another page under some conditions). Can you show me the (simplified) code that's firing for your push? I think I might have

Re: Live support solution

2013-04-23 Thread Lance Java
Unfortunately, the bug in tapestry-cometd means that context.getCount() will always be 0. I will need to fix this bug. This is executing your redirect logic in the push event which is then failing. I'll try to get you a fix over the weekend. I've detailed the bug fix quite thoroughly in the

Re: Live support solution

2013-04-22 Thread Tom Nys
of the onPassivate inside the page i want to embed it in. Greets -Oorspronkelijk bericht- From: Taha Siddiqi Sent: Thursday, April 4, 2013 4:37 PM To: Tapestry users Subject: Re: Live support solution I recently worked on a tapestry + cometd project. I didn't use the module. Just created

Re: Live support solution

2013-04-22 Thread Lance Java
To: Tapestry users Subject: Re: Live support solution On Thu, 04 Apr 2013 05:20:52 -0300, Tom Nys runesmac...@hotmail.com wrote: Hi there, Hi! I’m developing a website in tapestry and trying to implement live support (1 on 1). I tryed implementing tapestry-cometD but it doesn’t support

Re: Live support solution

2013-04-22 Thread Tom Nys
: Monday, April 22, 2013 4:17 PM To: Tapestry users Subject: Re: Live support solution Hi, sorry for the late response, I've been on holiday. I'm the author of tapestry-cometd. Tapestry-cometd has to fool tapestry into thinking there is a real request /response when a push is initiated. It does

Re: Live support solution

2013-04-22 Thread Lance Java
(so no specials there, just a simple chat reciever-sender like on your wiki). Greets Runesmacher -Oorspronkelijk bericht- From: Lance Java Sent: Monday, April 22, 2013 4:17 PM To: Tapestry users Subject: Re: Live support solution Hi, sorry for the late response, I've been on holiday

Re: Live support solution

2013-04-22 Thread Lance Java
a simple chat reciever-sender like on your wiki). Greets Runesmacher -Oorspronkelijk bericht- From: Lance Java Sent: Monday, April 22, 2013 4:17 PM To: Tapestry users Subject: Re: Live support solution Hi, sorry for the late response, I've been on holiday. I'm the author of tapestry

Live support solution

2013-04-04 Thread Tom Nys
Hi there, I’m developing a website in tapestry and trying to implement live support (1 on 1). I tryed implementing tapestry-cometD but it doesn’t support some of the functions already implemented on my pages. Are there any others i can try to implement? Greets Runesmacher

Re: Live support solution

2013-04-04 Thread Thiago H de Paula Figueiredo
On Thu, 04 Apr 2013 05:20:52 -0300, Tom Nys runesmac...@hotmail.com wrote: Hi there, Hi! I’m developing a website in tapestry and trying to implement live support (1 on 1). I tryed implementing tapestry-cometD but it doesn’t support some of the functions already implemented on my

Re: Live support solution

2013-04-04 Thread Tom Nys
de Paula Figueiredo Sent: Thursday, April 4, 2013 2:17 PM To: Tapestry users Subject: Re: Live support solution On Thu, 04 Apr 2013 05:20:52 -0300, Tom Nys runesmac...@hotmail.com wrote: Hi there, Hi! I’m developing a website in tapestry and trying to implement live support (1 on 1). I

Re: Live support solution

2013-04-04 Thread Taha Siddiqi
of cometD) but this isn't a nice solution since it might have broken some other stuff. -Oorspronkelijk bericht- From: Thiago H de Paula Figueiredo Sent: Thursday, April 4, 2013 2:17 PM To: Tapestry users Subject: Re: Live support solution On Thu, 04 Apr 2013 05:20:52 -0300, Tom