Passing parameters to PrimeFaces Star Rating component?

后端 未结 4 499
南旧
南旧 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:31

    I finally figured out how to do this...

    
       
       
    
    

    Then, in my action class, I'm able to get the value for selectedObj by doing this...

    String selectedObjID = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("selectedObj");
    

    Piece of cake!

提交回复
热议问题