Re: How to check if a decorator-section is empty

2009-11-29 Thread Bruno Busco
Don't mind, I finally found this solution: public boolean eval(Map context) { Map sectionsList = UtilGenerics.toMap(context.get("sections")); return !sectionsList.containsKey(this.decoratorSectionExdr.expandString(context)); } Thank you anyway. -Bruno 2009/

Re: How to check if a decorator-section is empty

2009-11-29 Thread Bruno Busco
I have added a new ScreenCondition in the ModelScreenCondition.java as follows: public static class IfEmptyDecoratorSection extends ScreenCondition { protected FlexibleStringExpander decoratorSectionExdr; public IfEmptyDecoratorSection(ModelScreen modelScreen, Element condEleme

How to check if a decorator-section is empty

2009-11-28 Thread Bruno Busco
Hi list, could someone please tell me if there is any way to check in a screen condition if a decorator section is empty? I would like to do something similar to this: