Closed owlet1997 closed 3 years ago
page https://doc.cuba-platform.com/manual-7.2/web_theme_extension.html §3.5.9.2 Extending an Existing Theme, #Creating new styles
Case 1 Incorrect injecting of TextField nameField: AR:
nameField
@Named("fieldGroup.name") private TextField nameField;
ER:
@Inject private TextField<String> nameField;
Case 2 Incorrect handling an event InitEvent: AR:
InitEvent
@Override public void init(Map<String, Object> params) { nameField.setStyleName("name-field"); }
@Subscribe public void onInit(InitEvent event) { nameField.setStyleName("name-field"); }
page https://doc.cuba-platform.com/manual-7.2/web_theme_inheritance.html 3.5.9.4. Using Themes from Application Components
Case 3 Incorrect adding property {theme-name}-theme.properties to cuba.themeConfig application property to inherit theme as is AR:
{theme-name}-theme.properties
cuba.themeConfig
cuba.themeConfig = com/haulmont/cuba/hover-theme.properties /com/company/{app-component-name}/{theme-name}-theme.properties
cuba.themeConfig = com/haulmont/cuba/hover-theme.properties /com/company/{app-component-name}/web/{theme-name}-theme.properties
Enviroment:
Description of the bug or enhancement
page https://doc.cuba-platform.com/manual-7.2/web_theme_extension.html §3.5.9.2 Extending an Existing Theme, #Creating new styles
Case 1 Incorrect injecting of TextField
nameField
: AR:ER:
Case 2 Incorrect handling an event
InitEvent
: AR:ER:
page https://doc.cuba-platform.com/manual-7.2/web_theme_inheritance.html 3.5.9.4. Using Themes from Application Components
Case 3 Incorrect adding property
{theme-name}-theme.properties
tocuba.themeConfig
application property to inherit theme as is AR:ER: