google-code-export / crux-framework

Automatically exported from code.google.com/p/crux-framework
0 stars 0 forks source link

Faces Menu should set the stylename instead of appending #592

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Faces Menu property "styleName" is appending the name in the final result:

org.cruxframework.crux.smartfaces.rebind.menu.MenuFactory.MenuItemProcessor.setI
temAttributes(SourcePrinter, MenuContext, String)

String styleName = context.readChildProperty("styleName");
 if (!StringUtils.isEmpty(styleName))
 {
   styleName = getWidgetCreator().getResourceAccessExpression(styleName);
                out.println(item + ".addClassName(" + EscapeUtils.quote(styleName) + ");");
 }

...

Instead of addClassName, we have to SET the style name using the setClassName.

Original issue reported on code.google.com by samuel@cruxframework.org on 2 Feb 2015 at 6:01

GoogleCodeExporter commented 9 years ago

Original comment by juli...@cruxframework.org on 2 Feb 2015 at 6:23

GoogleCodeExporter commented 9 years ago
fixed on branch 5.3
revision 5903

Original comment by samuel@cruxframework.org on 3 Feb 2015 at 1:27