You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Boris Kovalenko <bo...@tagnet.ru> on 2006/07/26 15:59:03 UTC

please explain

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