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

JSF - MyFaces - Stack Overflow Error

I am receiving a StackOverflowError while rendering a JSF page. It happens after loading a particular set of data (which happens successfully) and then doing anything else on the page. Note that the page will load properly if it is refreshed after…
OddProblems
  • 201
  • 2
  • 10
2
votes
1 answer

MyFaces - @PostConstruct on abstract class

I'm trying to execute PostConstruct annotated method that is in abstract class, public abstract class AbstractTest { @PostConstruct public void init() { } } @ManagedBean @SessionScoped …
holek
  • 21
  • 2
2
votes
0 answers

How can I update Websphere 7 to use EL2.2?

This is what I have done: Following this post from Lincoln Baxter I downloaded el-api-2.2.jar and el-impl-2.2.jar Then created isolated shard library and added them there. We are using Myfaces so in web.xml added this bit
Shahzeb
  • 4,745
  • 4
  • 27
  • 40
2
votes
2 answers

Redirect after logout fails with java.lang.IllegalStateException: Cannot create a session after the response has been committed

I have a JSF2 application. I have a login bean which is session scoped and a logout bean which is view scoped. When I login I use redirect and it works fine. However the logout fails with redirect. If I logout without redirect it…
rozner
  • 580
  • 2
  • 5
  • 11
2
votes
1 answer

Best way to log in, log out, and store session attributes in JSF

I am very new to JSF, and I am pretty confused about the best practices of managing user logins. There are a lot of answers floating around, but they require knowledge of JSF and Java EE which I don't seem to have. When working with a classic JSP…
Morglor
  • 347
  • 2
  • 7
  • 15
2
votes
2 answers

JSF - set STATE_SAVING_METHOD per-page

I would like to set a particular page (one that does not require a user to sign in to use) to have a STATE_SAVING_METHOD of client rather than server while the rest of the pages use server. Is there a way to set it on a per-page basis? I would like…
OddProblems
  • 201
  • 2
  • 10
2
votes
0 answers

Why is MyFaces/Trinidad rendering my disabled inputTexts as divs?

Deceptively simple question, but I'm at my wits' end here. I have a document. It contains a form. Which contains a subform. Which contains a read-only text field. Here's the relevant part of the structure:
Protected
  • 125
  • 2
  • 7
2
votes
1 answer

tr:commandLink action method does not navigate to next page.Instead loads same page again

In my JSF application ,after successful login, i am navigating to my home page of my application where i have a Logout link. Here is the related html for logout link.
Sreeram
  • 3,160
  • 6
  • 33
  • 44
2
votes
1 answer

addressing components from other naming containers

What I would like to achieve is to be able to address some JSF components from within other naming container. Usecase: composite component which encapsulates some features using - for a field which is defined out of the composite component. Some…
jarek.jpa
  • 565
  • 1
  • 5
  • 18
2
votes
3 answers

Eclipse 2023 Content Assist for xhtml files with Jakarta Server Faces 4.0

My minimal project compiles and runs fine. However I have a lot of editing to do and new dev work on xhtml pages. I noticed that Eclipse Content Assist doesn't function either on backing bean components or JSF components like primefaces. Any…
Ted Spradley
  • 3,414
  • 3
  • 22
  • 26
2
votes
1 answer

WebSphere 9.0.5.3 and MyFaces 2.2 with CACHE_EL_EXPRESSIONS

When org.apache.myfaces.CACHE_EL_EXPRESSIONS with value alwaysRecompile is in web.xml, WAR starts but when trying to go to any JSF view, this exception is thrown: java.lang.NoSuchMethodException:…
Nikola
  • 554
  • 1
  • 4
  • 20
2
votes
0 answers

What is the roadmap for MyFaces 2.3-next-M8

I'm currently developing a jsf app on quarkus using myfaces (2.3-next-M7) but due to a bug that I raised here I can't use it in production and I am eagerly waiting for version 2.3-next-M8, would someone know when it is supposed to be released ? I…
Pilpin
  • 150
  • 9
2
votes
1 answer

Context params ignored from web.xml by Myfaces with Quarkus

I'm working with quarkus and myfaces and I've stumbled into a few ViewExpiredException. Because my application heavily relies on @Viewscoped beans I wanted to check the number of NUMBER_OF_VIEWS_IN_SESSION and NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION…
Pilpin
  • 150
  • 9
2
votes
2 answers

How to group Radio Buttons in h:datatable jsf2.0

I have a column of radio buttons in h:datatable in JSF2 but I can not find a way to group them. Meaning all of them can be selected at the same time where as whole point of radio button is so that only one can be selected at any given time. I am…
Java Ka Baby
  • 4,880
  • 11
  • 39
  • 51
2
votes
1 answer

JSF MyFaces: Monitoring numberOfViewsInSession and numberOfLogicalViews

I'm currently working on a web application with about 10 pages and a medium complexity. We started our performance tests the other day and the following exception could be noticed in the logs: 2011-08-01 15:30:38,075 ERROR [[Faces Servlet]]…
Vladimir G.
  • 418
  • 3
  • 10