I totally forgot the css properties... however, I'm not sure if they are enough here:
The problem is that:
1) The whole form is wrapped into .beanGridTable
2) Each field resides in a cell of that table
3) Embedded fields reside in the very same cells
4) However for embedded fields a new .beanGridTable is created inside the cell, so is one .beanGridTable inside another
5) The styling gets applied to both
It's easy to apply styles to child classes in CSS as you stated. However, I need to actually _remove_ a style from a _parent_. So I need this case:
1) When a cell contains a plain field, apply the style to the cell
2) When a cell contains an embedded bean (another .beanGridTable), do not apply the style for the outer/container cell but do apply it for the cells in the inner/contained table
Now I could easily mark the embedded bean with special CSS class, but that doesn't allow me to remove the style from the parent :/ I suppose what I need here is an CSS indicator showing if a form/table cell contains a plain field or an embedded bean (and this should be builtin). As the dynamicCss is applied per object, not per field basis, I
suppose it doesn't help in this case?
Tuukka