This is appropriate for the Tapestry developer list.
 
Check out the code for the existing components.
 
Inside render(), the form components get access to the Form component.
 
Form has a method, getElementId(), that returns the name used for the form element (and guarantees that it is unique).
 
----- Original Message -----
From: Brandon
Sent: Monday, December 16, 2002 12:32 PM
Subject: Question about getName()

Hey man,

How does the variable "name" get set for your form components? I'm writing some custom form components and the name from the .jwc spec is getting lost and I'm getting null. It looks like in all your components (Checkbox for example), you've got an instance variable "name", and a method getName() that returns the name, but I can't find where you're actually setting the name to anything.

Thanks,

Brandon



No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

Reply via email to