Howto have just currently viewed page in session...

2015-07-20 Thread tomask79
Hi guys, I need consultation.

I have written simple page eviction strategy, which holds *just one page*per
browser tab (with JS help). It works fine until I add wicket ajax timer
behaviour to all our pages and user redirect to another page(by code or
click) in the same moment when timer ajax is about to be processed at
server...In that moment I need to hold at least two pages at
server...Current page A with ajax timer and redirected B also with ajax
timer, because ajax timer needs to have page at server... 

Problem: 

1) In the IDataStoreEvictionStrategy implementation, do I have any chance of
getting the information that oldest page from PageTable is currently
referenced by queued ajax request at server? Because I need to leave that
page in the session...

2) For now it seems that If all pages in application have ajax timer
behaviour then I need to keep at least last two pages in session...I don't
see any other way, or is it?

thanks in advance

Tomas




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Howto-have-just-currently-viewed-page-in-session-tp4671631.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AtmosphereBehavior - hard reference to page object

2015-07-20 Thread Daniel Stoch
Hi,

In Wicket (AFAIK) we keeps only actual page reference in a web
session, all other pages as serialized to a page store.
AtmosphereBehavior registers itself as a listener to
AtmosphereResource object. Because of this Atmosphere keeps references
to all registered pages (until such resource expires). I think it
could be a problem in high load applications: theses hard references
could eat all memory.

What do you think: is it a problem or not (and I am wrong in this case)?

--
Best regards,
Daniel

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket 6 - test ajax component.

2015-07-20 Thread gump lee
Dear All,

Is it possible to write a unit test with WicketTester which I need to send
Enter key to an AJAX component?


Best regards,
Gump