Re: Question about getName()

"Howard M. Lewis Ship" <[email protected]>
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <001b01c2a55d$a8417980$3dc41e42@howardczkz2sl3>
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 
  To: [email protected] 
  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.