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]
148 questions
91
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…

Mahmoud Saleh
- 33,303
- 119
- 337
- 498
13
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 =…

AndrewG10i
- 661
- 1
- 6
- 21
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).…

Shahid Ghafoor
- 2,991
- 17
- 68
- 123
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…

javaworld
- 427
- 1
- 9
- 19
8
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…

St.Antario
- 26,175
- 41
- 130
- 318
6
votes
5 answers
java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en
My faces-config.xml likes below.

Karthikeyan Sukkoor
- 968
- 2
- 6
- 24
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…

Debajit
- 46,327
- 33
- 91
- 100
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…

Louise
- 1,451
- 1
- 18
- 40
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…

Pio
- 4,044
- 11
- 46
- 81
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:
…

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…

Stubudd
- 141
- 2
- 8
4
votes
1 answer
Programmatically get navigation case from faces-config.xml by outcome
Is there any way to get the of a navigation case in the backing bean?
Let's say I want to get the from the outcome success, which is supposed to be page1.xhtml. Is there any helper function?
…

kevcodez
- 1,261
- 12
- 27
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
…

bob-cac
- 1,272
- 2
- 17
- 35
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…

GregTom
- 352
- 4
- 15
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…

bakoyaro
- 2,550
- 3
- 36
- 63