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

Avoid user copy and paste url without have logged id

What I want to avoid is that the user access to a .xhtml throu url without have logged in My Application is being develope in JSF and Primefaces. I have read about navegation-rule, but I have not reach my goal --this is the url of the first…
0
votes
1 answer

RichFaces faces-config.xml Declaration Errors

I am at the throes of learning RichFaces and JSF 2.X. I am using a tutorial here and Eclipse marks the faces-config declaration
Mushy
  • 2,535
  • 10
  • 33
  • 54
0
votes
1 answer

JSF Page Navigation: If A.jsf navigate to B.jsf via hyperlink, why the URL display A.jsf instead of B.jsf

If A.jsf have a commandLink that will navigation to B.jsf, then I would think when I am at page B.jsf, I see http:domain/host/project/B.jsf as the URL. However, I see http:domain/host/project/A.jsf on my address bar. I am always ONE behind when…
Thang Pham
  • 38,125
  • 75
  • 201
  • 285
0
votes
0 answers

Sharing session between 2 wars(having JSF) in one ear

I have one ear that contains 2 wars on a Websphere Application server v(8.5.5) . I used session sharing ability in WAS to share the session between the 2 WARs. Both of the WARs are using JSF 2.0 MyFaces implementation bundled with WAS. The problem…
0
votes
1 answer

Requested resource not found for sub-context in case of JSF

My JSF application is deployed under tomcat and server.xml is configured as follows for my application www.myapp.com
Abhishek Dhote
  • 1,638
  • 10
  • 41
  • 62
0
votes
2 answers

Spring El Expression

I'm switching from faces-config to Spring and wanted to know how you can pass a property from one bean to another: e.g.
DD.
  • 21,498
  • 52
  • 157
  • 246
0
votes
1 answer

Eclipse luna jee does not recognise view Param in jsf navigation rules

I have to write a JSF application using navigation rules. I have a few ManagedBeans that are mostly requestScoped. When a user clicks on a commandLink or commandButton, I want to pass a Parameter (for example the id of the current Bean) so the Bean…
nasskalte.juni
  • 433
  • 3
  • 14
0
votes
1 answer

Jsf library with web.xml

Jsf library (that is included in WEB-INF/lib) might contain its own faces-config.xml file. Is it possible for such a library to include also its own web.xml file?
mgamer
  • 13,580
  • 25
  • 87
  • 145
0
votes
3 answers

JSF 2.0 Problem (faces-config)

We have faces-config.xml in JSF 1.0 where we entry about managed-beans, dependencies & navigations etc. I was developing a sample project using JSF 2.0. But, as I don't know annotation, I need to include face-config.xml externally. Please, provide…
user284291
0
votes
1 answer

FacesContextListener implementation

In an attempt to implement the FacesContextListener, which seems to be the ideal place for the current challenge we are facing, I still struggle with its implementation. Attempts to declare it in the faces-config.xml or a construction similar to the…
Dalie
  • 626
  • 1
  • 7
  • 19
0
votes
0 answers

commandLink do not pass request parameters

Good morning in my timezone, I am adding some features in a JSF application, i add the following code
tt0686
  • 1,771
  • 6
  • 31
  • 60
0
votes
1 answer

When defining a navigation-case, how can I make a generic reference to the page an action was triggered from?

I would like to have this navigation case work on any page, but I can't find how to generically reference the origin page on a navigation rule in the tag to-view-id:
NotGaeL
  • 8,344
  • 5
  • 40
  • 70
0
votes
1 answer

Create managed bean application scoped to load on the app start-up

I'm new to Java EE and I have a task to do but no idea how to do it. I need to create a manged bean that will be scoped on the application. Everytime we start the application, the bean needs to load a list of data from database. So, according to my…
Hubert Solecki
  • 2,611
  • 5
  • 31
  • 63
0
votes
2 answers

Class parameter in Faces Config

Is there a way to pass a class into a property as a Class object? i.e. clazz java.lang.Double.class
DD.
  • 21,498
  • 52
  • 157
  • 246
0
votes
2 answers

JSF 1.2 NavigationHandler custom navigation

I am trying to extend the NavigationHandler in JSF 1.2, and to keep a stack of the visited pages (more precisely, the view-ids, along with the action and the output). I try to implement a custom action, such as "go_back", that will take me back to…
Alex
  • 697
  • 1
  • 7
  • 14