On 7/1/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
[...]

      @Override
        public void renderHead(IHeaderResponse response) {
            // add the javascript libraries to the header
            response.renderJavascriptReference(new
JavascriptResourceReference(
                    RicoCorner.class, "RICOSCRIPT.js"));


response.renderOnLoadJavascript(String.format("Rico.Corner.round('%s');",
component
                           .getMarkupId()));

       }

        @Override
        public void bind(Component component) {
            super.bind(component);
            if (this.component != null)
                throw new IllegalStateException(
                        "cannot bind behavior to more than one
component");

            this.component = component;
            this.component.setOutputMarkupId(true);
        }


[removed onrendered]

   }




-igor
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to