0 Replies Latest reply on Jan 4, 2008 11:08 AM by Vibhav Garg

    Extendended Data Model update issue

    Vibhav Garg Newbie


      I am using a version of the ExtendedDataModel example in the demo with MyFaces 1.1.5 as the JSF Implementation. In my use case I would like to force the dataprovider to update the database on a button click, like this...

       <a4j:commandLink value="Update" actionListener="#{bean.updateItems}"/>
       <a4j:outputPanel layout="block" style="height:300px;overflow:auto" ajaxRendered="true">
       <rich:datascroller id="scroller" for="out" maxPages="10"/>
       var="data" value="#{bean.dataObject}" id="out"
       rowKeyVar="rowKey" rows="10">

      However, it seems that the actionListener method from the button gets called before the UIDataAdaptor restores the state of the table and in the ExtendedDataModel and updates the DataProvider. In this case the updated data is not available to the DataProvider to update the database.

      Does anyone have any insight into why this happens and what can be done to fix this?