Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cantaa.util.wicket.jquery;
 
Behavior that add a OnDomReady-item for the passed JQuery-Item

Author(s):
Hans Lesmeister
public class JQueryBehavior extends Behavior {
    private JQuery jQuery;
    public JQueryBehavior() {
        super();
    }
    public JQueryBehavior(JQuery jQuery) {
        super();
        this. = jQuery;
    }
    public void setJQuery(JQuery jQuery) {
        this. = jQuery;
    }
    @Override
    public void renderHead(Component componentIHeaderResponse response) {
        super.renderHead(componentresponse);
        if ( != null) {
            response.render(new OnDomReadyHeaderItem(.render()));
        }
    }
New to GrepCode? Check out our FAQ X