Re: Newbie question - HTML Labels and IDs

2009-09-30 Thread Igor Vaynberg
see FormComponentLabel and SimpleFormComponentLabel

-igor

On Wed, Sep 30, 2009 at 8:34 AM, Phillip Sacre
psa...@clifford-thames.com 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=modelModel/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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Newbie question - HTML Labels and IDs

2009-09-30 Thread Phillip Sacre
That's great, thanks - I knew there must be a simple way of doing it!

Phill

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: 30 September 2009 16:36
To: users@wicket.apache.org
Subject: Re: Newbie question - HTML Labels and IDs

see FormComponentLabel and SimpleFormComponentLabel

-igor


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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org