Re: [Wicket-user] Displaying a JavaScript alert after a click on a link

2007-06-01 Thread ChuckDeal
Huergo Perez wrote: > > What attribute of the Link should I modify with an attribute modifier? > I could not find any examples of this functionality. > > Also, I found the IAjaxCallDecorator interface. Could it be used to > display an alert after receiving an AJAX response? > > Thanks! > Huer

Re: [Wicket-user] Displaying a JavaScript alert after a click on a link

2007-06-01 Thread craigdd
Here is a pretty simple example. Link myLink = new Link("myLink"); myLink.add(new AttributeModifier( "onclick", true, new Model("javascript:callAlert()")); -Craig Huergo Perez wrote: > > What attribute of the Link should I modify with an attribute modifier? > I could not find a

Re: [Wicket-user] Displaying a JavaScript alert after a click on a link

2007-06-01 Thread Huergo Perez
What attribute of the Link should I modify with an attribute modifier? I could not find any examples of this functionality. Also, I found the IAjaxCallDecorator interface. Could it be used to display an alert after receiving an AJAX response? Thanks! Huergo Nino Saturnino Martinez Vazquez Wael

Re: [Wicket-user] Displaying a JavaScript alert after a click on a link

2007-06-01 Thread Nino Saturnino Martinez Vazquez Wael
use a attribute modifier and a behavior for this.. Huergo Perez wrote: > Hi All, > > I need to implement a functionality that in certain cases displays a > JavaScript alert dialog after a click on a link. > > For example, a table of records may contain a [Delete] link against each > record. When