Component#onInitialize() is called *once* for any instance, so it won't be
added/removed in Ajax request.
class AutoCssBehavior extends Behavior {
@Override
public void renderHead(Component component, IHeaderResponse response) {
super.renderHead(component, response);
if (component in
Adding / removing CSS on every ajax seems inefficient though though, or is
the performance impact negligible?
On the other hand, scanning and combining all the CSS beforehand (like
Spring scans config files) and then injecting it into Page components seems
like a good solution.
--
View this mes
Hi,
This has been discussed before.
You can easily achieve it by using a custom Behavior.
Add this behavior to the components you want with
IComponentInstantiationListener.
On Tue, Jul 2, 2013 at 3:55 PM, Koen wrote:
> Would it be feasible to have a CSS file per component in the source folder