The faces-config XML file is the standard JSF web application configuration file that contains various customization options for a JSF Web application. Everything from basic managed beans, navigation flows to advanced custom components that affect the inner workings of a JSF web application, like navigation handlers,el evaluators and localization configurations
Questions tagged [faces-config]
150 questions
89
votes
1 answer
What is the use of faces-config.xml in JSF 2?
After the JSF 2 big support for annotations, I'm wondering what I would use the faces-config.xml for. What is its importance now?
In other words, what are the configurations that can only be done through faces-config.xml and not via…
![](../../users/profiles/429377.webp)
Mahmoud Saleh
- 31,861
- 113
- 313
- 484
12
votes
5 answers
Referenced file contains errors (jar:file:/.../plugins/org.jboss.tools.jst.web_3.5.0.Final-v20130717-0309-B75.jar!/catalog/web-facesconfig_2_2.xsd)
I make in JSF Project in eclipse and The file faces-config.xml give an error
Referenced file contains errors (jar:file:/D:/eclips/eclipse k/plugins/org.jboss.tools.jst.web_3.5.0.Final-v20130717-0309-B75.jar!/catalog/web-facesconfig_2_2.xsd).…
![](../../users/profiles/916138.webp)
Shahid Ghafoor
- 3,049
- 14
- 58
- 108
11
votes
4 answers
Changing faces-config.xml from 2.2 to 2.3 causes javax.el.PropertyNotFoundException: Target Unreachable, identifier 'bean' resolved to null
Have the following code snippets:
Bean:
import javax.faces.view.ViewScoped;
import javax.inject.Named;
@Named(value = "directoryBean")
@ViewScoped
public class DirectoryBean implements Serializable {
private static final long serialVersionUID =…
![](../../users/profiles/2261312.webp)
AndrewG10i
- 619
- 1
- 6
- 21
9
votes
1 answer
EL resolver in faces-config.xml
While working on a Spring-JSF integration, I'm seeing this entry in faces-config.xml.
org.springframework.web.jsf.el.SpringBeanFacesELResolver
Can someone explain what…
![](../../users/profiles/4215280.webp)
javaworld
- 385
- 1
- 6
- 18
7
votes
1 answer
faces-config.xml is config file
By default when we create a web application faces-config.xml doesnt created automatically. We must create him manually and as I understood faces-config.xml must be located strictly in WEB-INF.
So, my question:
Do I have to register faces-config.xml…
![](../../users/profiles/2786156.webp)
St.Antario
- 23,179
- 26
- 96
- 243
6
votes
5 answers
java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en
My faces-config.xml likes below.
![](../../users/profiles/2654334.webp)
Karthikeyan Sukkoor
- 892
- 2
- 6
- 22
6
votes
3 answers
JSF faces config file outside WEB-INF?
When creating multiple faces config files, it is correct to have the faces-config.xml outside of WEB-INF? The JSF spec does not seem to be very clear about this (Section 10.1.3)
If yes, how should this faces-config.xml be declared in web.xml? the…
![](../../users/profiles/2288585.webp)
Debajit
- 43,330
- 32
- 87
- 97
5
votes
1 answer
How to register a (Component)SystemEventListener for all UIInputs
I am trying to have a custom SystemEventListener that registers for all instances of type UIInput and reacts to their postValidate-Events. Based on an example I found on the web I managed to get one running for HtmlInputText by registering it in the…
![](../../users/profiles/840977.webp)
Louise
- 1,411
- 1
- 17
- 39
5
votes
1 answer
jsf filter seems not to work
I was trying to create a secure login page with jsf, and I used these code snippets as the solution, found in this question. My problem is, that I can access the /restricted/secret.xhtml without logging in, there is no redirect it's like the filter…
![](../../users/profiles/1419344.webp)
Pio
- 3,854
- 11
- 45
- 76
5
votes
1 answer
Fetch JSF Converter for class in ManagedBean (JSF 1.2)
I am stuck and need outside help from JSF experts with the following problem:
I defined some converters in the faces-config.xml for specific classes so I don't have to use the converter-attribute or tag all the time. For example:
…
![](../../users/profiles/1382204.webp)
Michael Colin
- 63
- 1
- 6
4
votes
2 answers
The purpose of web.xml and faces-config.xml in Java EE?
I'm currently learning about JavaEE in school and haven't come across the meaning behind the web.xml file and the face-config.xml file. I know from my textbook "Core Java Server Faces" 3rd edition that the face-config file can have additional…
![](../../users/profiles/3435568.webp)
Stubudd
- 121
- 2
- 8
4
votes
3 answers
Passing redirect-param in faces-config in jsf-2.2
In old jsf the following code was working
/page1.xhtml
true
/page2.xhtml
…
![](../../users/profiles/3041392.webp)
bob-cac
- 1,222
- 2
- 16
- 34
3
votes
2 answers
How to activate Faces configuration editor in Eclipse?
When I make a JSF2.0 project in eclipse, the opening of it's faces-config.xml file always starts the faces configuration editor. But now I have a Google AppEngine project and I have added JSF2 (and PrimeFaces) manually. And when I open the…
![](../../users/profiles/1095788.webp)
GregTom
- 352
- 4
- 13
3
votes
2 answers
How do I write and configure a custom facelet to override h:messages?
I am in the middle of rewriting a site that was originally written in Weblogic Beehive to JSF 2.0, and I'm running into an issue where I need to get the messages that the new site produces into a format that EXACTLY matches the output of the…
![](../../users/profiles/455020.webp)
bakoyaro
- 2,502
- 3
- 33
- 56
3
votes
2 answers
Can we have multiple faces-config.xml files in our JSF application?
I am working on a project which has grown bigger and lots of works still remains.
The thing is, the entries in my faces-config.xml has already spanned some 600 lines, and I fear it will double up in coming months.
I was thinking if there might be…
![](../../users/profiles/654737.webp)
Sushant Kumar
- 159
- 4
- 14