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
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
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
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
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
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
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
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
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
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
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:
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
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.
13 matches
Mail list logo