Tuesday, November 29, 2011

Make a <span> become a <div> using the tagName property!

XPages generate specific HTML tags for controls.

Consider the Computed Field control...by the time it reaches the client it becomes a <span> element.

You can override the default HTML tag name via the tagName property on many controls.

Maybe you want your Computed Field to be a <div> or an <li> instead of a <span>.
Maybe you want to use some of the new HTML5 tags.

This little property does the trick!