Re: Ajax download stops AjaxSelfUpdatingTimer
I've opened an issue on Jira with my problem. WICKET-5822 https://issues.apache.org/jira/browse/WICKET-5822 . -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978p4669185.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
Re: Ajax download stops AjaxSelfUpdatingTimer
Hi again, Basically I have a label refreshed automatically with: It is refreshed automatically by the timer until I click an ajax link like the following: After I click the download link the file is downloaded but the ajax timer behavior is not triggered anymore. Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978p4668983.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
Ajax download stops AjaxSelfUpdatingTimer
Hi, I encounter a strange behavior related to AjaxSelfUpdatingTimerBahavior. I triggers normally until I click a link that downloads a dynamic resource. The ajax download link is constructed using after the recommendations from: https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow The problem is target.appendJavaScript(setTimeout(\window.location.href=' + url + '\, 100);); but if i comment it the download doesn't work anymore. Is there another solution to download a file using Ajax or to restart the timer? If I refresh the page everything is back to normal again. Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-download-stops-AjaxSelfUpdatingTimer-tp4668978.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
changing the page in inmethod grid
Hello, I'm trying set the current page number in a DataGrid to the last one but don't know how to clear the cachedPageCount in AbstractPageableView. In my scenario after creating a new entity I want to select it and change the page of the grid to the page where this element exists. It works the page of this new element is not a new one (the grid caches the number of pages in cachedPageCount and clears this variable only in onBeforeRender() ). I need to force a reload in the same request and after that to set the current page to the last one ... how can I do it? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/changing-the-page-in-inmethod-grid-tp4649581.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
custom listeners
I'm working on something that uses custom information attached to the components and needs some sort of a listeners mechanism. The path taken was to register the needed listeners in onCreate() of some component but I don't have a solution to unregister ... The onRemove doesn't help because it's called when replacing the component with another in an ajax call. Is there a way to be notified that a component is reatached to component hierarchy? I'm using wicket 1.4. Is there another solution? Imagine that using a ListView that creates elements and every element registers some listeners ... I need to clear those listeners when the element is destroyed. Thak you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-listeners-tp4641122.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