You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by dh ning <ni...@gmail.com> on 2009/02/19 17:54:52 UTC

Why Grid component fetches data one more time in form submit

Hi,

When Grid is in a form, even though 'volatile' parameter is set to 'false'
(by default), I can see the datasource provider method is called during form
submit.
My understanding is that, if 'volatile' is false, it should not be called in
form submitted, am I missing something?

 Object setupRender()
{
    if (formSupport != null) formSupport.store(this, SETUP_DATA_SOURCE);
    ...
}
>From the source code of Grid.java, if Grid is in form, the SETUP_DATA_SOURCE
componentaction is always called after form submitted. I think 'volatile'
should be here to prevent it from calling during submit. Unfortunately
'volatile' parameter is now declared as publishParameters of GridRows
component.



How do you handle grid component in a form?

Thanks,
DH