1 Reply Latest reply: Apr 15, 2013 5:36 AM by 987119 RSS

    Is it possible to bind multiple value inside the netui:checkBoxOption ?

    987119
      Hi all,

      As title, Is it possible to bind multiple value inside the netui:checkBoxOption ?

      So my problem like this :

      In my JSP I getting value from my controller as well :
      There are 2 value, let say ChannelName and ChannelPrice

      <netui:checkBoxGroup dataSource="actionForm.selectedListOfChannel" optionsDataSource="${pageFlow.listOfChannel}" repeater="true">
      <tr>
           <td>
                <netui:checkBoxOption value="${container.item.channelName}" />
           </td>
           <td>
                <netui:span value="${container.item.channelName}" />
           </td>
           <td>
                <netui:span value="${container.item.channelPrice}" />
           </td>                                   
           </tr>
      </netui:checkBoxGroup>


      All I want to do is try to get 2 value in here when user tick the checkbox (name and price).
      Name will populate in controller as well..
      and price will be used for counting all the price (there's a summary price below the page, that calculated using javascript).

      Any idea for this ?

      Thanks