HI,

I�m facing the following problem :

I have an x:dataTable that display rows from a database and an x:dataScroller to
navigate between pages, in that dataTable for every row I have an checkbox that the
user will use to delete rows (Like an web mail).

The first strange behavior is that if the property preserveDataModel is set to true,
and the backing bean has the setter method of the collection associated with the
dataTable (ie. #{GroupBean.current_group.group_users}), The first page is displayed correct,
but I get an exception when I attempt to go to the second page, the exception is :
Attempt to coerce a value of type "br.com.venus.model.valueobjects.UserVO"
to type "java.util.Collection". If I remove the setter, the exception is gone, but I
cannot remove the setter because the object was populated by Hibernate.

If I change the preserveDataModel to FALSE, the exception is gone, BUT, the checkboxes
does not mantain the state between page changes, if I check an row in the first page,
then move to the second page, and back to first page, the row is not selected.

This looks to me that between page navigation, the scroller is not setting the value
of the checkboxes until the preserveDataModel property is set, but I cannot undestand
why the setter of the collection affect the behavior of the scroller component.

All my backing beans are session scope, I tried to user x:saveState and does not
work too. Myfaces version is 1.09.

And sorry for my bad english.

Any suggestions??
thanks in advance

Reply via email to