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
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…

Sushant Kumar
- 159
- 4
- 14
3
votes
1 answer
FacesContext not injectable in Wildfly 14 with JSF 2.3 (Mojarra, main module)
I have a bean:
import javax.faces.context.FacesContext;
import javax.faces.view.ViewScoped;
...
@Named
@ViewScoped
public class SimpleBean implements Serializable
{
private static final long serialVersionUID = 1L;
@Inject
protected…

Kawu
- 13,647
- 34
- 123
- 195
3
votes
1 answer
where did this faces-config.pageflow.xml file come from?
I am migrating an application to jsf 1.2 and now out of the blue there is a new .metadata folder in the project root with a WebConent folder inside there with a WEB-INF folder still deeper and inside there we now have a super important looking…

branchgabriel
- 4,241
- 4
- 34
- 48
3
votes
2 answers
CommandLink navigation doesn't work in JSF
i wanted to use the navigation-rule feature of my faces-config.xml (JSF 2.0) but I have some problems with it. I have three files (index.xhtml,index2.html,index3.xhtml) and they look like this:

Tim
- 733
- 5
- 12
- 19
3
votes
0 answers
Critical error during deployment: : com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! null
Hi I'm migrating my application from Websphere to Jboss and I'm getting below error while deploying my EAR. I would really appreciate if anyone could hint the error.
I'm also getting error stating org.apache.myfaces.tiles.example.TilesBacking could…

Abhishek Gupta
- 83
- 1
- 5
3
votes
1 answer
IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered
I've been migrating to from JSF 1.0 to JSF 2.2.
I'm getting the following error while trying to run my app:
JSP Error page Illegal attempt to set ViewHandler after a response has been rendered. |
java.lang.IllegalStateException: Illegal attempt…

Sari Eiz
- 77
- 8
3
votes
1 answer
enumerate resource-bundles defined in faces-config.xml
I am using a mojarra-specific code for this:
public static Map getBundleMap()
{
Locale locale = Faces.getLocale();
ApplicationAssociate associate = ApplicationAssociate.getCurrentInstance();
Map

Michele Mariotti
- 7,372
- 5
- 41
- 73
3
votes
1 answer
Is faces-config.xml file automcatically create?
I tried to create simple JSF facelet project in Netbeans IDE.
I did the following steps in Netbeans.
Select framework - Java Server faces
Registered libraries is JSF2.0
Preferred Language is facelet.
I am not able to find the faces-config.xml file…

user3782196
- 113
- 1
- 6
3
votes
0 answers
Error while Initializing Mojarra 2.2.1
I decide to upgrade JSF to 2.2.1 in JBoss 7.1.1 on Java6. I did all migration steps including changing proper jars in server modules folder. I updated pom with proper entries and of course I changed faces-config.xml:

Karol
- 89
- 13
3
votes
1 answer
jsf - register SessionListener in faces-config
I created a SessionListener but it doesn't work because I don't know how to register it in the faces-config.xml. I tried the following:
SessionListener
public class SessionListener implements HttpSessionListener {
@Override
public void…

yves.beutler
- 972
- 1
- 14
- 32
2
votes
1 answer
how to get view id using outcome in navigation case in faces-config.xml in jsf
I'am trying to retrieve to-view-id using from-outcome in the navigation-case in faces-config.xml, I'm using JSF 1.2. Please let me know if there is a in- built method or how to write the code. Thanks in advance.

Varun Chandra
- 21
- 3
2
votes
1 answer
Eclipse Faces Config Editor not working
Summary
The Faces Config Editor in Eclipse does not open when editing faces-config.xml. This is in a JavaServer Faces project.
Details
Eclipse 3.7.2
Eclipse m2e 1.0.1
m2e-wtp plugin 0.15
I've seen this question already (How to activate Faces…

Alex Averbuch
- 3,245
- 5
- 33
- 44
2
votes
2 answers
faces-config.xml in JAR file behaves differently on two Dominos
I have distribution package for beans. To save some work to developers it contains faces-config.xml declaring beans used by the JAR - inside META-INF directory of JAR.
JAR is inside WebContent\WEB-INF\lib and referenced in build path of…

Frantisek Kossuth
- 3,524
- 2
- 23
- 42
2
votes
1 answer
JSF 2 login implementation
i'm trying to implement a very basic (at this point) login screen with JSF 2 (using NetBeans). i've found several examples, from which i copied the source code, but so far unsuccessfully.
in my login.xhtml file i have a 2 input fields and a…

eRez
- 257
- 8
- 24
2
votes
1 answer
Is it possible to load dynamically a Phase Listener with JSF 1.2?
I have been using a Phase Listener to debug my JSF application.
Now I'm wondering if it's possible to load it dynamically depending on, for example, a system property is set or not (so I can commit the thing, and not worry about having to remove it…

Elias Dorneles
- 22,556
- 11
- 85
- 107