If the intention is to override the default behaviour, wouldn't it be clearer to add an attribute to the widget along the lines of
showTitle="false" or perhaps useFieldNameForTitle="false" instead of fighting with a fake title that's not really a title at all? The default value out of the schema for the attribute would, of course, be "true". What do people think? Cheers Paul Foxworthy Adrian Crum-3 wrote > > On 5/16/2012 11:44 AM, Christian Geisert wrote: >> What's the point of CommonEmptyHeader? >> >> It's definied in CommonUiLabels.xml as: >> >> <property key="CommonEmptyHeader"> >> >> <value xml:lang="en" xml:space="preserve"> </value> >> </property> >> >> It is just a simple space (0x20) >> >> It is used ~500 times in forms as a title in a field definition >> >> Example: >> >> <form name="EditPerson" type="single" target="updatePerson" >> ... >> <field name="cancelLink" title="${uiLabelMap.CommonEmptyHeader}" >> >> <hyperlink target="${donePage}" also-hidden="false" >> description="${uiLabelMap.CommonCancelDone}"> >> <parameter param-name="partyId"/> >> </hyperlink> >> </field> >> </form> >> >> >> This is a button which should have no label, but if the title attribute >> is empty then the name attribute is used as label. >> >> Why not just put a space (" ") into the title attribute - still a hack, >> but exactly same result a using CommonEmptyHeader without the need using >> CommonEmptyHeader. >> >> The real solution is of course not to display a label if the title >> attribute is empty. > > An empty title attribute is meant to be a shortcut, or a developer's > convenience - the widgets will use the field name to look up the correct > label. > > Putting a space in the title attribute is the only way to turn off the > default behavior. > > -Adrian > ----- -- Coherent Software Australia Pty Ltd http://www.cohsoft.com.au/ Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/ -- View this message in context: http://ofbiz.135035.n4.nabble.com/Re-svn-commit-r1338836-in-ofbiz-branches-release12-04-framework-base-dtd-framework-base-src-org-ofbi-tp4631741p4631853.html Sent from the OFBiz - Dev mailing list archive at Nabble.com.