Re: Clarification on discardPersistentFieldChanges

2009-05-09 Thread Igor Drobiazko
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 cjkr...@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-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Best regards,

Igor Drobiazko


Re: Clarification on discardPersistentFieldChanges

2009-05-09 Thread Chuck Kring

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 cjkr...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






  


Clarification on discardPersistentFieldChanges

2009-05-08 Thread Chuck Kring

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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org