tapestry-user@jakarta.apache.org
[Top] [All Lists]

RE: Resetting variables

Subject: RE: Resetting variables
From: "Jon Newton"
Date: Wed, 20 Oct 2004 08:21:17 -0400
I have something like this: 

//tapestry managed
public abstract String getCountry();

//dependant
public boolean isDomestic() { 
  return getCountry().equals("US"); 
}

I'm assuming you have something like? If your dependant prop only uses
references tapestry controlled props, you're fine. 

Of course, there are situations where you need full control, in which
case just use initialize() to reset things (see previous email).  

Jon 

> -----Original Message-----
> From: Peter Leschev [mailto:peter@xxxxxxxxxxx] 
> Sent: Wednesday, October 20, 2004 5:10 AM
> To: Tapestry users
> Subject: Re: Resetting variables
> 
> Hi!
> 
>                     What happens if your property is 
> dependent on other properties in the page?
> 
> Regards,
> Peter
> 
> ----- Original Message -----
> From: "Jon Newton" <jon@xxxxxxxxxxxxxxxx>
> To: "Tapestry users" <tapestry-user@xxxxxxxxxxxxxxxxxx>
> Sent: Wednesday, October 20, 2004 12:18 AM
> Subject: RE: Resetting variables
> 
> 
> > The recommended practice is to allow Tapestry to handle 
> your properties.
> > Define them in your .page file and then put abstract 
> getters and setters
> > in your page class. Tapestry will properly initialize them for you.
> >
> > Jon
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
> > For additional commands, e-mail: 
> tapestry-user-help@xxxxxxxxxxxxxxxxxx
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>