[Wicket-user] Hyperlinks in a label?

2007-06-13 Thread Justin Morgan (Logic Sector)
Here's a question for the Wicket gurus out there...

I'd like to create a labeled check box at the bottom of a form.  The  
check box label will contain two bookmarkable hyperlinks, like so:

 [x] I agree to the  _Terms_of_Use_  and the  _Submission_Policy_

Further, the check box is required, so I'd like Wicket to display an  
error message if the box is unchecked upon form submission, like so:

 o  field 'I agree to the Terms of Use and the Submission Policy'  
is required.

Without hyperlinks, it's easy to set the field as required so that  
the error message shows up via setRequired(true).

My question is:  How to I create a label that displays an error  
message correctly, yet also contains hyperlinks within the label?

Many thanks for any assistance,

Justin


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hyperlinks in a label?

2007-06-13 Thread Timo Rantalaiho
On Tue, 12 Jun 2007, Justin Morgan (Logic Sector) wrote:
 My question is:  How to I create a label that displays an error  
 message correctly, yet also contains hyperlinks within the label?

Make it a WebMarkupContainer that has the logic and 
necessary child components.  

- Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user