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
2
votes
1 answer
JSF 2.0 ArrayList Property of Managed Bean
I am using JSF 2.0 Mojarra.
I need to create a Managed Bean that contains a property of type List. I need to initialize this list with some values in the Faces-Config.xml. My question is, what does the structure of my Class need to look like to…

bricks
- 153
- 1
- 3
- 14
1
vote
1 answer
Faces Navigation not really working in JSF2
I'm using JSF 2.0
this is my faces-config.xml

Joergi
- 1,527
- 3
- 39
- 82
1
vote
1 answer
How to save all FacesMessages over different requests
I was just wondering to implement a kind of log display to user where in all messages in the application are displayed to user all the time.
Since I use JSF 1.2 and RF 3.3.3, wanted to know if it is possible to save all messages be it added by…

Satya
- 2,094
- 6
- 37
- 60
1
vote
2 answers
Tell that webapp uses JSF without the need for an empty faces-config.xml
Is there any other way to tell Java EE 6 app server that project is going to use JSF than having an empty faces-config.xml?
I'd love to do this somehow using annotations or maybe initialization code on appcontext. Having an empty faces-config.xml…

Kamil Tomšík
- 2,415
- 2
- 28
- 32
1
vote
2 answers
synchronisation of pages in address bar in a web application using jsf2
I'm working in a jsf2 application and I have a problem with the page name displayed in the address bar. When I navigate to an other page I have in address bar the name of the previous page.
Thanks.

Achraf
- 658
- 6
- 14
- 34
1
vote
1 answer
Element faces-config must be declared
I've got this error in project faces-config.xml file in my IntelliJ IDE:
Element faces-config must be declared
Here is my faces-config.xml file:

Mehdi Rahimi
- 1,453
- 5
- 20
- 31
1
vote
0 answers
faces-config.xml keep updating itself
I have 2 faces-config.xml file.
I created a new page and added bean into the second file.
However, the first faces-config file automatically keeps adding bean to it as well.
Thus, every time I tried to refresh a page there is a…

nana21435
- 13
- 3
1
vote
0 answers
Read Websphere Liberty bootstrap.properties at faces-config.xml
Is there an way to read the Websphere Liberty bootstrap.properties through the faces-config.xml on java server faces tier ?
My application is being populate a couple of variables statically at faces-config but we would like to use the external file…

Eduardo Diogo Garcia
- 41
- 7
1
vote
0 answers
How to override DefaultFaceletFactory in JSF 2.2.8-
I want to choose different facelet cache based on url like -
if url starts with some pattern - Choose Nocache
otherwise - Choose default cache - expiringConcurrentcache
I am trying to override the DefaultFaceletFactory but my…

visu.sandy
- 26
- 4
1
vote
2 answers
Changing beans initialized before in faces-config.xml
public class MyBean {
private Integer [] myField;
public Integer [] getMyField() {
return myField;
}
public void setMyField(Integer [] myField) {
this.myField = myField;
}
And I initialize this same bean in…

Blanca Hdez
- 3,513
- 19
- 71
- 93
1
vote
1 answer
How to map a BitSet on facesconfig.xml
I want to map this bean in my facesconfig.xml
public class VisualizationBean {
private BitSet results;
public BitSet getResults() {
return results;
}
public void setResults(BitSet results) {
this.results =…

Blanca Hdez
- 3,513
- 19
- 71
- 93
1
vote
2 answers
Is faces-config.xml and web.xml needed nowadays?
I have been studying JavaEE8 and practicing with some projects, understanding the new technologies like Servlet 4.0 and JSF 2.3. I have read in many forums and pages, in some I see that they say that web.xml and faces-config.xml are not necessary,…

David Ferreira
- 1,233
- 17
- 24
1
vote
0 answers
Primefaces 6: configure faces-config.xml
I must set explicit navigation in my web application (Java 8 + Primefaces 6).
I don't know these technologies very well but I would like to set for every xhtml page a general name to view in the url.
So I created a page test.xhtml:

Diaboliko
- 231
- 1
- 5
- 21
1
vote
1 answer
Can't find beans annotated with @ManagedBean
While upgrading the JSF version of an old web application from MyFaces 1.1 to MyFaces 2.2.12, I am trying to replace the entries in my faces-config.xml file with @ManagedBean annotations directly in the bean classes. I am using…

scholt
- 180
- 4
- 19
1
vote
0 answers
Difference between redirect in jsf and sendRedirect in JSP
In my application I use JSF. I want
to redirect the user to error page
when their session expires. I have
tried by using tag in
faces-config with navigation case. It's
not working properly. It changes the
url, but the page is not…

Muneeswaran Balasubramanian
- 3,839
- 8
- 31
- 43