ick a soft binding like that will not stand up to refactoring. you are also limited to the page - what if you need this for component - then you are back to the interface idea i mentioned. also the interface defines some useful options for ajax - such as: always use top page version and ignore requ
>From the client side it could be something like:
wicketAjaxMethodCall("raiseTemperature", "amount=1&person=ivaynberg");
Serverside:
public class MyPage extends WebPage {
public void raiseTemperature(AjaxRequestTarget target) {
double amount = /* get amount from request parameters */
but this is so custom i dont see what we can do from the framework's point of view to make this easier. and its also very simple... i mean what do you see this integration looking like?-Igor
On 7/11/06, Maurice Marrink <[EMAIL PROTECTED]> wrote:
Whoh, settle down every one. this is not worth gettin
why not write this whole part as a gwt widget and connect it to wicket?-IgorOn 7/11/06, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:In our case, not for specific libraries. We do use
behavior.js,prototype.js, scriptaculous.js, and dojo for effects and attaching_javascript_ behavior to specific com
Whoh, settle down every one. this is not worth getting upset about :).
Thanks Igor this gives me some starting point.
The point Martijn was trying to make is that it would be nice if what
you are describing here was already ready for use in the wicket core.
Thanks,
Maurice
On 7/11/06, Igor Vayn
so what exactly is the problem?create callback interfaces for the operations you want to perform on a componentimplement them on a componentin renderhead() write out a _javascript_ function that uses urlfor(interface) and calls it using wicketajaxget
function foo(param1, param2) { var url=""> u
In our case, not for specific libraries. We do use behavior.js,
prototype.js, scriptaculous.js, and dojo for effects and attaching
javascript behavior to specific components.
In the case of Maurice, the problem is that we have key handlers that
capture cursor key presses, and move the focus from o
Because it is built using Wicket already? Why not convert the whole
app to GWT? :-)
I think this can be a good addition to Wicket, to be able to call into
a page using Ajax from within some client side javascript. There is no
need to do that in gwt, we're quite happy to write our own javascript
an
On Tue, 2006-07-11 at 15:14 +0200, Martijn Dashorst wrote:
> 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.
I'm not asking you to do anything like that :) My imagination is just
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 y
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
The usecase is that you sometimes want to work in Javascript on the
client side, and trigger an ajax event from there.
Wicket doesn't have a DWR way of working, so I suggested getting the
client side url for the ajaxlink, and evaluate that when the ajax call
needs to be done. On the serverside you
My javascript is invoked by a mouseclick on a non wicket html component.
Making this a wicket component would be unpractical in my case.
I am currently using an AjaxLink which already uses an
AjaxEventBehaviour and am already customizing the callback script with
a callbackdecorator. It is not that
How is your javascript invoked? If it's anything that a on* (onclick,
onmouseover) can handle, then take a look at AjaxEventBehavior and
AjaxCallbackDecorator.
Regards
Frank Bille
Avaleo
On Tue, 2006-07-11 at 11:39 +0200, Maurice Marrink wrote:
> Hi,
>
> I need to trigger an ajax request from wi
14 matches
Mail list logo