If you previously added a component library containing a set of JavaServer Faces components that were
provided by a component vendor, this topic tells you how you can remove references to the library from a project or delete the
component library altogether.
The Component Library Manager has a Remove button that removes a component library from the .netbeans directory and removes all its components from the palette. However, this action does not remove any component libraries that are embedded in projects.
If you remove a component library from the IDE and then open a project that continues to use that component library, you will be prompted to add the component library back into the IDE so the components can be displayed in the Palette, thus undoing the removal.
To remove the component library from a project:
Open the project-name node in the
If your project is using component from the library, remove those components from your project's pages before removing the library.
Removing the components while the library is still referenced reduces the amount of code cleanup you have to perform. After removing the components, you still have to do some manual code cleanup, such as removing the import statements from page beans that used the components and removing any event handling methods that you created for those components. You can do this cleanup either before or after removing the library.
Open the Component Libraries node and right-click the library you want to remove, and then choose Remove.
You see a message warning that removing the library can cause errors in your projects. If you are using no components from the library in your project, click OK to remove the library.
To delete a component library from the IDE:
Choose Tools > Component Libraries.
In the Component Library Manager, select the library you want to delete and click the
Remove button at the bottom of the window.
You might see a message saying that you have projects open that use the library. If so, click OK in the message and close the Component Library Manager, and then close those projects. You can then reopen the Component Library Manager and start over.
Confirm that you want to delete the library.
The library is removed from your user directory. Any projects that use the library can continue to do so because they have their own copy of the library in the project directory.