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">
     <!-- do not  remove this! -->
     <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

Reply via email to