You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Nick Westgate <ni...@key-planning.co.jp> on 2007/07/31 05:27:50 UTC

Re: T5 How to get form name

The id and name of a form are the same, so:

@Environmental
private FormSupport _formSupport;

...

String name = _formSupport.getClientId();

Cheers,
Nick.


Shing Hing Man wrote:
> I have a component that subclass  AbstractField.
> In the beginRender method of my component, how do
> I get the name of the enclosing form ?
> 
> Thanks in advance for any assistance !
> 
> Shing  
>  
> 
> Home page : http://www.lombok.demon.co.uk/
> 
> 
> 
>       ___________________________________________________________ 
> Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
> your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

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


Re: T5 How to get form name

Posted by Shing Hing Man <ma...@yahoo.com>.
Thanks!

Shing


--- Nick Westgate <ni...@key-planning.co.jp> wrote:

> The id and name of a form are the same, so:
> 
> @Environmental
> private FormSupport _formSupport;
> 
> ...
> 
> String name = _formSupport.getClientId();
> 
> Cheers,
> Nick.
> 
> 
> Shing Hing Man wrote:
> > I have a component that subclass  AbstractField.
> > In the beginRender method of my component, how do
> > I get the name of the enclosing form ?
> > 
> > Thanks in advance for any assistance !
> > 
> > Shing  
> >  
> > 
> > Home page : http://www.lombok.demon.co.uk/
> > 
> > 
> > 
> >      
>
___________________________________________________________
> 
> > Yahoo! Mail is the world's favourite email. Don't
> settle for less, sign up for
> > your free account today
>
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
> 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail:
> users-help@tapestry.apache.org
> > 
> > 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
> 
> 


Home page : http://www.lombok.demon.co.uk/



      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

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