This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194445 - Allow multiple JSF component libraries
Summary: Allow multiple JSF component libraries
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal with 1 vote (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 19:07 UTC by lwu
Modified: 2012-03-05 13:54 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lwu 2011-01-18 19:07:54 UTC
In 7.0 beta you introduced a new feature "JsfComponentProvider". This is really a nice feature to allow custom component library. But current implementation only allow one custom component library. I think this feature should be extended to allow multiple custom component libraries. For example: ICEfaces2 introduces 2 set of component libraries: ICEfaces components and ICEfaces ACE components. These components can be used with components from other component libraries as well. 

To extend this feature doesn't really need huge change as current implementation has already laid foundation on allowing  multiple custom component libraries. Of course, Component tab in JSFConfigurationPanel needs to be changed as the component combo box won't allow multiple selection. In JSFFrameworkProvider, adding component library in extendImpl has to be changed slightly from current:
            if (panel.getJsfComponentDescriptor() != null ) {
                ProjectClassPathModifier.addLibraries(new Library[]{panel.getJsfComponentDescriptor().getLibrary()}, javaSources[0], ClassPath.COMPILE);
            }

And also run method in CreateFacesConfig private class must be extended to allow multiple namespaces definition added from current

params.put("welcomeInclude", "xmlns:"+panel.getJsfComponentDescriptor().getNsPrefix()+"=\""+panel.getJsfComponentDescriptor().getNamespace()+"\"");    //NOI18N

As for welcomeBody, multiple welcomebody can be added one by one. This is not very important because once namespace declaration is added, code-completion will help user to add required components.
Comment 1 Martin Fousek 2012-03-05 13:54:15 UTC
Already implemented in NetBeans 7.1.