Re: Need suggestion on minimizing session usage in wicket web application
OkkI think for large user base, I should go for stateless pages. But the problem is that my app is entirely ajax based. So, how would I use ajax behavior for stateless components. As far as I have read, ajax requires components to be stateful (/http://apache-wicket.1842946.n4.nabble.com/stateless-ajax-behavior-td1933611.html/). Will it be possible for me to use same ajax behavior like updating panel, etc on stateless pages? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-suggestion-on-minimizing-session-usage-in-wicket-web-application-tp4650956p4650976.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: Need suggestion on minimizing session usage in wicket web application
On Thu, Aug 2, 2012 at 11:37 PM, robmcguinness robert.mcguinness@gmail.com wrote: food for though in 6.0 branch getFrameworkSettings().setSerializer(new DeflatedJavaSerializer(getApplicationKey())); This wont help for the session size. The http session keeps only the last used page instance. The serialized page (the bytes) are stored in disk store unless you use HttpSessionDataStore (for Google AppEngine for example). Read https://cwiki.apache.org/confluence/display/WICKET/Page+Storage -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-suggestion-on-minimizing-session-usage-in-wicket-web-application-tp4650956p4650973.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Redirecting from Ajax onSubmit
On Thu, Aug 2, 2012 at 10:12 PM, vinitty vini...@gmail.com wrote: So What should i do exactly in this case check with Firebug/Dev tools what is the Ajax response -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-from-Ajax-onSubmit-tp4650938p4650971.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need suggestion on minimizing session usage in wicket web application
Actually I am planning to host the app in Google application engine. One thing I am not able to understand, getStatelessHint() if applied in the constructor of a page should return whether that page is stateless or not. So, in my page which is full of ajax and statefull components, why it is printing true? I am simply printing... public Page(PageParameters pageParameters)( final PageParameters pageParameters, UserDomain userDomain, UserDomain loggedInUserDomain) { // many statefull components added *System.out.println(this.getStatelessHint());* returning true.. } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-suggestion-on-minimizing-session-usage-in-wicket-web-application-tp4650956p4650982.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: Redirecting from Ajax onSubmit
This should work. It should generate Ajax response: ajax-responseredirectthe/url/here/redirect/ajax-response and wicket-ajax.js will make the redirect. On Thu, Aug 2, 2012 at 3:17 AM, vinitty vini...@gmail.com wrote: I am trying to do the redirection from AjaxSubmitLink onSubmit method using this RequestCycle.get().scheduleRequestHandlerAfterCurrent(reqTarget); But i am not seeing redirection on browser I am using wicket 1.5.7 Please help me -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-from-Ajax-onSubmit-tp4650938.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Close Modal Widow via external link?
On Fri, Aug 3, 2012 at 5:23 AM, hannach hann...@solutiondynamics.com wrote: I have Modal window that contains external webpage. (e.g. RedirectPage(www.google.com)) I need to figure out the way to close the modal window by clicking button or link from this external site. The modal window uses an IFrame to show a page. Search for solutions how to reach the containing page from the iframe. E.g. http://stackoverflow.com/questions/935127/how-to-access-parent-iframe-from-javascript What kind of javascript do I have to use to close the modal window? I've tried to copy the javascript that is called for Modal.closeCurrent(target) but it seems not working. Any help would be greatly appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Close-Modal-Widow-via-external-link-tp4650975.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need suggestion on minimizing session usage in wicket web application
On Fri, Aug 3, 2012 at 5:11 PM, kshitiz k.agarw...@gmail.com wrote: Actually I am planning to host the app in Google application engine. One thing I am not able to understand, getStatelessHint() if applied in the constructor of a page should return whether that page is stateless or not. So, in my page which is full of ajax and statefull components, why it is printing true? I am simply printing... public Page(PageParameters pageParameters)( final PageParameters pageParameters, UserDomain userDomain, UserDomain loggedInUserDomain) { // many statefull components added *System.out.println(this.getStatelessHint());* returning true.. use #isPageStateless() instead. } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-suggestion-on-minimizing-session-usage-in-wicket-web-application-tp4650956p4650982.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need suggestion on minimizing session usage in wicket web application
Ya..that worked...and for each component...I think statelessChecker is there. But I am not able to figure out how to use it for a component? I read you post http://apache-wicket.1842946.n4.nabble.com/Why-is-stateless-from-making-my-page-stateful-td3662059.html http://apache-wicket.1842946.n4.nabble.com/Why-is-stateless-from-making-my-page-stateful-td3662059.html But not able to get... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-suggestion-on-minimizing-session-usage-in-wicket-web-application-tp4650956p4650987.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: Redirecting from Ajax onSubmit
On Thu, Aug 2, 2012 at 5:20 PM, Paul Bors p...@bors.ws wrote: Can't you simply get away with calling setResponsePage()? This is the same. setResponsePage() uses #scheduleRequestHandlerAfterCurrent(). ~ Thank you, Paul C Bors On Aug 1, 2012, at 20:17, vinitty vini...@gmail.com wrote: I am trying to do the redirection from AjaxSubmitLink onSubmit method using this RequestCycle.get().scheduleRequestHandlerAfterCurrent(reqTarget); But i am not seeing redirection on browser I am using wicket 1.5.7 Please help me -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-from-Ajax-onSubmit-tp4650938.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Need suggestion on minimizing session usage in wicket web application
Do you use Wicket 6? If so, the latest snapshot includes an enhanced page view in the page inspector of the Wicket debug bar. This page view can be filtered to show only stateful components and behaviors. If you're on Wicket 1.5, check out https://issues.apache.org/jira/browse/WICKET-4244. stateful_page_inspector.patch has the version I submitted for 1.5 in November. You can have a look at the screenshots in the issue to see what it does. On 03/08/2012 10:44 AM, kshitiz wrote: Ya..that worked...and for each component...I think statelessChecker is there. But I am not able to figure out how to use it for a component? I read you post http://apache-wicket.1842946.n4.nabble.com/Why-is-stateless-from-making-my-page-stateful-td3662059.html http://apache-wicket.1842946.n4.nabble.com/Why-is-stateless-from-making-my-page-stateful-td3662059.html But not able to get... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Need-suggestion-on-minimizing-session-usage-in-wicket-web-application-tp4650956p4650987.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Repeating TextFields
On Thu, Aug 2, 2012 at 3:25 AM, Benjamin Heiskell ben.heisk...@gmail.com wrote: Hi, I have a ListString that I want to represent with TextFields. I need to be able to dynamically add and remove them via AJAX. For dynamic add/remove of a single item see : https://github.com/vineetsemwal/quickview/wiki From what I’ve read online (and experienced firsthand) ListViews do not seem to be designed for this. What is the best way to approach this problem? Thanks! Ben - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: load properties file from extrnal path
Hi, You need a custom implementation of org.apache.wicket.resource.loader.IStringResourceLoader. Check the default provided implementations for inspiration. You can register it with: MyApp#init(): getResourceSettings().getStringResourceLoaders().add(0, new MyImpl()) On Thu, Aug 2, 2012 at 9:13 AM, oliver.stef ova...@gmail.com wrote: Hi, How can I load external properties file? (i mean that I don't want to load a file that is in the regular wicket hierarchy where i have HelloWorld.java, HelloWorld.html, HelloWorld.properties), what i want is to load file from- C:\project\HelloWorld.properties. i tried to do this but wicket won't load the file. any tips? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/load-properties-file-from-extrnal-path-tp4650944.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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there a MountedMapper respecting better matching path names?
Extend MountedMapper and override its #getCompatibilityScore() to return the right one depending on the second parameter. Some people use a dispatcher page: the page receives the initial call and then depending on the parameters throws RestartResponseException with the more specific one. On Thu, Aug 2, 2012 at 2:15 PM, Per Newgro per.new...@gmx.ch wrote: Hi, before i do this myself i would like to ask the community if someone has done this already. I want to mount pages at these urls: mountPage(/pages/${color}/advertise, AdvertisePage.class); mountPage(/pages/${color}/${niceColor}, ColoredPage.class); But because they both have 3 matching url path segments the first after sorting all available mount mapper wins. But in this case the almost exact url /pages/red/advertise is referencing the ColoredPage but should the AdvertisePage. Only ordering the mounts is influencing the result. But this is not a good option. So i would like to know if there is already a library providing my required behavior. Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Stateless ajaxPagingNavigator...
hi, Is there any stateless ajax paging navigator like staeless ajax form or links? I am not able to find any related component in internet... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-ajaxPagingNavigator-tp4650994.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: Editing list in Dataview
Thanks Paul...I was wondering though..is there any way to do without Spring? I mean why to go for Spring just for one component... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Editing-list-in-Dataview-tp4650885p4650995.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
Alternative way to deal with session minimizing issue
Hi, As we all know that wicket provides great component to develop complex web applications. But being stateful, one may have to think about session consumption. So, what I was thinking if states of different pages are stored in session, can we clear our page maps for every new page request? Will it help to minimize session usage ?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Alternative-way-to-deal-with-session-minimizing-issue-tp4650996.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