Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Problem

Most of the CSS files are not located in the UI (admincentral). One can bring additional css easily for server side components via annotation. Unfortunatelly, the CSS for the age editor needs to be explicitly injected in the page editor inner frame

Goal

Make the CSS for the variant selector part of personalization module so the changes can be done independently from the UI.

Investigated solutions

Espen's resource bundle

http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#Conditional_CSS

public interface PageEditorClientBundle extends ClientBundle {
    public static final PageEditorClientBundle INSTANCE =  GWT.create(PageEditorClientBundle.class);
    @Source(COMPONENT_PERSONALIZATION_CSS)
    public CssResource css();
}
 

(plus) This is probably "how it should be done"

(minus) Css is parsed and our page-editor.css fails when parsing (all the rules would have to  be marked as @external and there are still some parsing errors)

 

DataResource css()
 

 

(minus) 

Interfaces 

  • No labels