You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Saldy Mathew <sm...@webifyservices.com> on 2003/12/30 12:38:13 UTC

Help needed to persist a value

Hi,

In my java file before activating a page i am doing something like this

SelectApplications sa = (SelectApplications)cycle.getPage(IPageConstants.SelectApplications);
sa.setEnroll(_persistEnroll);// here _persistEnroll is  a boolean value
cycle.activate(sa);

The problem is during the rendering of the page i am able to retrive the value which was set and send but during the form rewinding
this boolean propertys value is lost.

I dont want to use Visit.....is there any way by which i can persist this value.If so please provide me with the syntax.


Thanks,
Saldy


Re: Help needed to persist a value

Posted by Mark Alcocer Flores <su...@yahoo.com>.
I guess you need to use somthing like this:

- in your page specification(.page)

<page-specification class="SelectApplications">
 <property-specification
	name="enroll"
	type="boolean"
	persistent="yes"/>
</page-specification>

I hope this help.

Mark

--- Saldy Mathew <sm...@webifyservices.com> wrote:
> Hi,
> 
> In my java file before activating a page i am doing
> something like this
> 
> SelectApplications sa =
>
(SelectApplications)cycle.getPage(IPageConstants.SelectApplications);
> sa.setEnroll(_persistEnroll);// here _persistEnroll
> is  a boolean value
> cycle.activate(sa);
> 
> The problem is during the rendering of the page i am
> able to retrive the value which was set and send but
> during the form rewinding
> this boolean propertys value is lost.
> 
> I dont want to use Visit.....is there any way by
> which i can persist this value.If so please provide
> me with the syntax.
> 
> 
> Thanks,
> Saldy
> 
> 


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