Jorge Godoy wrote:
> I was recoding a template in the form o widgets here and where I had a "<div
> id='something'></div>" I tried using a HiddenField.  It worked great, the
> result of replacing it with my dynamic stuff worked, etc.
>
> BUT, unlike all other widgets where order is preserved due to the list order
> in which they were created and to my surprise, this hiddenfield was moved to
> the top of my form, so the result of the AJAX change went into the wrong
> place, ruining my idea / layout.
>
> I know widgets shouldn't be used for layout, but why is a HiddenField moved
> and all other fields remain in the correct order?  This is something I
> wouldn't expect.
>
> I don't know where to look for this in the code.  Any hints?  I'd really like
> to avoid creating a new template just because of this reordering, if
> possible, because this is the only thing that is "wrong" here.
>

I think you should really go for a custom template since here you have
a specific need, we can't put hidden fields in the normal order since
they will take up an entire row without displaying something and
leaving an empty row, that's why they are grouped at the beginning of
the form layout.

Other than that, any good motivation for using a hidden field to
replace it instead of the div you were using? :- /

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to