Solved
Can we add GUI components to an attribute panel using Builders?
- April 12, 2025
- 1 reply
- 1029 views
Hello Everyone,
Is it possible to add GUI components like Textbox, Checkbox, Radio Button, Combo Box, and Text Area into an attribute panel using Builders?
I was able to achieve this using wrapper tags in JSP.
@Override
public ComponentConfig buildComponentConfig(ComponentParams param) throws WTException {
ComponentConfigFactory componentConfigFactory = getComponentConfigFactory();
AttributePanelConfig attributePanelConfig = componentConfigFactory.newAttributePanelConfig();
GroupConfig groupConfig = componentConfigFactory.newGroupConfig("GUI Componenets");
groupConfig.addComponent((ComponentConfig)componentConfigFactory.newAttributeConfig("date", "Date"));
groupConfig.addComponent((ComponentConfig)componentConfigFactory.newAttributeConfig("textBox", "TextBox"));
groupConfig.addComponent((ComponentConfig)componentConfigFactory.newAttributeConfig("comboBox", "ComboBox"));
groupConfig.addComponent((ComponentConfig)componentConfigFactory.newAttributeConfig("radioButton", "Radio Button"));
groupConfig.addComponent((ComponentConfig)componentConfigFactory.newAttributeConfig("checkbox", "Checkbox"));
attributePanelConfig.addComponent(groupConfig);
return attributePanelConfig;
}


