Passing parameters to PrimeFaces Star Rating component?

后端 未结 4 495
南旧
南旧 2021-01-12 06:16

I\'m trying to make use of the Star Rating component from PrimeFaces. However, it does not allow you to pass in parameters. That makes it impossible for me to do a lookup

4条回答
  •  渐次进展
    2021-01-12 06:29

    f:viewParam lets you pass request parameters to bean properties

    
      
    
    

    id gets set in the MyObj Bean on page load

    
    

    Since your bean has the id, when the rateListener method is called the id can be used to save the rating to the database

提交回复
热议问题