You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2012/06/21 17:15:17 UTC

Re: discard persistent field

Have you tried assigning them the value null?

On Thu, Jun 21, 2012 at 5:59 AM, Athneria, Mahendra <
mahendra.athneria@atos.net> wrote:

>  Hi,****
>
> ** **
>
> Is there any way through which I can discard the Object from
> PersistantConstant? ****
>
> ** **
>
> I got ComponentResources.*discardPersistentFieldChanges<http://tapestry.apache.org/tapestry5.0/apidocs/org/apache/tapestry5/ComponentResources.html#discardPersistentFieldChanges()>
> *() method which discard all persistent field changes for the page
> containing the component. ****
>
> ** **
>
> But I want to discard only selected fields.****
>
> ** **
>
> Is it Possible?****
>
> ** **
>
> *Regards,*
>
> *Mahendra Athneria*
>
> [image: cid:221044411@01072011-28AB]**
>
> Ext-+91 22 6733 3729****
>
> Mob-+91 9833 121 309****
>
> *mahendra.athneria@atos.net*
>
> [image: cid:image001.gif@01CA57B6.7335F1E0]****
>
> ** **
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Re: discard persistent field

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 22 Jun 2012 02:12:57 -0300, Athneria, Mahendra  
<ma...@atos.net> wrote:

> Yes I thought about the same, just wanted to confirm if I assign the  
> object to null does it discarded from the Persist state?

Yes. That's what Howard said.

-- 
Thiago H. de Paula Figueiredo

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


RE: discard persistent field

Posted by "Athneria, Mahendra" <ma...@atos.net>.
Yes I thought about the same, just wanted to confirm if I assign the object to null does it discarded from the Persist state?

Regards,
Mahendra Athneria

Ext-+91 22 6733 3729
Mob-+91 9833 121 309
mahendra.athneria@atos.net



-----Original Message-----
From: Howard Lewis Ship [mailto:hlship@gmail.com] 
Sent: Thursday, June 21, 2012 8:45 PM
To: Tapestry users
Subject: Re: discard persistent field

Have you tried assigning them the value null?

On Thu, Jun 21, 2012 at 5:59 AM, Athneria, Mahendra <
mahendra.athneria@atos.net> wrote:

>  Hi,****
>
> ** **
>
> Is there any way through which I can discard the Object from
> PersistantConstant? ****
>
> ** **
>
> I got ComponentResources.*discardPersistentFieldChanges<http://tapestry.apache.org/tapestry5.0/apidocs/org/apache/tapestry5/ComponentResources.html#discardPersistentFieldChanges()>
> *() method which discard all persistent field changes for the page
> containing the component. ****
>
> ** **
>
> But I want to discard only selected fields.****
>
> ** **
>
> Is it Possible?****
>
> ** **
>
> *Regards,*
>
> *Mahendra Athneria*
>
> [image: cid:221044411@01072011-28AB]**
>
> Ext-+91 22 6733 3729****
>
> Mob-+91 9833 121 309****
>
> *mahendra.athneria@atos.net*
>
> [image: cid:image001.gif@01CA57B6.7335F1E0]****
>
> ** **
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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


Re: discard persistent field

Posted by Muhammad Gelbana <m....@gmail.com>.
http://tapestry.apache.org/persistent-page-data.html

The method discardPersistentFieldChanges() of ComponentResources will
> discard all persistent fields for the page, regardless of which strategy is
> used to store the property. This will not affect the page in memory, but
> takes effect for subsequent requests.



On Thu, Jun 21, 2012 at 5:15 PM, Howard Lewis Ship <hl...@gmail.com> wrote:

> Have you tried assigning them the value null?
>
> On Thu, Jun 21, 2012 at 5:59 AM, Athneria, Mahendra <
> mahendra.athneria@atos.net> wrote:
>
> >  Hi,****
> >
> > ** **
> >
> > Is there any way through which I can discard the Object from
> > PersistantConstant? ****
> >
> > ** **
> >
> > I got ComponentResources.*discardPersistentFieldChanges<
> http://tapestry.apache.org/tapestry5.0/apidocs/org/apache/tapestry5/ComponentResources.html#discardPersistentFieldChanges()
> >
> > *() method which discard all persistent field changes for the page
> > containing the component. ****
> >
> > ** **
> >
> > But I want to discard only selected fields.****
> >
> > ** **
> >
> > Is it Possible?****
> >
> > ** **
> >
> > *Regards,*
> >
> > *Mahendra Athneria*
> >
> > [image: cid:221044411@01072011-28AB]**
> >
> > Ext-+91 22 6733 3729****
> >
> > Mob-+91 9833 121 309****
> >
> > *mahendra.athneria@atos.net*
> >
> > [image: cid:image001.gif@01CA57B6.7335F1E0]****
> >
> > ** **
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>



-- 
*Regards,*
*Muhammad Gelbana
Java Developer*