What about this?

public class MyComponent extends Panel {

    public MyComponent(String id) {
        super(id);
        setOutputMarkupId(true);
    }

    @Override
    public void renderHead(IHeaderResponse response) {
        response.renderOnDomReadyJavaScript(
                "$('#" + getMarkupId() + " .ttr').tipTip({defaultPosition: 
'right'});");
    }

}

   -Tom


On 04.06.2012, 19:21 Jürgen Lind wrote:

> […]
>      <wicket:script>
>         $(document).ready(function() {
>           $("#markupId .ttr").tipTip({defaultPosition: "right"});
>         });
>      </wicket:script>
> […]


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to