Hello!

        I have next code:

<h:form>
        <h:inputHidden value=#{bean.id}"/>
<t:dataTable value="#{bean.tablelist}" binding="#{bean.table}" preserveDataModel="true">
....
        <t:column>
                <h:commandLink action="#{bean.delete_row}" immediate="true"/>
        </t:columnt>
</t:dataTable>
</h:form>

public String Bean::delete_row() {
        SQL statements to delete selected row from SQL table
        return null;
}

When I press delete link - row actually deletes from SQL table, but after this <t:dataTable> rendered empty. As I understand - the problem is with "immediate". After the delete_row, Bean::getTableList is calling and Bean::id is null :(, but in resulted HTML it has the right value. What is my misunderstanding in JSF states?

P.S. Facelets 1.1.11, 1.1.4-core, 1.1.3-tomahawk

With respect,
        Boris Kovalenko

Reply via email to