zone1511 wrote:Does anyone able to add the GXT's checkbox group into the visual designer?
Yes. No problem at all...
- Code: Select all
package com.mycompany.project.client;
import com.extjs.gxt.ui.client.widget.form.CheckBox;
import com.extjs.gxt.ui.client.widget.form.CheckBoxGroup;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class ImageViewer implements EntryPoint {
public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
{
CheckBoxGroup checkBoxGroup = new CheckBoxGroup();
{
CheckBox checkBox = new CheckBox();
checkBoxGroup.add(checkBox);
checkBox.setBoxLabel("New CheckBox");
checkBox.setHideLabel(true);
}
{
CheckBox checkBox = new CheckBox();
checkBoxGroup.add(checkBox);
checkBox.setBoxLabel("New CheckBox");
checkBox.setHideLabel(true);
}
rootPanel.add(checkBoxGroup);
rootPanel.setWidgetPosition(checkBoxGroup, 82, 101);
checkBoxGroup.setSize("275px", "239px");
checkBoxGroup.setFieldLabel("New CheckBoxGroup");
}
}
}
zone1511 wrote:I try to add the checkboxgroup in source code and when I switch to design mode, the following error occurs
502 (Unable to load *.wbp-component.xml description.). com.extjs.gxt.ui.client.widget.form.CheckBoxGroup
Similar error occurs when I add the ListView from GXT
Since you haven't provided any information about your environment, or provided a test case or provided your Eclipse ".log" file, I can only guess that you don't have GWT Designer and/or GWT and/or GXT and/or Eclipse properly installed.
I would suggest re-installing GWT Designer into a new, clean Eclipse environment.
Also, in general, you should use the "
Contact Support" button in the error window to submit cases like this.