WicketTimer is for updating a particular component, but is not useful
for client side timer events. Not everything is a Wicket component. I
have such a usecase, but I am reluctant to publish it, as it is
security related. No reason to spill the beans about that.

There are a lot of usecases where you have some or a large portion of
client side logic, where no Wicket component is attached to the
behavior. Depending on that client side logic you might call a
serverside function on the page. This is typically done in some
function in the head section of the page, and doesn't have to be
related to any wicket component.

Another usecase is when you have *a lot* of components that have the
same behavior, where the Ajax call is integrated in some client logic,
and you don't want your users to have to download a page of 1
megabyte. Calling a custom javascript function with some parameters
can be quite the saver for bandwidth.

The out-of-the-box Wicket ajax is nice for a lot of things, but I'm
very careful to see it as a golden hammer: not every problem is a nail
when you have a hammer in your hands.

Martijn


On 7/11/06, frankbille <[EMAIL PROTECTED]> wrote:
>
> Yes, it's easy to do something before the call using the
> callbackdecorator. I have actually implemented a calendar with
> drag'n'drop selection of a period. When the user then clicks on a
> AjaxLink I have decorated the call to first change the Ajax request url
> with some additional parameters from the selected range in the calendar.
>
> I would actually like to hear about such a usecase where one can't just
> use Wicket timer or call decoration.
>
> Regards
> Frank
> --
> View this message in context: 
> http://www.nabble.com/ajax-call-from-within-client-side-javascript-tf1923431.html#a5268492
> Sent from the Wicket - Dev forum at Nabble.com.
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-- 
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to