Am 12.10.2010 21:43, schrieb mzem...@osc.state.ny.us:
Can you share the final solution?


Sure. It's

    public ReplacementPanel(String id) {
        super(id);
        final Label component;
        add(component = new Label("lblReplaced", "Done"));
        component.setOutputMarkupId(true); // Change !!!!
        add(new AbstractBehavior() {
            @Override
            public void renderHead(IHeaderResponse response) {
String js = "$(function() {$(document.getElementById(\"" + component.getMarkupId() + "\").style.color=\"red\");});";
                response.renderOnDomReadyJavascript(js); // Change !!!!
                super.renderHead(response);
            }
        });
    }


Cheers
Per

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

Reply via email to