Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

JSF very newbie question

Thread view: 
db - 14 Aug 2006 17:38 GMT
Hi@all

I have written a web application in jsf. It works. And then i searched
some jsf examples and tried to see the source code. In order to see it
clearly, i dragged an faces-config.xml directly to the home directory
under eclipse of the webapplication. While i opened this
faces-config.xml in eclipse, i was informed that whether to generate a
.faces-config.mex. I clicked yes. After i saw the faces-config.xml, i
deleted it immediately. Then the problem comes:

It says:

File not found: "D:\cvs\fu\workspace\zeiterfassung\faces-config.xml
(Das System kann die angegebene Datei nicht finden)".

It seems that some configuration file is changed so that it always
searches the faces-config.xml. I also deleted the .faces-config.mex,
but the error is still there. I dont know how to get rid of it? Can
someone help me?

thanks

db
Moiristo - 14 Aug 2006 19:06 GMT
> Hi@all
>
[quoted text clipped - 19 lines]
>
> db

JSF needs the faces-config file. I guess they have hard-coded a check
for this.
db - 15 Aug 2006 09:43 GMT
Moiristo schrieb:

> JSF needs the faces-config file. I guess they have hard-coded a check
> for this.

Thanks for reply. But how can i remove this hard-coded check since i
have my faces-config.xml in other place of the project. And i dont want
to build a new project... T_T

any idea?

db
Moiristo - 15 Aug 2006 20:10 GMT
> Moiristo schrieb:
>
[quoted text clipped - 4 lines]
> have my faces-config.xml in other place of the project. And i dont want
> to build a new project... T_T

Well, with Apache Myfaces, you can specify the location of the
faces-config file in the webapp web.xml file like this:

    <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>
            /WEB-INF/faces-config.xml
        </param-value>
        <description>
            Comma separated list of URIs of (additional) faces
config                 files.
            (e.g. /WEB-INF/my-config.xml)
            See JSF 1.0 PRD2, 10.3.2
        </description>
    </context-param>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.