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
3
votes
1 answer

Viewscoped bean states preserved differently in Mojarra and MyFaces

I have a view where you can start an expensive process. The view is paired to a @ViewScoped bean, and if the process is started, the status is checked periodically with PrimeFaces's . I have the following Runnable which calls a webservice with an…
Daniel Szalay
  • 4,041
  • 12
  • 57
  • 103
3
votes
1 answer

Imported JSF project is missing user library JARs

I have a JSF project which uses Apache MyFaces libraries and and JSTL jars along with Primefaces 3.5. When I import this project in another workspace, all the annotations in the Managed Beans are not recognised. In the project's build path, it shows…
Rajath
  • 2,178
  • 6
  • 32
  • 38
3
votes
2 answers

ViewExpiredException when i use @ViewScoped

I have problem with my h:commandButton "Login": when I use @ViewScoped and push this button there is ViewExpiredException, but when I use @SessionScoped, there isn't any error. Stack Trace: javax.faces.application.ViewExpiredException:…
kuba44
  • 1,838
  • 9
  • 34
  • 62
3
votes
1 answer
3
votes
1 answer

Apache Myfaces prints blank td tag when using h:dataTable and an empty dataset

Is there a way to have MyFaces not print the following when the List or Array backing an h:dataTable is empty?
I…
Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84
3
votes
0 answers

OmniFaces ExtensionlessURLS, Different behavior between Mojarra and MyFaces

After uncovering some potential performance issues I was having with Mojarra, I recently switched my application to run on MyFaces 2.1.10 implementation from Mojarra 2.1.7. I have been using the OmniFaces SEO feature that allows for pretty…
maple_shaft
  • 10,435
  • 6
  • 46
  • 74
3
votes
1 answer

PrimeFaces ViewExpiredException after page reload

I have wrapper PrimeFaces.ajax.AjaxResponse to handle ViewExpiredException (reloading the page): var handleViewExpired = function (viewId) { window.alert('${msg.ajax.viewExpired}'); window.location.reload(); }; However, sometimes I got that…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223
3
votes
2 answers

"could not initialize proxy - no session" with an open session available

I work with JSF 2 (MyFaces 2.1.7 and Primefaces 3.4.2), CDI (Weld-servlet 1.1.10), JPA 2 (Hibernate 4.1.7) and Lombok 0.11.2. All this runs on Tomcat 6 and 7. I use the OpenSessionInView pattern, implemented through a…
clark
  • 388
  • 3
  • 20
3
votes
1 answer

PrimeFaces editable datatable with custom validator and Omnifaces

I recently brought the OmniFaces library into my project to make use of its Ajax utility, but since having done that, my PrimeFaces editable datatable is now ignoring validation errors. I currently have a p:datatable with a custom validator and…
Ribcakes
  • 43
  • 1
  • 6
3
votes
2 answers

p:ajax is crashing composite component

I created a composite component that implements a spinner, i works really fine, but when I changed from primefaces 2.2.1 to primefaces 3.3.1 the component crashes all the page when I try use p:ajax instead of f:ajax. Here is the…
brevleq
  • 2,081
  • 10
  • 53
  • 97
3
votes
1 answer

JSF default tomcat error page

I want to display the default Tomcat error page in JSF 2.0 (MyFaces) application when exception is thrown. I added following lines to web.xml: java.lang.Throwable
Vladimir M.
  • 1,049
  • 1
  • 10
  • 24
3
votes
1 answer

t:inputFileUpload not uploading the file

I am using myfaces ExtensionFilter to upload a file, but the file is not getting set to my bean for further processing. Here is the code :
Satya
  • 2,094
  • 6
  • 37
  • 60
3
votes
1 answer

MyFaces is acusing duplicate id that isn't duplicated

I have an strange problem happening in my web application after I changed Mojarra to MyFaces... I have a xhtml file that is loaded from outside, in other words, this xhtml is reused a lot:
brevleq
  • 2,081
  • 10
  • 53
  • 97
3
votes
2 answers

MyFaces JSF impl with Glassfish 3.1 not working

I tried to use MyFaces impl of JSF 2 using Glassfish, but I've not been able to do so. I added the following jars to the…
damian
  • 4,024
  • 5
  • 35
  • 53
2
votes
0 answers

JSF Tomahawk tree2 - null pointer error on submit()?

I've added a JSF Tomahawk t:tree2 UI component, and the page renders fine. However, as soon as I do anything on the page: click on a button that sends submit(), or press on a button with action parameter set, error is…
Danijel
  • 8,198
  • 18
  • 69
  • 133