Announcement Announcement Module
Collapse
No announcement yet.
ManySelectionTrackingListDataModel problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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="viewScope.hotels"
    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> #{h.id} </rich:column>
    <a4j:support event="onRowClick" reRender="hotelSelection" />
    <rich:column>
    <h:selectBooleanCheckbox id="hotelSelection" name="hotelSelection" value="#{hotels.currentRowSelected}">
    </h:selectBooleanCheckbox>
    </rich:column>
    <rich:column> #{h.otherAttributes} </rich:column>
    </rich:dataTable>

    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.
Working...
X