Re: how to validate a Label?

2010-12-13 Thread James Carman
hidden field?

On Mon, Dec 13, 2010 at 8:35 PM, rolandpeng rolandp...@cht.com.tw wrote:

 Hi,
   I need to validate a readonly Label with required which displays some
 selection from a modalwindow. But a Label is not a formcomponent , so I
 cannot use setRequired() to fulfill my requirement.
   If I use a TextField/setEnable(false)/setRequired(true) for instead, the
 validator also become disable.

   Do anyone give me some advice? Thank you!

 Roland.
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086348.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 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: how to validate a Label?

2010-12-13 Thread rolandpeng

I've tried a Label + TextField/setVisible(false)/setRequired(true) as well. 
But as the TextField is hidden,the required validation also disable ,either.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086378.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: how to validate a Label?

2010-12-13 Thread rolandpeng

oh, thank you for the hint.
I find a HiddenField in the form package. I'll try this component later.
Thank you again!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086380.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: how to validate a Label?

2010-12-13 Thread James Carman
That's the ticket!  Good luck,

On Mon, Dec 13, 2010 at 9:18 PM, rolandpeng rolandp...@cht.com.tw wrote:

 oh, thank you for the hint.
 I find a HiddenField in the form package. I'll try this component later.
 Thank you again!
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086380.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 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