• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaServer Faces 1.0 Part I

 
John daLeprecaun
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I load it into Sun Creator I get..
"Can't find bundle for base name bundle.Messages, locale en_CA"
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John daLeprecaun
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found it I had left out a /pages/myPage.jsp in one of the XMLs...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic