there is, something like that:

final TextField field = new TextField("foo");
field.setLabel(new ResourceModel("fooKey"));
add(field);
add(new SimpleFormComponentLabel("fooLabel", field);

regards,
Michael

pointbreak+wicketstuff wrote:
> 
> Hi,
> 
> Is there an easy way to set the "for" attribute of a label tag to the
> (generated) markup id of an form input element? I cannot set the for
> attr. directly in the html template, because the id's are generated
> dynamically by wicket (because part of RepeatableViews). Right now I am
> doing it programmatically by overriding onComponentTag on the label and
> setting it to the markupId of the form component there. But this seems
> like something that may have a better solution in wicket itself, is
> there?
> 
> Thanks!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Associating-label-tags-with-input-elements-in-RepeatableViews-etc.-tp19388383p19389195.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to