code: public static void replace(final AjaxRequestTarget target, final Component component)
  	{
  		component.add(new DisplayNoneBehavior());
  		target.add(component);
  		target.appendJavaScript("jQuery('#" + component.getMarkupId() + "').slideDown(100);");
  	}
docs: Replace.
  
  @param target
  the target
  @param component
  the component