Updated: 2/23/2005; 1:46:40 PM.
Chris Schalk's J2EE Weblog
This Blog Discusses Tips and Tricks for building J2EE Web Applications with Oracle JDeveloper
        

Monday, January 03, 2005

First of all, Happy New Year!!

Now that I'm back in the office I noticed that my colleague Jonas Jacobi has put out a small writeup on how to integrate the MyFaces JSF components into JDeveloper 10.1.3.

I definitely recommend you check it out:

http://www.orablogs.com/jjacobi/ (december 27 posting)

In addition to being able to easily add the MyFaces taglib, as explained in Jonas' Blog what I found very helpful in playing with MyFaces was to use the create project from War feature in JDev open up the myfaces-examples.war as a project.

Here's how:

1. First make sure you have downloaded and installed JDeveloper 10.1.3 preview.

2. Download the myfaces-1.0.7-examples.tgz (can use version 107 or later) from http://myfaces.org/

Heed the warning: If you download with IE, you may have to rename the saved .".gz" back to ".tgz".

3. Unzip this file into a local directory. ( D:\myfaces\myfaces-1.0.7-examples )

4. In JDeveloper create a new Application. File->New->General-> Application..
(You can also use an existing application workspace. If so, skip to step 8..)

5. You can name the application: "MyFacesExamplesApps".

6. Default package can be anything "myfaces".

7. Choose Web Application [JSF, JSP, EJB]  for the application template and click OK. This will generate a new Application Workspace with JSF support already enabled in a View project.

8. Now create a new project based on the myfaces-examples.war file. File->New->General->Projects->Project from WAR File.

9. You can name the project "myfaces-examples".

10. On step 2 of the wizard, browse for the location of the examples war file: D:\myfaces\myfaces-1.0.7-examples\myfaces-examples.war. The default "root directory for Web Module" is fine as is.

11. Click Finish. You should now have a new project filled based on the contents of the War file.

Note: This operation can be done on any J2EE War file.

12. To run the application, select the index.jsp file and right-click select Run. This will start up JDeveloper's embedded OC4J and launch the application.

13. Important Note: The Menu Items or any navigation may NOT work at first. A simple workaround is to go directly to one of the example pages. Ex: http://...../tree.jsf

This seems to fix the navigation problem. The menu items then start working. (?) I'll try to figure out the root cause of this initial navigation problem. Feel free to offer suggestions on this.. :)

 


3:06:19 PM    comment []

© Copyright 2005 Chris Schalk.
 
January 2005
Sun Mon Tue Wed Thu Fri Sat
            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 31          
Dec   Feb


Search blog with Google:
 








Click here to visit the Radio UserLand website.

Subscribe to "Chris Schalk's J2EE Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.