wood burning stoves 2.0*
The moose likes JSF and the fly likes JavaServer Faces 1.0 Part I Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JavaServer Faces 1.0 Part I" Watch "JavaServer Faces 1.0 Part I" New topic
Author

JavaServer Faces 1.0 Part I

John daLeprecaun
Greenhorn

Joined: Feb 22, 2006
Posts: 5
HeHey everybody...

I tried this tutorial since it seemed to be very basic...

http://www.javaranch.com/newsletter/200404/Journal200404.jsp#a3

The tutorial says to "Run the deploy target in the ant script..(Build.xml) " but how could u do this? Where do u place the module/root folder or what (pprogram) do you run to target/deploy the war file?

I tried loading the files into an IDE (Sun Creator) but was unable to do so (too many dependancies and a completely different setup required here).

Cheers,

John
John daLeprecaun
Greenhorn

Joined: Feb 22, 2006
Posts: 5
When I load it into Sun Creator I get..
"Can't find bundle for base name bundle.Messages, locale en_CA"
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

I wrote that tutorial well before JSC ever existed. As far as your first question...

The tutorial says to "Run the deploy target in the ant script..(Build.xml) " but how could u do this? Where do u place the module/root folder or what (pprogram) do you run to target/deploy the war file?

The tutorial assumed a knowledge of Ant. If you want to run the tutorial as is, you need to set up your project's folder structure identical to what I show in the tutorial. Otherwise, you will have to modify the build script or build it in your favorite IDE. If you downloaded all the files and don't want to setup the project the exact same way, just make sure you put the appropriate files where they should go in your structure, not necessarily where I put them.

From the tutorial:


I use IntelliJ 4.0 for all my Java development. You can use whatever you want, but for my example, you need to setup your directory structure just like mine in order for the ant build script to work correctly. That is unless you feel comfortable enough to adjust it to your liking.


GenRocket - A Test Data Generation Platform
John daLeprecaun
Greenhorn

Joined: Feb 22, 2006
Posts: 5
Thanks Greg!

I loaded it into JSCreator and it works, validates etc,.. except that it doesn't redirect to the greeting page upon success (sam iam).

Any ideas as to what may need fixing?

Do you know any good tutorials for JSFaces using JSCreator?

John.
John daLeprecaun
Greenhorn

Joined: Feb 22, 2006
Posts: 5
Found it I had left out a /pages/myPage.jsp in one of the XMLs...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaServer Faces 1.0 Part I
 
Similar Threads
JavaServer Faces 1.0 Part I
I have successfully deployed Gregg's tutorial without difficulty.
Regarding JSF
500 Internal Server Error
basics of jsf