Hello!
I have extendedDataTable with some dataModel behind. I'm implementing functionality that will delete selected rows from a table. So I have table:
{code:xml}
<rich:extendedDataTable id="main_table1" value="#{staffController.items}" var="row"
rows="#{staffController.pageSize}" selection="#{staffController.selection}">
{code}
and some jsFunction
{code:xml}
<a4j:jsFunction name="deleteInline" action="#{staffController.delete(_param1)}" render="main_table1">
<a4j:param name="param1" assignTo="#{_param1}"/>
</a4j:jsFunction>
{code}
This function is called from different places in such way:
{code:javascript}
function doIt(){
rN = getActiveIndex();
deleteInline(rN);
}
{code}
Everything works fine for me except I'm trying to delete the first row. And here is a problem: deleted row is rendered despite the fact that it is absent in a dataModel. If I press F5 in my browser - previously deleted row disappears from a extendedDataTable. If I'm trying to delete another rows (second, third,...last) I haven't any troubles.
How can I fix it? Is it a bug?