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

MyFaces swallows SystemEvent that contains a validation exception

I am using Apache MyFaces 2.2.11 for my JSF Web Application (with PrimeFaces). During the phase PROCESS_VALIDATIONS(3) the ProcessValidationsExecutor throws a ContextAwarePropertyNotFoundException that is caused by a simple PropertyNotFoundException…
schrobe
  • 767
  • 2
  • 8
  • 29
3
votes
1 answer

Memory leaks in MyFaces

EDIT: The solution that you can find in comments below assumes changing JSF implemenetation from MyFaces to Sun's Mojarra. Hi, I have got really annoying problem with MyFaces 2.0.0 (To be more precisely I checked it out also on 2.0.1 and 2.0.2…
Kamil Sobon
  • 45
  • 2
  • 7
3
votes
2 answers

JSF render template to text/plain

I've got a (working) JSF app. Now i want a document that is not a page resource (let's say a plain text document) to be expanded using the JSF expression language (as i need state from my beans and this seems "natural"). But it seems i don't get…
mtraut
  • 4,720
  • 3
  • 24
  • 33
3
votes
2 answers

How to handle Code Error 500 in Richfaces

I'm using Richfaces 3.2.2 and need to show the user the 500 error page when there is Exception. The issue is that when I use ajax event I can't show the user the 500 error when there is an Exception. I've already defined the error page on…
imrabti
  • 285
  • 4
  • 11
3
votes
3 answers

java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault cannot be cast to org.apache.xml.dtm.DTMManager

I would like use Primefaces and Myfaces on my application. However there is an exception. 00:31:01,292 SEVERE [org.primefaces.config.ConfigContainer] (http--0.0.0.0-8081-1) Could not load or parse web.xml: java.lang.ClassCastException:…
Phi
  • 153
  • 2
  • 3
  • 12
3
votes
1 answer

MyFaces doesn't append javax.faces.ViewState back on ajax update of stateless view

I'm experiencing some trouble running multiple times the same ajax request that updates its enclosing form with stateless JSF (MyFaces 2.2.8 + CDI OpenWebBeans 1.2.7 running on Tomcat 7). Here is an SSCCE that will depict the issue better than…
Zim
  • 1,457
  • 1
  • 10
  • 21
3
votes
0 answers

action not working after upgrade to MyFaces 2.1.9

Our team is upgrading Webapplication from Myfaces-1.1.5 to Myfaces-2.1.9 and from Tomahawk-1.1.3 to Tomahawk-1.1.14. Before this upgrade we were using ajax4jsf-1.0.6, after upgrade we are using richfaces-impl-jsf2-3.3.4. The problem is we are not…
3
votes
0 answers

java.lang.ClassCastException: javax.faces.webapp.FacesServlet cannot be cast to javax.servlet.Servlet - in OSGI

I add necessary bundles in OSGI framework. I want to see JSF page with tags in OSGI. Page is working but tags are not working. For example my index.xhtml is ;
3
votes
2 answers

How to create conditions based on user role using JSF/MyFaces?

What options do I have to read the roles of the current user from my JSP pages? I'm aware of the visibleOnUserRole="myRole" attribute on Tomahawk components, but I need roles for a bit more complicated things than simple visibility.
Chei
  • 2,117
  • 3
  • 20
  • 33
3
votes
1 answer

Disable RestorableViewHandler in Omnifaces

I am using OmniFaces 1.10 and Apache MyFaces 2.2.6 together in a large web application. When the application is run in production, I am getting spurious exceptions of the following form in the web server (Tomcat)…
Markus
  • 33
  • 2
3
votes
1 answer

getApplication().evaluateExpressionGet trying to create new Instance (jsf 2.0 -> 2.2 migration issue?)

For some reason (wonder why....) After my bean in being created (as a result of ValueExpressionImpl: #{admin.userLocale} (I see it in the stack-trace in the break-point of the constructor), tight after that when my phaselistener is failing…
Daniel
  • 36,833
  • 10
  • 119
  • 200
3
votes
2 answers

Flash messages not shown after redirect in MyFaces while it worked in Mojarra

I've my own ExceptionHandlerWrapper to manage ViewExpiredException and other errors. The idea is to catch the error, add some error message and redirect (with a redirection, not navigation) to the index page, where the error message will be…
cocorossello
  • 1,289
  • 1
  • 17
  • 30
3
votes
1 answer

Primefaces + MyFaces + CDI (OpenWebBeans) + WAS 8.5

Good day, Right now I'm trying to migrate my currently working application (Primefaces+EJB+JPA + Glassfish 4.0) to WAS 8.5. I tried using mojarra to be able to make Primefaces work. I thought I was already successful but then I stumbled upon this…
Fritz
  • 1,144
  • 1
  • 13
  • 21
3
votes
0 answers

How to get JSF file upload to work on TomEE 1.6?

I'm having problems with using multi-part form. I have started my project on TomEE 1.6 which came with the following JSF implementation: myfaces-api-2.1.13 myfaces-impl-2.1.13 I read it's OK to upgrade JSF on TomEE so I replaced those two…
jacekn
  • 1,521
  • 5
  • 29
  • 50
3
votes
1 answer

Shared library with newer version of MyFaces on WebSphere 8.5

I'm migrating applications from WebSphere 7.0 to WebSphere 8.5. WebSphere 8.5 uses older version of MyFaces (2.0.2) than we use (2.0.7) so I've tried to configure the newer version in the same way as under WAS 7.0, that is, using shared…
Danubian Sailor
  • 1
  • 38
  • 145
  • 223