Open GoogleCodeExporter opened 8 years ago
I find this problem too. Here is my solution, maybe will help you.
private void refreshLabel() {
if (!isHideLabel()) {
String caption = null;
if (required && !isReadOnly() && !isDisabled())
caption = getFieldCaption() + "<font color='red'> * </font>";
else
caption = getFieldCaption();
if (isRendered()) {
Element fieldContainerElement = DOM.getParent(DOM.getParent(this.getElement
()));
Element fieldLabelElement = DOM.getChild(fieldContainerElement, 0);
DOM.setInnerHTML(fieldLabelElement, caption);
} else {
super.setFieldLabel(caption);
}
}
}
Original comment by sharemet...@gmail.com
on 3 Feb 2009 at 2:51
Original issue reported on code.google.com by
pravi.g...@gmail.com
on 16 Jan 2009 at 5:53