aspose file tools*
The moose likes JSF and the fly likes please help me with my jsf pickle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "please help me with my jsf pickle" Watch "please help me with my jsf pickle" New topic
Author

please help me with my jsf pickle

Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

I am sorry but it's impossible to find a solution to my problem. I wish to use a jee 5 container for my current development project but I amin need of a way to provide xhtml to my war in a way similar to the new Jsf2 spec. In case you are wondering why I am not going with JEE6 then it's purely related to limited options of JEE 6 hosts

To get to the point, lwish to internationalise my web app but all current weblogs and tuts point to using the new JEE 6 spec which caters for *{} (jsf injection into template text. the Jee 5 container I use for testing will not dploy.

Can anyone point met o an accurate blog or tut on getting this setup in the legacy way in my app? My legacy pitfall is related to mapping the usrl for the face servlet in a way that tomcats default index.jsp initialization can find it

Many thanks


SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
http://www.youtube.com/user/thejartender?feature=mhee
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Hello all I am still having trouble so here is a clear explanation of troubles:

container: tomcat6.20

layout:
<war>

-web
-WEB-INF
-lib(contains majora1.2.6)
-classes(only properties files for message bundle
-web.xml as follows:

.-faces-config.xml as follows:


-index.jsp as follows:

-pages
-welcome.jsp as follows:




The jsp does almost nothing as it is a inple test to seeif I can even get jsp rendered before moving on to actually using the faces taglibs in the jsps

project deploys but get infamous 404 as ffollows:
many thanks for help
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

I think it must be tomcat bug because even after replacing majora with my faces the container refuses to find my welcome.jsp and as one can see it is mapped correctly. only other issue I can think of is that the jsp is not being translated for some or other reason.
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

tomcat redirects the request only if I move the url pattern for /faces dirctory so thr positive news is that the jsp was mapped correctly to the faces servlet but the failure must surely then be that the container can't find my libs or that the libs are buggy
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Lol was unable to resolve issue so have given up development

jokes aside, every tutorial I have seen shows that the facess servlet is mapped in a standars way to url-pattern of /faces/*

I then redirect to welcome.jsp in a new folder named faces which contains the welcome.jsp.

deployment fails byt ok's when I remove that mapping.


Intellij supposrt staff are being noobs to. I am asking them why there is no jstl jsp tag support in IDEA and they want me to prove that it's no bug :rolling.O I would think that jstl tagli is standard and even when I map the uri explicitly the IDEA wont accept it.
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

Ok I have narrowed down the issue as follows:

there are other libs packaged in the .war specifically the jstl.2 jar this works !! as tested qith some i8n code. therefore I know my packaging is correct. This leaves only the paths as a possible error that results in Faces servlet not being instantiated.

please can someone look above fp
or any obvious path errors?
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

I am happy to say I resolved issue through misunderstanding that was clarified here: http://www.mail-archive.com/users@myfaces.apache.org/msg21196.html

Could anyone here share any information on if it is possible to offer internationalized immages( for my table image banner) in jsf? would I suffix each image with the local? for example I have a resources package in my src with a messages package and image package. Is it possible to load the images in a similar way as messages?

many thanks even if it's just for reading.
 
Don't get me started about those stupid light bulbs.
 
subject: please help me with my jsf pickle