Questions tagged [faces-config]

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

148 questions
1
vote
0 answers

How to define resource bundles from WEB-INF\classes in faces-config.xml

To declare a resource bundle in the faces-config.xml I always put them into \src\main\resources\com\company\messages.properties and reference them like this: com.company.messages
Benny Code
  • 51,456
  • 28
  • 233
  • 198
1
vote
1 answer

Seam Navigation Rule. Catch all invalid url and redirect to a 404 page

I am using SEAM 2.3.0 (JBoss 7.1), trying to implement the following navigation logic: For every *.xhtml that I don't catch in any page rule, forward to a 404.xhtml error page. Something like this:
Leonel
  • 2,796
  • 5
  • 25
  • 36
1
vote
1 answer

JSF 2.0 and Weblogic 11 - Include faces-config specifications in referenced library

I am trying to decouple application-layer code from view layer html, css, js in a JSF 2.0 web application. The view layer of the application will be a deployed WAR file with the standard structure. The java code will be in a Weblogic deployed…
k1ngme
  • 13
  • 2
1
vote
2 answers

Determine SelectItem Array Values via faces-config.xml

In a JSF page I have a tag inside a tag, and I know that I can determine the items from the managed bean: SelectItem[] items = {new SelectItem("1","value 1"),new…
Ali Bassam
  • 9,691
  • 23
  • 67
  • 117
1
vote
0 answers

Prevent ".xhtml" append to "to-view-Id" within faces-config.xml

How do I keep extensionless URL in the to-view-id(s) within faces-config.xml so that it doesn't append .xhtml to the end of it ? For e.g. while defining a navigation case, I define a to-view-id as /topics/54233 but faces-config redirects me to…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
1
vote
1 answer

Define a navigation case in faces-config.xml to do page reload on a certain outcome?

I want to define a navigation case in faces-config.xml to do a page reload/refresh, without navigating to another page on certain outcome from any view id. How do I define it in faces-config.xml as I dont have any specific to-viewId to hardcode in…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
1
vote
2 answers

NullPointerException when using faces-config and PrimeFaces 4.0

When using PrimeFaces and faces-config together, I get a NullPointerException. Before adding faces-config.xml, everything worked fine. After I added faces-config.xml for changing navigation, I got the following Error when calling every…
David Georg Reichelt
  • 963
  • 1
  • 15
  • 36
1
vote
1 answer

jsf 2 application scope bean initiliazed fron faces-config.xml

I'd like to initiliaze the properties of a bean (application scope) from the faces-config.xml. I tried different configuration without success. At library level I'm using jsf 2.2 - jboss-jsf-api_2.2_spec.jar. At project level faces-config is…
1
vote
1 answer

web.xml / faces-config.xml configuration issues

At some point in making a Web Application using MyFaces, my faces-config.xml and web.xml started fighting but seemingly long after I'd made any changes. I have been experimenting with different jars and different configurations for both but can't…
Glenninator
  • 47
  • 1
  • 9
1
vote
1 answer

JSF Resourece Bundle Can't find bundle for base name com.arc.ifuss.util.messages.properties

I'm trying to add resource bundle in my JSF project. I want to use messages from a resource bundle file in my JSF page. I have done these steps: Create a text file with name messages.properties in com.arc.ifuss.util pacakage I have add this code in…
Mufrah
  • 534
  • 7
  • 22
1
vote
1 answer

JSF-1.1 I18n- How to register Custom ResourceBundle in faces-config.xml

I was working on Internationalizing the messages/strings in my older JSF-1.x project when I found that the UTF-8 rendering was not being applied on the messages. I ran across a similar problem here:- i18n with UTF-8 encoded properties files in JSF…
BenhurCD
  • 81
  • 1
  • 12
1
vote
1 answer

Doesn't Redirect JavaFaces 2.0 Primefaces p:commandButton o p:commandLink

Im having some problems with redirections. Im using primefaces and JSF 2.1. The thing is that JSF 2.1 doesn't have navigations rules and searching for an answer i found that I can put "faces-redirect=true". The problem is that that doesnt worked and…
1
vote
1 answer

JSF : ManagedBean, Good place to deal with Business Logic?

I have managedBean for fileUpload, once file is uploaded then i need to call different parsers based on what value is selected from the parser dropdown and then in parser am creating object of DetailsClass where am calling getDetails method for that…
Rachel
  • 100,387
  • 116
  • 269
  • 365
0
votes
3 answers

JSF bean initializing with faces-config.xml

I've a Bean named as Bucket, it has a HashMap. I want to initialize the bean and polulate the HashMap in the faces-config.xml with a property file. How can I do that? Bean: public class BundleBean { private Map bundlePropertiesMap =…
Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105
0
votes
1 answer

JSF: navigation-rule stopped working after adding parameter to action method

I'm modernizing a JSF web application I took over from someone who retired and is not available for questions. Current job is to simplify a h:dataTable. Each record has a commandLink to go to the corresponding details page. Old version: action…