rating component + ViewScoped bean + primefaces 1.01

UI Components for JSF
Post Reply
svkap
Posts: 24
Joined: 30 Sep 2009, 14:07

13 May 2010, 10:28

Hi.

I am using primefaces 1.01/02 and RichFaces 3.3.3. For my application I am using JSF 2 (I need @ViewScoped bean). I have View Scoped bean named Bean1. I have Rating Component placed in it. In its constructor I am getting id (get parameter) which I need to load data from the DB (FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id")). When Bean1 is loaded everything is OK. Rating component loads the data from the DB based on the ID. However, when RateEvent is fired a new bean is created. I assume that this is normal because primefaces 1.01 do not understand view scoped beans. The problem is that although I still have id as a get parameter in the URL FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id") returns null. Can u give me some advice?

Thank you.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests