}
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
attributes.setChannel(new AjaxChannel("effects", Type.DROP));
super.updateAjaxAttributes(attributes);
}
});
add(new AjaxFallbackLink<Void>("c2-link")
{
@Override
public void onClick(AjaxRequestTarget target)
{
counter2++;
if (target != null)
{
target.add(c2);
target.appendJavaScript(String.format("jQuery('#%s').effect('highlight');",
c2.getMarkupId()));
}
}
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
attributes.setChannel(new AjaxChannel("effects", Type.DROP));
super.updateAjaxAttributes(attributes);
}
});
}