title: Star Rating Primefaces always zero
body: <p>I have a problem with rating of Primefaces 3.2.<br>
  I use it on my JSF project, but it set ALWAYS zero rate.<br>
  Why ? How can i solve this ?
  This is my code XHTML page:</p>
  
  <pre><code>&lt;p:rating value="#{mybean.rating}"&gt;  
    &lt;p:ajax event="rate" listener="#{mybean.onrate}" update="messages,spanResult"  /&gt; 
  &lt;/p:rating&gt;  
  </code></pre>
  
  <p>And this is my bean code:</p>
  
  <pre><code>@ManagedBean(name="mybean")
  @SessionScoped
  public class MyBean implements Serializable{
    public void onrate(RateEvent rateEvent){
      FacesMessage message1 = new FacesMessage(FacesMessage.SEVERITY_INFO, "Rate Event", "You rated:" + ((Double) rateEvent.getRating()).intValue());  
      FacesContext.getCurrentInstance().addMessage(null, message1);
      ....
     }
  
     private double rating; 
  
     public double getRating() {  
         return rating;  
     }  
  
  
     public void setRating(double rating) {
         this.rating = rating;  
     }  
  
     ...
  }
  </code></pre>