You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by st...@wachovia.com on 2005/02/23 20:47:43 UTC

specify name of form without @Form

How do you give a form a name when your not using the @Form syntax?


In my html :

<form jwcid="form"> 


In my .page :

<component id="form" type="Form">
        <binding name="listener" expression="listeners.formSubmit"/>
        <binding name="delegate" expression="beans.delegate"/>
</component>

I tried a static binding of 

<static-binding name="name" value="foo"/>


but the rendered html looks like 

<form method="post" name="Form0" action="/sng/app" name="foo">

Thanks. I'm sure its simple but I dont know how to do it.

Re: specify name of form without @Form

Posted by Geoff Longman <gl...@gmail.com>.
Tapestry generates the form name and you can't override it.


Geoff


On Wed, 23 Feb 2005 14:47:43 -0500, steven.libonati@wachovia.com
<st...@wachovia.com> wrote:
> How do you give a form a name when your not using the @Form syntax?
> 
> In my html :
> 
> <form jwcid="form">
> 
> In my .page :
> 
> <component id="form" type="Form">
>         <binding name="listener" expression="listeners.formSubmit"/>
>         <binding name="delegate" expression="beans.delegate"/>
> </component>
> 
> I tried a static binding of
> 
> <static-binding name="name" value="foo"/>
> 
> but the rendered html looks like
> 
> <form method="post" name="Form0" action="/sng/app" name="foo">
> 
> Thanks. I'm sure its simple but I dont know how to do it.
>

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