You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by alex <de...@yahoo.co.nz> on 2005/05/15 16:09:35 UTC

dataScroller, checkbox values not updated

Hi all,

maybe someone could help me with this.
I have a x:dataTable and one column is displaying checkboxes which 
values are bound to a backing bean property.
So when I now check a checkbox and then use dataScroller to scroll 
through the table, the value of the checkbox is not updated, will say, 
when I scroll back, the "checked" value of the box is disappeared.

With commandSortHeader the value remains.

Any ideas?

Best rgds
Alex

Re: dataScroller, checkbox values not updated

Posted by Sean Schofield <se...@gmail.com>.
There could be a bug.  There are known problems with input components
and sort header (See MYFACES-228.)  I'm hoping to look into more of
the dataTable stuff over the next few weeks so I will try and look
into this issue as well.  Keep us posted on what you find and if
you're convinced there is a bug (or even suspect if) make sure to add
an issue in JIRA.

sean

On 5/15/05, alex <de...@yahoo.co.nz> wrote:
> Slawek wrote:
> 
> > just guessing (cause i have seen such a problem few times):  maybe u
> > have access to database in getter of your datamodel?
> 
> No, I have a logger which logs database access. When using dataScroller
> the logger has no outcome. And it cannot have, because the datamodel is
> populated by an actionmethod of a backing bean bound to a button.
>

Re: dataScroller, checkbox values not updated

Posted by alex <de...@yahoo.co.nz>.
Slawek wrote:

> just guessing (cause i have seen such a problem few times):  maybe u 
> have access to database in getter of your datamodel?

No, I have a logger which logs database access. When using dataScroller 
the logger has no outcome. And it cannot have, because the datamodel is 
populated by an actionmethod of a backing bean bound to a button.

Re: dataScroller, checkbox values not updated

Posted by Slawek <ss...@o2.pl>.
just guessing (cause i have seen such a problem few times):  maybe u have 
access to database in getter of your datamodel?
if so, than data is feetch everytime u go to the next page and your 
checkoboxes are set to false.

Slawek

> Slawek wrote:
>
>> notice that all data and actions that submits that data must be in form 
>> (the same form)
>
> They are in the same form. This is, why it is so strange.
>



Re: dataScroller, checkbox values not updated

Posted by alex <de...@yahoo.co.nz>.
Slawek wrote:

> notice that all data and actions that submits that data must be in 
> form (the same form)

They are in the same form. This is, why it is so strange.

Re: dataScroller, checkbox values not updated

Posted by Slawek <ss...@o2.pl>.
notice that all data and actions that submits that data must be in form 
(the same form)

slawek

> Hi all,
>
> maybe someone could help me with this.
> I have a x:dataTable and one column is displaying checkboxes which 
> values are bound to a backing bean property.
> So when I now check a checkbox and then use dataScroller to scroll 
> through the table, the value of the checkbox is not updated, will say, 
> when I scroll back, the "checked" value of the box is disappeared.
>
> With commandSortHeader the value remains.
>
> Any ideas?
>
> Best rgds
> Alex
>