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
2
votes
0 answers

Error with namespaces trying to configure JSF

I am getting the following error when trying to publish to my server. I have downloaded apache myfaces 2.0. I have also added these as a library in eclipse and added the project facet for JSF 2.0. Caused by: org.apache.xmlbeans.XmlException:…
shawsy
  • 457
  • 1
  • 6
  • 23
2
votes
1 answer

Prettyfaces unable to find matching navigation case

I keep getting this error: Unable to find matching navigation case with from-view-id '/index.xhtml' for action '/faces/index.xhtml' with outcome 'finish_setup' The program works, redirecting my url to /Setup on form submission. However, this error…
user1011376
  • 211
  • 2
  • 5
  • 18
2
votes
1 answer

English error messages in JSF 2.0.3 (not validation)?

I had configured JSF 1.2 successfully to display English error messages that come from the server. Now I was making the transition to JSF 2.0, but the error messages seem to be back to German. Localized error messages are a real pain if you want to…
Kawu
  • 13,647
  • 34
  • 123
  • 195
2
votes
1 answer

Customize Facelets error page

I have a Facelets(JSF 1.2 (myfaces)) web app and I want to customize my error page - which would seem to be a natural thing to do when an application matures. I got really confused in the process. I found the following: I haven't found a way to…
mist
  • 1,853
  • 2
  • 19
  • 33
2
votes
1 answer

Page navigation with JSF

Probably this is a simple question, but i don't know its answer. I have a project, myProject. In webContent I have the files home.xhtml, leave.html and I have 2 other folders: cats and dogs. In the cats directoy I have a page cat.xhtml, and in the…
teo panait
  • 85
  • 3
  • 8
2
votes
1 answer

Managed bean class java.time.ZonedDateTime for managed bean managedBean doesn't declare a public no-argument constructor

In order to get the current date, I declared a managed bean in faces-config.xml as follows. currentDate java.time.ZonedDateTime
Tiny
  • 27,221
  • 105
  • 339
  • 599
2
votes
2 answers

cvc-elt.1: Cannot find the declaration of element 'faces-config'

I created a JSF 2.1 project in Eclipse. While building the project, it shows the following error markers: cvc-elt.1: Cannot find the declaration of element 'faces-config'. schema_reference.4: Failed to read schema document…
KIRAN
  • 21
  • 1
  • 4
2
votes
1 answer

navigation rule causes JSF1064: Unable to find or serve resource

I've the following xhtml page, that is wrapped in the major part of the other pages in my project:
LNRD.CLL
  • 385
  • 1
  • 5
  • 19
2
votes
0 answers

JBoss EAP 6.2 - JSF2.1 - Error reading faces-config.xml file from jars

I am trying to run JSF2.1 Web Application with JBoss EAP 6.2. But in logs i am getting below error due to which JSF annotations(ex @ManagedBean, JSF Converters, JSF Validators) in jars are not working. Unable to process annotations for url,…
user2791141
2
votes
1 answer

jsf spring integration error

i want to integrate jsf with spring. when i insert application tag in faces config files and use the context loader listener in web.xml file, it is showing "The requested resource (/SampleWeb/faces/registration.xhtml) is not available." here is my…
Arahant
  • 29
  • 1
2
votes
1 answer

JSF Managed Bean instance to get in EL expression while using annotation

I have a question. I have been using JSF2.0 these days and I found to use annotation rather than faces-config.xml to configure managed bean is more useful. But I am facing a problem to get the managed bean instance in my *.xhtml pages. While I am…
NDeveloper
  • 3,115
  • 7
  • 23
  • 34
2
votes
1 answer

Can we store messages.properties under WEB-INF in a JSF application?

I've tried this mapping and JSF just wouldn't find it. /WEB-INF/i18/messages msg All examples I have seen put…
jacekn
  • 1,521
  • 5
  • 29
  • 50
2
votes
2 answers

JSF faces-config.xml with external navigation-rules *.xml file

I have my faces-config.xml with a lot of navigation-rules inside, so I was wondering if there's a chance to write an external xml with navigation rules only, and import that nav-rules.xml into faces-config.xml. I would like to keep well structured…
kavrosis
  • 169
  • 1
  • 4
  • 11
2
votes
1 answer

How to expose JSF (.xhtml) under a sub folder of WebContent

I'm currently having trouble exposing my JSF files from the browser URL. My project structure goes something like this: --->WebContent --->index.xhtml --->subfolder1 --->subjsf.xhtml --->subfolder2 …
Adan Kuwenyo
  • 53
  • 1
  • 8
2
votes
1 answer

Are there going to be two instances for a bean if I write @managed bean annotation and define same in faces-config.xml

In my application in some places we are using @ManagedBean annoation for Person bean and for the same Person bean we defining in the faces-confing.xml like below at the same time. @ManagedBean("name=person") @SessionScoped Public class…
mdp
  • 815
  • 4
  • 17
  • 32
1 2
3
9 10