Announcement Announcement Module
No announcement yet.
ManySelectionTrackingListDataModel problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • ManySelectionTrackingListDataModel problem

    Hello all,

    I'm a newbie to WF2 and I'm tweaking the WF Reference App (hotel booking) application a bit. I'm running into a ManySelectionTrackingListDataModel problem:

    I'm using below to use load the list of hotel into the flow scope.

    <evaluate expression="bookingService.findHotels(searchCriter ia)result=""
    result-type="org.springframework.faces.model.ManySelectio nTrackingListDataModel" />

    On my page, I have a datatable as follows:
    <rich:dataTable id="hotels" styleClass="summary" value="#{hotels}" var="h" rendered="#{hotels.rowCount > 0}">
    <rich:column> #{} </rich:column>
    <a4j:support event="onRowClick" reRender="hotelSelection" />
    <h:selectBooleanCheckbox id="hotelSelection" name="hotelSelection" value="#{hotels.currentRowSelected}">
    <rich:column> #{h.otherAttributes} </rich:column>

    What I'm trying to do is to the get list user selected (checkboxed) of hotel objects into the flow. However, it seems like when user clicks the checkbox, setcurrentRowSelected method is not triggered.

    What am I doing wrong? BTW, I'm using WF2.0.9.

    Please help. Thanks advance for your suggestions/input.