Does your book cover this in more detail?  Also, what do you do if you have a 
For component outside of a form?

Thanks,
Rob

-----Original Message-----
From: Kent Tong [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 27, 2005 4:44 AM
To: tapestry-user@jakarta.apache.org
Subject: Re: Datasqueezers and strategies

Rob Dennett <rob_dennett <at> tmit1.org> writes:

> I made the class in question implement Serializable (although I didn’t 
> define a serialVersionUID), but now I get a NotSerializableException.  
> The class in question contains a list of other objects as well.  Do I 
> need to create a datasqueezer adaptor for this?  

No. Just make sure the objects in the your object graph are all
Serializable.

> Why?  What do they do, exactly?

So that they can be stored as strings in the HTML page in the browser.
The strings will be turned back into objects on rewind.

> Also, if I am dealing with a complex object graph, is it inappropriate to 
> pass 
> it to a component?

To cut down the network traffic, you may want to just store their keys
in the HTML page. To do that, use the "converter" or "keyExpression"
parameter of the "For" component.

--
Author of a book for learning Tapestry (www.agileskills2.org/EWDT)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.6/111 - Release Date: 9/23/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.6/111 - Release Date: 9/23/2005
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to