[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Re: JSF and Eclipse aren't the best of mates
|
- From: Windofkeltia <russ@xxxxxxxxxxxxxxxx>
- Date: Wed, 21 May 2008 23:00:23 -0600
- Newsgroups: eclipse.webtools
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
Cameron Bateman wrote:
Hi Russ,
project, choosing Preferences, then Java Build Path->Libraries. There
Please see the JSF tutorial at
http://www.eclipse.org/webtools/jsf/docs/tutorial/JSFTools_1_0_tutorial.html.
It needs to be updated for some minor UI changes, but demonstrates how
to create a JSF library. If you add the library to an existing project,
also ensure that you right-click on the project properties, go to J2EE
Module Dependencies and ensure the libraries are checked for deployment.
(Note the property dialog is called Java EE Module Dependencies if you
are working with a newer version).
Could someone explain why Eclipse doesn't help me put together a JSF
project (when NetBeans makes it PERFECTLY transparent and a
no-brainer) and, therefore, how a JSF project is built in Eclipse.
We do provide help in the New Dynamic Web Project if you select our
facet. Our facet install page lets you customize what runtime,
additional jars and some basic web.xml configurations will be used.
This is also shown in the tutorial.
I have read and attempted a couple of on-line tutorials on JSF and
Eclipse. They don't work and break down part-way through the exercise.
Can you point me to these tutorials so I can try and get them corrected?
Regards,
Cameron
Cameron,
Thanks for your reply. (Okay, not a genealogy forum, so I won't ask ;-)
Yes, this tutorial was in fact the best one and the one on which I had
founded my hopes. I did this some three or four weeks ago already, and
all went fine until I started to type in the login and welcome JSPs. I
started getting red flags at that point. There were a couple of
important typos which I corrected. At the time, it was my first foray
into JSF and I was completely in the fog. Now, however, I have done
this a bit (albeit in NetBeans) and would probably have a lot more clues,
so I need to try this again. Probably in a day or two with my present
schedule. I'll keep perfect notes on what happens so that I can
communicate anything useful to you.
Yeah, I would have thought that if my bean compiled cleanly, the 3 JSPs
correct (as demonstrated using NetBeans and later deployed to my
production server) and the web.xml done right, this should work. However,
only today I discovered that the sample app I wrote and ported from
NetBeans back to Eclipse (I insist on conquering Eclipse over this
matter) suffers from a practice I got out of G&H: Core JavaServer Faces
and isn't much used anymore (url-pattern*.faces in place of /faces/*).
So, that might be a problem too.
Now, are you telling me a JSF app practically cannot be done by hand in
Eclipse and that I must use a Dynamic Web Project? That's what I used,
but at the point at which (in the tutorial) I was supposed to create
the library, I didn't have the files, so I finished creating the
project and went back to create them via Preferences->Java Build
Path->Libraries.
Second, don't the JARs need to find their way down under
WebContent/WEB-INF/lib? Eclipse didn't put them there, so I tried
it, but this didn't help.
I'll try this tutorial again now that I'm not so clueless and let
you know.
Thanks,
Russ Bateman