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

Disable oam.Flash.RENDERMAP.TOKEN

I am using Apache MyFaces 2.0. I notice that a cookie oam.Flash.RENDERMAP.TOKEN is getting created for each view, even though I am not using Flash scope and I have set org.apache.myfaces.DISABLE_FLASH_SCOPE=true. How can I remove the…
ad-inf
  • 1,520
  • 4
  • 30
  • 53
4
votes
2 answers

JSF conditionally render footer (jsf facet)

I would like to render a footer (with a specific content) if the datatable content is empty. I found this How do I conditionally render an ? but that doesnt really solve my problem, as it only renderes the footer if the message isnt empty. …
user1323246
  • 433
  • 2
  • 6
  • 23
4
votes
2 answers

How to force WebSphere AS 8 to use a specific JSF implementation?

I have an old enterprise application that was developed using WAS 6.1, now my company is trying to perform the implementation of that application in WAS 8. But I am having troubles rendering the JSF content, there are some links that when clicked…
Juan Diego
  • 863
  • 1
  • 10
  • 22
4
votes
1 answer

How to get EL 2.2 working on WAS 7 (with Myfaces and Primefaces)?

I'm migrating a JSF 1.2 project, running in WAS7, to JSF2 with Myfaces 2.1.7 and Primefaces. Until now, everything was more or less working, putting myfaces-bundle-2.1.7.jar and primefaces 3.3.RC1.jar in the WEB-INF/lib and changing to classloading…
Lenn
  • 143
  • 1
  • 6
3
votes
3 answers

Troubles Iterating Over A HashMap with JSF, MyFaces & Facelets

I'm having some trouble looping over a HashMap to print out it's values to the screen. Could someone double check my code to see what I'm doing wrong. I can't seem to find anything wrong but there must be something. In a servlet, I am adding the…
Lee Theobald
  • 8,461
  • 12
  • 49
  • 58
3
votes
2 answers

java - How do I save an Uploaded Image to my C drive

This is a follow-up to what I was trying to accomplish here https://stackoverflow.com/questions/7313922/uploading-files-ussing-myfaces-tomahawk-jsf-2-0 I've managed to get the image as an UploadedFile Object, but I can't seem to be able to save it…
Myy
  • 18,107
  • 11
  • 37
  • 57
3
votes
1 answer

f:param doesn't work with h:commandButton

i'm using eclipse 3.6.2 (Helios) , Tomcat 7 , MyFaces 1.2.9 i have no problem when i use f:param into the h:commandLink but when i put f:param into h:commandButton it doesn't work . what's the problem ? this sample work fine :
Hossein Boka
  • 277
  • 2
  • 7
  • 15
3
votes
1 answer

Can not find getFlash() method in Myfaces

FacesContext.getCurrentInstance().getExternalContext().getFlash() I am trying to use above code seems like getFlash() does not exist in JSF2 implementation of Myfaces. How how can I access it. Above line gives me this error The method getFlash() is…
Java Ka Baby
  • 4,880
  • 11
  • 39
  • 51
3
votes
1 answer

Overriding existing CSS files

I want to use a css file for applying a theme. I am using myfaces that has one custom component named Scheduler. Scheduler component is using its own css file that is within jarfile(tomahawk12-1.1.10.jar) named schedule.css and has three…
3
votes
0 answers

JSF Order of operations, should converters be applied before validators?

Are JSF converters supposed to be applied before validators? We have a situation where it seems it's being applied before the converter.
Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84
3
votes
2 answers

jsf application performance improvement tips

How to improve performance of jsf myfaces based application ? Some tips that I have collected so far Trinidad Set following init parameters to false in…
Prashant Bhate
  • 10,907
  • 7
  • 47
  • 82
3
votes
5 answers

JSF problem after server restart: No saved view state could be found

Continue solving this problem, I've replaced Mojarra by MyFaces and upgrade JDK and when I continue working on form after restart of server, following error appears: An Error Occurred: /food.xhtmlNo saved view state could be found for the view…
gaffcz
  • 3,469
  • 14
  • 68
  • 108
3
votes
2 answers

When using MyFaces Orchestra, conversation.access beans NOT being removed when navigating to a different view

We are building an application using JSF 2, Spring, and Hibernate. MyFaces Orchestra is being used to to provide conversation scope which we're using for most of the pages in the application (to take advantage of Orchestra's management of the…
Benito Vega
  • 51
  • 1
  • 4
3
votes
1 answer

How to use ExtJS FormPanel with JSF 2.0

Im trying to use ExtJS FormPanel with JSF 2.0 + MyFaces 2.0.4. ExtJS is a great JavaScript framework at all. But it doesnt use DOM of Page. So the main problem starts with here. To put JSF beans in work i must put h:form tag inside the XHTML(or…
hjunior
  • 91
  • 2
  • 6
3
votes
4 answers

Myfaces Trinidad JSF: Ajax problem when sending Non US-ASCII Characters

The Issue: We have a Java web application, based on Apache MyFaces Trinidad. We are facing some problems when trying to partial submit (that's it: via Ajax) a form, when a field contains some special characters, such as Ñ, á, etc. When we write a…
Tomas Narros
  • 13,390
  • 2
  • 40
  • 56