PDA

View Full Version : [FIXED] LabelField shows ":" separator symbol



Grandiosa
6 Jun 2008, 2:08 AM
The Form label fields shouldn't show the ":" separator

reproduction code:



public void onModuleLoad() {
Viewport viewport = new Viewport();
viewport.setLayout(new FlowLayout());

FormPanel panel = new FormPanel();
panel.setHeading("FormPanel");

LabelField lf = new LabelField("User information");
lf.setText("User information");
panel.add(lf);

TextField tf = new TextField();
tf.setFieldLabel("Enter name");

panel.add(tf);

viewport.add(panel);
RootPanel.get().add(viewport);
}

gslender
6 Jun 2008, 2:41 AM
+1

but perhaps the solution for labels is to provide support for FieldSet (like ExtJS does - collapsable etc) so that you can group and provide information for related form fields...

darrellmeyer
8 Jun 2008, 8:26 PM
setLabelSeparator added to Field which LabelField sets to "". Fix is in SVN.