Re: Handling futures

2011-07-23 Thread Rodolfo Hansen
Have you thought about keeping your future in another scope? a conversation scope for example, or delegating it to the application / session ? On Sat, Jul 23, 2011 at 10:31 PM, Bertrand Guay-Paquet < ber...@step.polymtl.ca> wrote: > Thanks for your answers Scott. > > I thought Wicket could essen

Re: Handling futures

2011-07-23 Thread Bertrand Guay-Paquet
Thanks for your answers Scott. I thought Wicket could essentially serialize a page any time it sees fit. Is that the case? If so, that would mean that even if the page containing the Future reference is still open in the browser window, the Future could be thrown away. Wouldn't that be a defin

Re: Avoid doing lot of Ajax request

2011-07-23 Thread Clint Checketts
I'm not sure I understood your response. Are you saying you don't want to set the throttle for every link you do? If so, sub-class it and reuse your special subclass that always throttles. On Sat, Jul 23, 2011 at 2:06 AM, coincoinfou wrote: > But I have to throttle delay for a set of same type li

Re: "Select" Component with Blank Choice at the Top

2011-07-23 Thread Martin Grigorov
new SelectOption(id, Model.of("")) ?! On Fri, Jul 22, 2011 at 10:24 PM, eugenebalt wrote: > I am using the Select component to represent the HTML OptionGroup with > Options. > > The Select must have a blank choice displayed at the top. > > With DropDowns, I would have been able to do "setNullVali

Re: Getting Post DATA

2011-07-23 Thread Martin Grigorov
mountPage() uses MountedMapper behind the scenes. MountedMapper replaces QueryStringUrlCodingStrategy and several other url coding strategies from 1.4. Read http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/ for more information. Pages' PageParameters extract only GET parameters, i.e. th

Re: Re-Captcha with WiQuery ButtonBehavior causes "Channel busy - postponing"

2011-07-23 Thread Alec Swan
Dan, Thanks for the pointer. It turned out that our webapp is using jQuery already and adding WiQuery behavior caused a duplicate WiQuery's jQuery reference possibly causing problems with handling Ajax requests. Thanks, Alec On Fri, Jul 22, 2011 at 6:16 PM, Dan Retzlaff wrote: > Alec, > > Have

Re: dynamic DataTable

2011-07-23 Thread davut uysal
Thanks for the tip Bertrand, I understand SQLResultRow better now. I will try that Regards, On Saturday, 23 July 2011, Bertrand Guay-Paquet wrote: > Hi, > > SQLResultRow is a type I made up. I didn't know what type you received from your SQL query, so I used that. I assumed that your result set

Re: Handling futures

2011-07-23 Thread Scott Swank
Perhaps a transient Future would work for you after all. If the user navigates away the Page is serialized and the Future is thrown away. If you do put futures in a Map, perhaps in the Session, I'd wrap that in an AbstractReadonlyModel. Then you could use have a Map> (assuming your key is an Integ

Re: dynamic DataTable

2011-07-23 Thread Bertrand Guay-Paquet
Hi, SQLResultRow is a type I made up. I didn't know what type you received from your SQL query, so I used that. I assumed that your result set is composed of rows where each row can be used as a "map" with key=column name and value=column value. With that in hand, you could iterate over the

Re: Handling futures

2011-07-23 Thread Bertrand Guay-Paquet
I haven't actually done it yet, but the 3 steps you list are what I have in mind. After these, I plan to use a javascript timer that polls the status of the request and updates a label (or icon). That ajax behavior would be the one polling the Future. What I can't wrap my head around is this

Re: dynamic DataTable

2011-07-23 Thread davut uysal
Hi Bertrand, What is SQLResultRow, is it a Wicket Type? Or should I create a custom class named "SQLResultRow"? The problem is, I can't create a custom "SQLResultRow" because I can't be sure of its member fields. User can run any SQL, so the type must be compatible with any result. For example:

Re: Handling futures

2011-07-23 Thread Scott Swank
What does your workflow look like? 1. submit form (or ajax event) 2. create Future 3. return response page (or ajax response) Now who checks the Future and what sort of UI result occurs? Scott On Fri, Jul 22, 2011 at 8:55 PM, Bertrand Guay-Paquet wrote: > Hello, > > I can't find the correct wa

Re: Avoid doing lot of Ajax request

2011-07-23 Thread coincoinfou
But I have to throttle delay for a set of same type links not only one -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Avoid-doing-lot-of-Ajax-request-tp3687472p3688488.html Sent from the Users forum mailing list archive at Nabble.com.