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
1
vote
1 answer
JSF using constants in faces-config in
Is it necessary to hardcode values in in faces-config.xml or is it possible to define all from-outcome values as constants in one place and then reference them from faces-config.xml as well as from backing bean methods?

mgamer
- 13,580
- 25
- 87
- 145
1
vote
1 answer
cvc-complex-type.2.4.a invalid content was found starting with element factory in faces-config.xml
I have this error in a eclipse project, imported from a Netbeans project, set as a maven and project facet to Dynamic Web Project ( CDI1.1, Java 1.8, JS 1.0, JSF 2.2, JAX-RS 2.0, JBoss Maven Integration 1.0 and JPA 2.1)

icarus
- 121
- 1
- 2
- 10
1
vote
0 answers
cannot create bean from faces-config.xml in JSF
I am new in JSF. I'm trying to create a session-scoped bean of this class:
package com.mybusiness.clients.myproject;
public class OAuth2ServiceClient {
...
public OAuth2ServiceClient(String serviceURI, String clientName, String…

jscherman
- 5,839
- 14
- 46
- 88
1
vote
1 answer
How to override primefaces component class
I would like to override a primefaces component class. So, I have registered the component class in faces-config.xml of WAR project.
org.primefaces.component.dnd.Droppable
…

user2590727
- 441
- 1
- 6
- 25
1
vote
1 answer
Primefaces openDialogue not working
Prerequisites:
JSF 2.1
Primefaces 5.2
Glassfish 3.1
User Story:
When clicking on a CommandButton, a Window should pop up.
Implementation:
commandbutton
bean
public void…

CodeFanatic
- 11,434
- 1
- 20
- 38
1
vote
1 answer
message always shown in the same language instead of configuring the browser not to
I am trying to show a welcoming message in a JSF page in different languages (English or Spanish) depending on the user's browser configuration.
These are the steps I follow:
1-In Netbeans I create a WAR project
2-In the folder Source Packages I…

jose
- 303
- 4
- 17
1
vote
0 answers
default-locale not working on production enviroment in Tomcat/JSF
Here's the application tags of my faces-config.xml file:
pt_BR
i18n.conteudo
…

Adriano Castro
- 1,411
- 4
- 19
- 33
1
vote
2 answers
How to access the navigation-case of the faces config from a Java class
I have this situation, where I have to access the entire faces config from a managed beans. More specifically, I need to access the list of navigation cases, that were specified in the faces-config and cycle through them.
Is there any way to get…

Arijit Datta
- 101
- 1
- 2
- 10
1
vote
1 answer
Why do I need to create an instance of the ArrayList explicitly in the Managed Bean here?
Consider:
The…

Farhan stands with Palestine
- 13,890
- 13
- 58
- 105
1
vote
1 answer
JSF: Using same jsp page for different outcomes
Would it be possible to use a navigation-case as shown below with the same view-id but different from-outcomes? In the managed bean, I wanted to compare the from-outcome values and decide on the group panel that I would display on the page. How can…

ComputerPilot
- 39
- 1
- 1
- 3
1
vote
1 answer
How disable commandbutton if there is no navigation-case in faces-config.xml
do you know if there is an option to set the commandbutton to disabled="true" when there is no matching navigationcase in the faces-config?
At the time I'm learning JSF an writing an Application. The Application consists of various pages. I use an…

javaProgrammer
- 23
- 6
1
vote
0 answers
JSF bidirectional set managed bean property value as another bean property
I'm trying to set a managed property value from another bean.
faces-config.xml
beanA
com.project.BeanA
…

nuno
- 1,771
- 1
- 19
- 48
1
vote
0 answers
How to get application scoped managed bean on servlet
I have a bean that I configured to be application scoped in faces-config.xml as below:
communicationCRCList
…

Hubert Solecki
- 2,611
- 5
- 31
- 63
1
vote
3 answers
XPAGES : how have two faces-config which inherited one by one and the second keeps his specificities?
I have two bases :
Model A.ntf
Model B.ntf which inherited of A
Base B1.nsf from B
I have a faces-config in A and B, but i'd like change the faces-config of B.
I can't do that because when i change it and update design, the faces-config became as…

sissi49
- 135
- 1
- 11
1
vote
2 answers
Shared faces-config.xml across web project
I am trying to come up with a common UI framework for my organization. I want to know can I have something called shared faces-config.xml file which can be shared across projects.

Nrusingha
- 853
- 5
- 19
- 33