« May 2008
SunMonTueWedThuFriSat
    
1
2
3
4
5
6
7
9
10
11
12
13
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

FEEDS

SEARCH



LINKS




CONTACT
poting
Template by
Helquin

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 (#1 #2) that I have done. (due to the upload size limit of 2MB, I cannot supply just a full zip file! Please merge them before unzip.)
    Windows: copy /b nbfaceletssupport1+nbfaceletssupport2 nbfaceletssupport.zip
    Unix: cat nbfaceletssupport1 nbfaceletssupport2 > nbfaceletssupport.zip

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.

Comments:

Hi Po-Ting,

Thank you very much for this post and the facelets support in Netbeans 6.1. I really appreciate it. I followed your instructions and it works ...

Posted by Cyrill on May 09, 2008 at 01:12 PM PDT #

Hi Poting,

Great work.

Thanks.

Posted by Earguay@Anfield on May 12, 2008 at 11:40 PM PDT #

Muchas gracias por tu contribucion!!
desde España.
Hore.

Posted by hore on May 15, 2008 at 03:51 AM PDT #

Hi
I've followed your guide in this blog's entry but the errors always occur like these for 2/4 pluggins (org-netbeans-modules-web-frameworks-facelets.nbm and org-netbeans-modules-web-jsf-simplesnippets.nbm). 2 remained pluggins were successfully installed:
- Missing required modules for Plugin Simple JSF/Facelets Snippets:
JSP Editor [module org.netbeans.modules.web.core.syntax/1 > 1.23.29]
-Missing required modules for Plugin Facelets Support:
JSP Editor [module org.netbeans.modules.web.core.syntax/1 > 1.23.29] JSP Parser [module org.netbeans.modules.web.jspparser/2 > 2.6.21]
Missing required modules for Plugin Simple JSF/Facelets Snippets:
JSP Editor [module org.netbeans.modules.web.core.syntax/1 > 1.23.29]

So I can not install the facelets

Could you

Posted by latuan on May 15, 2008 at 06:43 PM PDT #

Could you help me to correct these errors please!
Thanks for your answer!

Posted by latuan on May 15, 2008 at 06:44 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed