wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: How to update a label BEFORE a form is submitted?
Date Thu, 22 Mar 2012 14:35:08 GMT
Hi,

Check IAjaxCallDecorator.
With a decorator you can change the label with pure JavaScript and
after that let Wicket do its Ajax call.
http://www.wicket-library.com/wicket-examples/ajax/links -> Success
link shows an alert(). Just change that JS to update a label.

On Thu, Mar 22, 2012 at 4:31 PM, pkc <pkcinna@gmail.com> wrote:
> Still looking for help on how to update page components before a long running
> page submit.  I don't seem to see the light on chaining events from same
> button so if someone can provide an example it would be greatly appreciated.
>
> 1) User presses submit button
> 2) A label gets updated saying "button pressed!"
> 3) Then the submit is processed
>
> Seems I can do this with the ajax self updating timer behavior or mixing
> client-side javascript with wicket components but that just doesn't seem
> right for my scenario. Any working example of any sort will help though.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-a-label-BEFORE-a-form-is-submitted-tp4495663p4495663.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Mime
View raw message