myfaces « RichFaces « JSF Q&A

1. Unified Navigation System for JSF (menus, breadcrumbs, sitemap)

We're using MyFaces, Richfaces & Restfaces to build a website on top of Oracle Stellant CMS. We're not using Site Studio. Are there any widgets/combination of widgets out there that could ...

2. 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 ...

3. JSF Myfaces NullPointerException: serialFactory

Im a bit at my wits end here. Im getting the following in my logs when I try to render a JSF page:

java.lang.NullPointerException: serialFactory
at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(
at org.apache.myfaces.shared_impl.util.StateUtils.construct(
at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeViewStateField(
at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState(
at javax.faces.render.ResponseStateManager.writeState(
at org.ajax4jsf.application.AjaxStateManager.writeState(
at org.ajax4jsf.application.AjaxStateManager.writeState(
at ...

4. How to display image in jsf and onclick provide a file upload (to replace)

I would like to display an image on my web page and provide the user the ability to click it and upload another image to replace it. Either myfaces or Richfaces works.. ...

5. 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 ...

6. Populating a page from Data table in modal panel

I'm trying to get some data from a datatable in rich:modal panel The whole flow is as follows

  • When clicking on search button on main page, a modal panel pops up ...

7. RichFaces 4 - Javascript "RichFaces not found"

Sorry for the question title, but I couldn't figure out a better one. I'm using JSF 2.0 (MyFaces 2.0.2) and added RichFaces 4 ( to my project. I found an example with RichFaces ...

8. How to refer element id dynamically

I am trying to spread the radio buttons using tomahawk selectOneRadio. My id looks like this

<rich:dataTable id="carTable" value="#{cars}" var="car">
        <s:decorate ...

9. myFaces Trinidad example not displaying

Hi I have followed the setup guide at: When I include the following code in my faces-config.xml file I get an error when I hit a page:


10. How to configure RichFaces and MyFaces Filter in web.xml

I am using RichFaces in my application, but I need to configure MyFaces filter in web.xml. My web.xml is as follows


11. remember position of html select after post

I have two select boxes, adding from one to another. When a user selects an item from 'select 1' and clicks the 'add' button, the item is added to 'select 2'. A problem ...

12. jsf - a4j action firing, but after page rendering logic fires

Using richfaces 3.1.5 with myfaces/jsf and notice when I invoke an a4j action, before it executes, the entire facelet it is on is getting rerendered - I'm remote debugging and when ...

13. Making Glassfish respond to ajax request JSF 2

I'm trying to do an ajax request to my server (Glassfish v3.1 open source edition) and for any reason the request never go to the server, running the same proyect on ...

14. Showing modalPanel on tomahawk scheduler

I use schedule tomahawk ApI ti show a scheduler, now i need when i click on the schedule a richfaces modalpanel be shown.

<t:schedule value="#{scheduleHandler1.model}" id="schedule1"

15. richfaces 4 datatable not rendered completely . Error 80020101

I am using RF 4.0 Final with Apache MyFaces 2.0 on Tomcat 7. I just copied the code from RichFaces demo website for datatable and put it in my app. The ...

16. ui:include in richfaces 4 only gets updated on second click

I am new to Richfaces4 and JSF2 and having lots of issues. Same code start to work suddenly and then it breaks. Currently I have a ui:include tag that update the ...

17. Adding RichFaces to an existing JBoss Seam application

Given a web application built using Jboss seam with following details:

 dynamic web module: 2.3
 Java : 1.5
 Javascript: 1.0
 Tomcat: 5.0

19. how to use RichFaces component in MyFaces projects?

Your best bet is to read the RichFaces documentation, since the exact requirements vary depending on the application server and server version that you're deploying to. Here's a Maven POM for a project that uses RichFaces. If you're not using Maven, just include the RichFaces dependencies that have a scope of "compile" or no explicit scope. Scope "provided" means that the ...

20. MyFaces vs. RichFaces