Vu Viet Phuong created GTNPORTAL-3529:
-----------------------------------------
Summary: Make UIContainer creation more flexible
Key: GTNPORTAL-3529
URL:
https://issues.jboss.org/browse/GTNPORTAL-3529
Project: GateIn Portal
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: WebUI
Affects Versions: 3.8.2.Final
Reporter: Vu Viet Phuong
Assignee: Vu Viet Phuong
Fix For: 3.9.0.Final
In PortalDataMapper, we have this
{code}
if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context,
UITabContainer.class, null, null);
} else if
(UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context,
UIColumnContainer.class, null, null);
} else {
...
{code}
This should be improved by making it more flexible, and extensible. Using ServiceLoader to
load the factories class that help to create UIContainer by their factory-id
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)