A recent commit made by Karl for the 'form' class removed from the
'field' an if clause that checked if labels had been defined for a
checkbutton or a radiobutton and in case the label was emitted.

This is breaking some of my scripts based on the form package (luckily
not so many) because labels disappeared from the output altogether. 
eg

myform radiobuttons fruit -values {big medium small} \
              -labels {Watermelon Orange Strawberry} \
              -class myradiobclass

was expected to print something like

<input type="radio" name="fruit" class="myradiobclass"
label="Watermelon" value="big" />Watermelon
...
...

(Admittedly I thought the label was within the <input ...> element)

now the output is something like

<input type="radio" name="fruit" class="myradiobclass"
label="Watermelon" value="big" />

Having labels printed in this way might look to an HTML5 wizard as old
style HTML, but tags can be styled anyway and after all it might help to
have the labels automatically embedded. The way the package is supposed
to work is documented in the manual and at least it needs update now. 

Is there a solution that might work for both cases? What about a new
'-print_labels' for this type of input elements? How am I supposed to
get label printed if I cannot access low level HTML of an input form
being bred by the package?

 thanks

 -- Massimo





---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to