You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chuck Kring <cj...@pacbell.net> on 2009/05/09 01:24:17 UTC

Clarification on discardPersistentFieldChanges

Hi,

I have a question about ComponentResources discardPersistentFieldChanges.

The page in question is a configuration page and contains a large number 
of components that each have some persisted state and I'm currently 
calling discardPersistentFieldChanges on the page onSubmit..   I want to 
make sure that all persisted state is discarded for the page as well as 
for all components used in that page.

The documentation for this function says: Discards all persistent field 
changes for the page containing the component.

My reading of this is that I can call discardPersistentFieldChanges  on 
any component on the page and it will discard all persistent field 
changes on the page and on all components used in the page.   Is this 
true or do I need to explicitly call discardPersistentFieldChanges on 
each component?

Thanks.

Chuck Kring


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Clarification on discardPersistentFieldChanges

Posted by Chuck Kring <cj...@pacbell.net>.
Thank you!

Igor Drobiazko wrote:
> Hi,
>
> a call of discardPersistentFieldChanges() will clean the state of the page
> and all embedded components.
> So you don't have to iterate over all components.
>
> On Sat, May 9, 2009 at 1:24 AM, Chuck Kring <cj...@pacbell.net> wrote:
>
>   
>> Hi,
>>
>> I have a question about ComponentResources discardPersistentFieldChanges.
>>
>> The page in question is a configuration page and contains a large number of
>> components that each have some persisted state and I'm currently calling
>> discardPersistentFieldChanges on the page onSubmit..   I want to make sure
>> that all persisted state is discarded for the page as well as for all
>> components used in that page.
>>
>> The documentation for this function says: Discards all persistent field
>> changes for the page containing the component.
>>
>> My reading of this is that I can call discardPersistentFieldChanges  on any
>> component on the page and it will discard all persistent field changes on
>> the page and on all components used in the page.   Is this true or do I need
>> to explicitly call discardPersistentFieldChanges on each component?
>>
>> Thanks.
>>
>> Chuck Kring
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>     
>
>
>   

Re: Clarification on discardPersistentFieldChanges

Posted by Igor Drobiazko <ig...@gmail.com>.
Hi,

a call of discardPersistentFieldChanges() will clean the state of the page
and all embedded components.
So you don't have to iterate over all components.

On Sat, May 9, 2009 at 1:24 AM, Chuck Kring <cj...@pacbell.net> wrote:

> Hi,
>
> I have a question about ComponentResources discardPersistentFieldChanges.
>
> The page in question is a configuration page and contains a large number of
> components that each have some persisted state and I'm currently calling
> discardPersistentFieldChanges on the page onSubmit..   I want to make sure
> that all persisted state is discarded for the page as well as for all
> components used in that page.
>
> The documentation for this function says: Discards all persistent field
> changes for the page containing the component.
>
> My reading of this is that I can call discardPersistentFieldChanges  on any
> component on the page and it will discard all persistent field changes on
> the page and on all components used in the page.   Is this true or do I need
> to explicitly call discardPersistentFieldChanges on each component?
>
> Thanks.
>
> Chuck Kring
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko