Re: measure time user stays on page

2015-05-11 Thread Martin Grigorov
Wicket pages are not cached by default. Navigating back in the browser should make a request to the server and execute the RENDER phase (onConfigure, onBeforeRender, onRender, onAfterRender, onDetach). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, May 11,

Refreshing a repeater component via ajax

2015-05-11 Thread Andreas
Can't refresh a repeater component after removing an item. Error: /Last cause: Component com.shop.ShoppingCartPanel$1 has been added to the target. This component is a repeater and cannot be repainted via ajax directly. Instead add its parent or another markup container higher in the hierarchy./

Re: Refreshing a repeater component via ajax

2015-05-11 Thread Ernesto Reinaldo Barreiro
Hi, On Mon, May 11, 2015 at 11:49 AM, Andreas cinemat...@gmail.com wrote: Can't refresh a repeater component after removing an item. Error: /Last cause: Component com.shop.ShoppingCartPanel$1 has been added to the target. This component is a repeater and cannot be repainted via ajax

Re: Refreshing a repeater component via ajax

2015-05-11 Thread Andreas
Hi, actualy I resolve it using a component wrapper, but I'm interesting in what you realy suggest. You might need to qualify this with a name: MyPanel.this and also make sure your panel call setOutputMarkupId(true) What is MyPanel? Maybe you mean *Panel.this*? -- View this message in

Re: Refreshing a repeater component via ajax

2015-05-11 Thread Ernesto Reinaldo Barreiro
Mind that your code gets removed once it arrives to the list: a known limitation of using nabble. I mean public ShoppingCartPanel(String id, Cart cart) { super(id); this.cart=cart; // make panel repaintable via AJAX. setOutputMarkupId(true)

Re: Refreshing a repeater component via ajax

2015-05-11 Thread Ernesto Reinaldo Barreiro
If you use only this it would refer to the anonymous AjaxFallbackLink On Mon, May 11, 2015 at 1:33 PM, Andreas cinemat...@gmail.com wrote: Yes. it works, but what in the above *this* means? Is not it the same with next? -- View this message in context:

Re: Refreshing a repeater component via ajax

2015-05-11 Thread Andreas
Yes. it works, but what in the above *this* means? Is not it the same with next? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-a-repeater-component-via-ajax-tp4670710p4670714.html Sent from the Users forum mailing list archive at Nabble.com.

Re: measure time user stays on page

2015-05-11 Thread Martin Grigorov
https://github.com/apache/wicket/blob/32af2c8cc8985fc8a52f492d854dbf3206b7c243/wicket-core/src/main/java/org/apache/wicket/markup/html/WebPage.java#L206 Wicket pages by default send do not cache me response headers. Safari should obey the rules. Martin Grigorov Wicket Training and Consulting

Re: measure time user stays on page

2015-05-11 Thread Chris
Hi Martin, Safari by default has turned cache on and therefore when clicking browser-back the page is loaded from the browser’s cache. Is there a way to circumvent this issue so that I can measure the time users spent on a current page somehow? best regards, Chris Am 11.05.2015 um 08:22

Re: measure time user stays on page

2015-05-11 Thread Marcel Barbosa Pinto
You can create a pixel image and compare a session time on the server.. Most likely the solution used by Google Analytics... Em 11/05/2015 13:38, Christoph Läubrich lae...@googlemail.com escreveu: If you are really eager to do so (in fact this is some kind of user tracking that might be

Google AppEngine Initializer and Wicket 6?

2015-05-11 Thread Christopher Merrill
(Is this the right place for this question? Should I raise an issue on WicketStuff instead?) Curious to see if anyone is doing this and what your level of success is? I ask because we have a Wicket/GAE app that we recently moved up to Wicket 6 and we're experiencing a lot of spontaneous

Re: measure time user stays on page

2015-05-11 Thread Chris
Hi all, thanks for your suggestions! @Martin, even when I override the setHeaders method, Safari seems to ignore the settings „disableCaching“. @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.disableCaching(); } br Chris Am 11.05.2015

Re: measure time user stays on page

2015-05-11 Thread Christoph Läubrich
If you are really eager to do so (in fact this is some kind of user tracking that might be problematic as well as you users might try to block it ...) you can fire an AJAX call in the domReady and one in the close callback or when clicking a link. In fact you can only GUESS the time a user