0

I have a list on which I am using <ui:repeat>. How can I get the values of <p:rating> of multiple selected rating option? When I used <p:selectManyCheckbox>, it gives multiple selected values by itself. How can I achieve the same in <ui:repeat>?

enter image description here

<ui:repeat var="product" value="#{tInterests.categoryList}" >
    <tr>
       <td><h:outputText value="#{product.categoryValue}" styleClass="cellLabelMand"/> 
          <p:rating value="#{product.rating}"  stars="10" cancel="true" /></td>
    </tr>
</ui:repeat>
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
user3548196
  • 355
  • 1
  • 9
  • 32
  • What exactly is the problem you faced? Do you mean to say that when you submit the form, you aren't seeing the expected values in `categoryList` in the action/listener method? – BalusC Sep 29 '15 at 09:47
  • Yeah i am not seeing the values for rating. That is all null – user3548196 Sep 29 '15 at 10:00
  • How can we reproduce your problem when starting from scratch with a completely blank project using most minimal configuration and most recent versions? Everything works for me when I copypaste your code and add/stub the missing obvious parts. – BalusC Sep 29 '15 at 10:05
  • how did you get the values for Drama, Action and Sports. ? – user3548196 Sep 29 '15 at 10:23
  • Just by submitting the form the usual way, exactly as you would do with your . See also http://stackoverflow.com/questions/3681123/how-to-send-hinputtext-values-and-invoke-a-method-in-jsf-bean – BalusC Sep 29 '15 at 10:25

0 Answers0