Yep.  If your using the effects directly without any of the Ajax
components, you need to manually add the scriptaculous javascript
files to your page.

add this code to your page and you should be good to go:
add(ScriptaculousAjaxBehavior.newJavascriptBinding());

On Thu, Feb 21, 2008 at 12:56 AM, Maris Orbidans <[EMAIL PROTECTED]> wrote:
> hi
>
>  I am trying to use wicketstuff-scriptaculous-1.3 latest snapshot but
>  it's not working.
>  I have simply included the jar in my app.  Do I need to do anything else
>  to install scriptaculous support ?
>
>  Maris
>
>
>
>  public class ColumnLinkPanel extends Panel
>  {
>
>     public ColumnLinkPanel(String id, final IModel model)
>     {
>         super(id);
>
>         Image icon = new Image("detailsIcon",new
>  ResourceReference(ColumnLinkPanel.class,"doc.png"));
>         AjaxLink ajaxLink = new AjaxLink("detailsLink")
>         {
>             @Override
>             public void onClick(AjaxRequestTarget target)
>             {
>                 ResultDetailsPanel newPanel = new
>  ResultDetailsPanel("resultDetailsPanel",model);
>
>  
> findParent(MainPage.class).get("resultDetailsPanel").replaceWith(newPanel.setOutputMarkupId(true));
>                 target.addComponent(newPanel);
>                 target.appendJavascript(new
>  Effect.Highlight(this).toJavascript());
>             }
>         };
>
>         add(ajaxLink.add(icon));
>     }
>  }
>
>
>
>
>  *INFO: *
>  <?xml
>  ............................................
>                 </tr>
>             </table>
>     </div>]]></component><evaluate><![CDATA[new 
> Effect.Highlight('detailsLink11',
>  {}
>  );
>  ]]></evaluate></ajax-response>
>
>  *ERROR:
>  *Exception evaluating javascript: ReferenceError: Effect is not defined
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to