Thursday May 08, 2008

Build and Install Facelets Support Modules on NetBeans 6.1

There are lots of requests that asking when and how the Facelets support be available on NetBeans 6.1. Yes, there is plan to officially release the support NBMs by the update center for NetBeans 6.1. We are currently working on that to resolve several compatible issues and migrate the internal APIs usage to NetBeans 6.1. When it is ready for the final release, we will announce it and make it available and show them under the Available Plugins list of NetBeans 6.1.

Build from Sources

According to the Open Sources concept, any users or developers can always pre-build their latest binaries and try/test before the official releases. This is also true for the Facelets plugin and believe me, it's very simple and can be done in just minutes! We have already done many tasks for the NetBeans 6.1 migration to ease the build requirement.

  1. Install your NetBeans 6.1 if you have not yet done so. You can get the installer from the NetBeans 6.1 download page.
     
  2. Get the sources: you can use the NetBeans GUI or simply your system command line to get the Facelets Support sources.

    • By NetBeans GUI: Invoke the CVS Checkout dialog by menu Versioning -> CVS -> Checkout..., fill the CVS Root (:pserver:your_userid@cvs.dev.java.net:/cvs) and Password, and click on Next.

      In the next dialog, use 'nbfaceletssupport' as the Module name and enter your planned working directory as the Local Folder, and click on Finish.

      After the IDE finished the checkout, it asks whether to open the projects or not, click on Open Project... (see next step)
       
    • By Command Prompt: Alternately you can checkout the CVS sources by just few command lines if you prefer.
      cvs -d :pserver:your_userid@cvs.dev.java.net:/cvs login
      cvs -d :pserver:your_userid@cvs.dev.java.net:/cvs checkout nbfaceletssupport
  3. Open the Facelets projects: Under NetBeans IDE, use menu File -> Open Projects... to invoke the Open Project dialog, select the Facelets projects and then click on Open Project.
  4. Build the NBMs: Under the Projects panel, right click on the Facelets Suite node and select the Create NBMs context menu to build all needed plugin NBMs.

    Now you have done the build and all 4 NBMs can be found under the following directory that you may want to copy to somewhere for your later use:
    nbfaceletssuite/build/updates/org-netbeans-modules-web-frameworks-facelets.nbm
    nbfaceletssuite/build/updates/org-netbeans-libs-facelets.nbm
    nbfaceletssuite/build/updates/org-netbeans-modules-web-frameworks-facelets010114.nbm
    nbfaceletssuite/build/updates/org-netbeans-modules-web-jsf-simplesnippets.nbm
    If you do want to skip the 'build from sources' steps, you may just download these NBMs (nbfaceletssupport-6.1.zip) that I have done.

Install the Facelets Support NBMs

The next step is to install the Facelets NBMs that we have just created into the IDE. You can invoke the Plugins dialog by menu Tools -> Plugins, select the Downloaded tab and click on Add Plugins... to open these 4 NBMs.

Then click on Install, follow few Next/Continue/Finish clicking and accept the license agreements, finally your IDE is ready for the Facelets Support, on the latest released NetBeans 6.1!

Uninstall the Facelets Support

In case you need to uninstall the Facelets Support for any reason, use the menu Tools -> Plugins to get the dialog, select the Installed tab and choose 'Facelets Support', 'Simple JSF/Facelets Snippets', and 'Facelets Library 1.1.14', then click on Uninstall to uninstall the support.

About

poting

Search

Top Tags
Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today