protected boolean trimValue = false;
protected String getLabelFor(UIFormInput uiInput) throws Exception
{
UIComponent uiComponent = (UIComponent)uiInput;
UIForm uiForm = uiComponent.getAncestorOfType(UIForm.class);
String label = uiInput.getName();
if (uiForm != null)
{
label = uiForm.getLabel(label);
}
label = label.trim();
// remove trailing ':' if there is one