[Seaside] Passing id's between entities

Michel Bany michel.bany at gmail.com
Thu May 18 16:42:35 UTC 2006

On 16 May 2006, at 19:27 , Richard Huxton wrote:

> I'm building a series of fairly nondescript <label for="X"><input  
> id="X"> tags. The problem is of course setting the "for=". The only  
> way I've got working so far is:
>   lbl := html label.
>   tid := lbl ensureId,'ctrl'.
>   lbl for: tid; with: label.
>   ti := html textInput id: tid;...
> So, that gives us something like "id27ctrl" for the <input>. Now, I  
> want to layout the labels separately from the inputs so I can't  
> just embed the input inside it and it's fiddly to have the label  
> following the input and then position it to the left. Am I missing  
> something obvious here?

I'm not sure this will help, but you may want to have a look at these  
methods in the classic renderer

#label:input: and #labelAfter:input:


More information about the Seaside mailing list