Yep,
you need to also do:
add(AbstractScriptaculousBehavior.newJavascriptBinding());

On 10/31/07, Ernesto Reinaldo Barreiro <[EMAIL PROTECTED]> wrote:
>
> Probably your are missing a HeaderContributor adding the actual
> effects.js and prototype.js  to your page? Just guessing...
>
> SantiagoA wrote:
> > Hi,
> > i try to use the Effect class of the scriptaculous jar in a testApp.
> >
> > My Code:
> > Java:
> > import org.wicketstuff.scriptaculous.effect.Effect;
> > ...
> > final StaticImage stimg = new StaticImage("fehler");
> > AjaxLink al = new AjaxLink("clickImg") {
> >       private static final long serialVersionUID = 0L;
> >
> >       @Override
> >       public void onClick(AjaxRequestTarget target) {
> >           target.appendJavascript(new Effect.Fade(this).toJavascript());
> >            }
> > };
> > form.add(al);
> > al.add(stimg);
> > ...
> >
> > HTML:
> > ...
> > #
> > <div>
> >        /pics/fehler_404_gross.jpeg
> > </div>
> >
> >
> > The Wicket Ajax Debug Window shows:
> > INFO: Response parsed. Now invoking steps...
> > ERROR: Exception evaluating javascript: ReferenceError: Effect is not
> > defined
> > INFO: Response processed successfully.
> >
> > i´m using apache-wicket-1.3.0-beta3 and
> > wicketstuff-scriptaculous-1.3-20070924.212110-2.jar.
> > i tried also with wicket-contrib-scriptaculous-0.1.1.jar and
> > wicketstuff-scriptaculous-1.3-20070911.130143-1.jar
> >
> > What am i doing wrong.
> > Can anyone help?
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to