String buttonStyle = bar.getStyleAttribute();
// Type #1 - NO BUTTONS
if( buttonStyle.contains("display:none") || buttonStyle.contains("display: none") )
{
// Remove focus from name input control
input.blur();
// Type #2 - built-in buttons
} else {
// Find and "mousedown" the standard "ok" button
HtmlImageInput okButton = (HtmlImageInput)jsfClient.getElement(componentID+"ok");