Questions tagged [myfaces]

Apache MyFaces provides an implementation of the JSF specification ("MyFaces Core"), and a set of add-on libraries that work on any implementation of the specification.

Apache MyFaces is a Java Server Faces(JSF) implementation. It is a project of Apache Software Foundation and holds many sub-projects. All MyFaces frameworks, UI Libraries, components and extensions are based on MyFaces Core that has two submodules MyFaces API (myfaces-api.jar) and MyFaces Impl (myfaces-impl.jar). Following are the some information of some MyFaces sub-projects:

  • Trinidad : A framework that provides a large set of enterprise quality components. Project Site and Demo Site.

  • Tobago: It provides rich set of JSF based UI Components. The UI Components are abstracted from HTML. It also provides theming mechanism and a layout manager. Project Site and Demo Site.

  • Tomahawk: It is a set of JSF components that go well beyond the JSF specification. The Tomahawk family of components includes converters, validators, and a set of attributes added to the JSF components. Project Site and Demo Site.

Find more information on MyFaces on The Apache MyFaces main site. A good source of information can also be found on this site. A good starter tutorial can be found at this site. There is also a reference in Wikipedia.

685 questions
4
votes
2 answers

ViewExpiredException on every navigation after migrating from JSF 1.2 to JSF 2.0

I'm attempting to migrate an existing JSF application from JSF 1.2 to JSF 2.0. I was using MyFaces 1.2.8 and want to use MyFaces 2.0.5. What I'm experiencing with MyFaces 2.0.5 is that the initially requested page will render properly, but any…
Jim Tough
  • 14,843
  • 23
  • 75
  • 96
4
votes
3 answers

open detail view with request parameter

I created a simple master/detail using myfaces and richfaces. By clicking a h:commandLink in the rich:dataTable the user is able to open the detail view and edit the entity. Now I want to create a URL that allows the user to open the detail view…
Thomas Einwaller
  • 8,873
  • 4
  • 40
  • 55
4
votes
1 answer

JSF 2.2: Configure available Locales outside faces-config.xml

Currently i have a section in my faces-config.xml such as follows: en en_US en_GB
Abaddon666
  • 1,533
  • 15
  • 31
4
votes
2 answers

JSF - How can I format my global messages in in a visually appealing way?

I'm not too familiar with using the element in JSF. What I'm trying to do is use it to display a list of global messages of varying severity that are generated by a method in my backing bean. Getting the messages into the FacesContext…
Jim Tough
  • 14,843
  • 23
  • 75
  • 96
4
votes
0 answers

Is there in JSF a standard way to add an HTTP header to all queries?

Is there a standard mechanism in JSF 2.2 allowing me to include an HTTP header in all HTTP requests, regular or partial ? I am looking for a solution to have the content of the "Authentication" header copied from the server reply and added to all…
Ludovic Pénet
  • 1,136
  • 1
  • 16
  • 32
4
votes
1 answer

Prevent CSRF in JSF2 with client side state saving

I'm Using MyFaces 2.2.3 with client side state saving + PrimeFaces After asking how to prevent the re-use of a ViewState in different sessions I was told by BalusC , that I can inject my own CSRF token by override the from renderer to let the value…
Daniel
  • 36,833
  • 10
  • 119
  • 200
4
votes
1 answer

JSF 2.0 and MyFaces Tomahawk

I have been investigating a JSF upgrade on our existing web apps that are using JSF 1.2 & tomahawk 1.1.9 & no facelets , to use JSF 2.0 & tomahawk 1.1.9 This is my findings sofar : All the tomahawk components worked except for t:dataTable used with…
ChristiaanP
  • 655
  • 6
  • 20
4
votes
3 answers

Buffering response in heap space cause problems for large files

I have a web server project, i get an exception while trying to download large files. The file is read and written to ServletOutputStream via streams. Sample code : private void readFromInput(BufferedInputStream fis, ServletOutputStream sout)…
vkx
  • 424
  • 1
  • 7
  • 17
4
votes
1 answer

Dynamic javascript in jsf application

It's possible to include javascript via outputScript tag from jsp which generate is? (contentType=application/javascript) Or maybe there is another way to achieve localized javascript in facelets (best practice)?
Lostboy
  • 458
  • 3
  • 16
4
votes
1 answer

Removing MyFaces Orchestra's "conversationContext" GET parameter from static resources (css, images)

MyFaces Orchestra adds a ?conversationContext=x to each resource on a page. Since I'm not using the conversation scope for the public part of my project (only for the admin part), I'd like to get rid of that parameter for two reasons: it breaks the…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
4
votes
2 answers

FacesServlet.service() method eating too much time while serving requests (high self-time)

I was just trying out some profiling experiments with my JSF project using Netbeans based Profiler. However I found a very surprising results. I found JSF's FacesServlet.service() method to be consuming most of the time while requests were being…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
4
votes
0 answers

Exception doesn't get redirected to error-page when myfaces.ERROR_HANDLING is set to false

I have implemented an error JSF page which gives basic information to users. It is triggered by the tag in my web.xml /error This works fine with a 404 error. In order to use it also…
clark
  • 388
  • 3
  • 20
4
votes
2 answers

ViewMapListener JSF not being called

I'm trying to port the JSF @ViewScoped annotation to CDI. The reason is more educational rather than based on need. I chose this particular scope mainly due to the lack of a better concrete example of a custom scope one might want to implement in…
rdcrng
  • 3,415
  • 2
  • 18
  • 36
4
votes
1 answer

Facelets multi-level templates - ui:define not rendered

I have 2 basic templates - one with a side menu, and one without - that both ui:include a common page which contains ui:insert tags (templates are largish, so basic example below). Using Mojarra everything worked ok, but now I have migrated to…
Neil Richards
  • 131
  • 1
  • 4
  • 16
4
votes
1 answer

JSF index.xhtml and redirect to faces action

I think its a good practice to have an index page (in my case index.xhtml). I want to pass some action on index page (for example in struts: and I go to struts action class without any links and buttons) I know if I want…
Ray
  • 1,788
  • 7
  • 55
  • 92
1 2
3
45 46