@Override
public void onRendered(final Component component) {
super.onRendered(component);
if (grabTag) {
HeaderResponse headerResponse = new HeaderResponse() {
@Override
protected Response getRealResponse() {
// TODO Auto-generated method stub
return component.getResponse();
}
};
if (decendantsOfSelector == null) {
headerResponse.renderOnLoadJavascript(getNiftyJS(tagName));
} else {
headerResponse.renderOnLoadJavascript(getNiftyJS(tagName,
decendantsOfSelector, true,true));
}
}
}