Re: Redirecting from Ajax onSubmit

2012-08-03 Thread vinitty
It was the problem with the Ajax.basurl , now its working fine -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirecting-from-Ajax-onSubmit-tp4650938p4650998.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: How to Mount Multiple URLS to Same Class in wicket 1.5.7

2012-08-03 Thread vinitty
Thanks Christophe Opoix for the suggestion and it works -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Mount-Multiple-URLS-to-Same-Class-in-wicket-1-5-7-tp4650932p4650997.html Sent from the Users forum mailing list archive at Nabble.com. ---

Alternative way to deal with session minimizing issue

2012-08-03 Thread kshitiz
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

Re: Editing list in Dataview

2012-08-03 Thread kshitiz
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 a

Stateless ajaxPagingNavigator...

2012-08-03 Thread kshitiz
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 mail

Re: Is there a MountedMapper respecting better matching path names?

2012-08-03 Thread Martin Grigorov
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,

Re: load properties file from extrnal path

2012-08-03 Thread Martin Grigorov
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 A

Re: Repeating TextFields

2012-08-03 Thread Martin Grigorov
On Thu, Aug 2, 2012 at 3:25 AM, Benjamin Heiskell wrote: > Hi, > > I have a List 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

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread Bertrand Guay-Paquet
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.

Re: Redirecting from Ajax onSubmit

2012-08-03 Thread Martin Grigorov
On Thu, Aug 2, 2012 at 5:20 PM, Paul Bors 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 wrote: > >> I am trying to do the

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread kshitiz
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.nabbl

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread Martin Grigorov
On Fri, Aug 3, 2012 at 5:11 PM, kshitiz 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

Re: Close Modal Widow via external link?

2012-08-03 Thread Martin Grigorov
On Fri, Aug 3, 2012 at 5:23 AM, hannach 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.

Re: Redirecting from Ajax onSubmit

2012-08-03 Thread Martin Grigorov
This should work. It should generate Ajax response: the/url/here and wicket-ajax.js will make the redirect. On Thu, Aug 2, 2012 at 3:17 AM, vinitty wrote: > I am trying to do the redirection from AjaxSubmitLink onSubmit method > using this > RequestCycle.get().scheduleRequestHandlerAfterCurrent(r

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread kshitiz
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 printi

Re: Redirecting from Ajax onSubmit

2012-08-03 Thread Martin Grigorov
On Thu, Aug 2, 2012 at 10:12 PM, vinitty 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

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread Martin Grigorov
On Thu, Aug 2, 2012 at 11:37 PM, robmcguinness 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 pag

Re: Need suggestion on minimizing session usage in wicket web application

2012-08-03 Thread Bertrand Guay-Paquet
I have not used stateless ajax myself so I can't help you much there. Have a look here for stateless ajax: https://github.com/jolira/wicket-stateless Also, before you make such big modifications, I suggest you take the time to profile the memory usage of your pages. There could be a 1-hour fix

Re: How to Mount Multiple URLS to Same Class in wicket 1.5.7

2012-08-03 Thread Christophe Opoix
Couldn't you create a class dynamically with javaassist and mount it at startup ? On Thu, Aug 2, 2012 at 9:15 PM, vinitty wrote: > Actually I cant do in my case > As i have given a flexibility to create n number of pages by adding and > removing different wicket components > > and my framework