see FormComponentLabel and SimpleFormComponentLabel -igor
On Wed, Sep 30, 2009 at 8:34 AM, Phillip Sacre <[email protected]> wrote: > Hi, > > I've been using Wicket now for a couple of weeks and am getting on > pretty well with it. I still run into issues occasionally though, and > I'd like to know what the "recommended" way of solving this one is! > > I have the following HTML snippet in a component: > > <tr> > <td> > <label for="model">Model</label> > </td> > <td> > <select id="model" wicket:id="filterModel"></select> > </td> > </tr> > > The problem is, the select component (DropDownChoice) has > "setOutputMarkupId" on it, so the ID on the <label for=""> tag is not > correct. > > Is there a recommended way of solving this problem? I think it would be > possible to bind the <label> tag to a component and then set the "for" > attribute on it manually, but that seems quite a long way round of doing > things. > > Thanks for your help, > Phill > > > This message is for the designated recipient only and may contain privileged > or confidential information. If you have received it in error, please notify > the sender immediately and delete the original. Any other use of the email by > you is prohibited. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
