input outside form?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

input outside form?

Dierk König
Hi,

I don't understand the purpose of

DefaultGrailsTemplateGenerator.generateEditView line 486
which renders a hidden input field outside the form element:
----
<span class="name">Id:</span>
<span class="value">\\${${propertyName}?.id}</span>
<input type="hidden" name="${propertyName}.id"
value="\\${${propertyName}?.id}" /> <!-- ??? -->
</div>
<g:form controller="${propertyName}" method="post">
----

cheers
Mittie

Reply | Threaded
Open this post in threaded view
|

Re: input outside form?

graemer
On 3/16/06, Dierk Koenig <[hidden email]> wrote:

> Hi,
>
> I don't understand the purpose of
>
> DefaultGrailsTemplateGenerator.generateEditView line 486
> which renders a hidden input field outside the form element:
> ----
> <span class="name">Id:</span>
> <span class="value">\\${${propertyName}?.id}</span>
> <input type="hidden" name="${propertyName}.id"
> value="\\${${propertyName}?.id}" /> <!-- ??? -->
> </div>
> <g:form controller="${propertyName}" method="post">
> ----

Hmm a mistake on my part and should be inside the form element if it
is already not so

Graeme

>
> cheers
> Mittie
>
>