Re: Readonly checkbox

2007-11-17 Thread Martijn Dashorst
not 100% sure, but you could try:
input type=checkbox onclick=return false; readonly=readonly /

On Nov 17, 2007 2:28 AM, mclev [EMAIL PROTECTED] wrote:




 Nick Heudecker wrote:
 
 
  For textareas and textfields I always do onfocus='this.blur();'.  It
  might
  work for checkboxes as well.
 
 

 Nick, tried this, didn't work. Also tried the readonly property and it
 didn't work. Thought about using the setEditable=false, but it doesn't
 look
 right.

 Think I will probably end up overriding the newCell method in the
 PropertyRenderableColumn class to return a special icon depending on the
 true/false value of my property.

 matt clevenger.
 --
 View this message in context:
 http://www.nabble.com/Readonly-checkbox-tf4822650.html#a13805025
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/


Re: Readonly checkbox

2007-11-16 Thread Gabor Szokoli
On Nov 16, 2007 6:06 PM, mclev [EMAIL PROTECTED] wrote:

 I have a case where I'm using a checkbox to show boolean data in a table.
 However I want the data to be readonly.

Try setEnabled(false), works on any Component.


Szocske

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



Re: Readonly checkbox

2007-11-16 Thread mclev



Nick Heudecker wrote:
 
 
 For textareas and textfields I always do onfocus='this.blur();'.  It
 might
 work for checkboxes as well.
 
 

Nick, tried this, didn't work. Also tried the readonly property and it
didn't work. Thought about using the setEditable=false, but it doesn't look
right.   

Think I will probably end up overriding the newCell method in the
PropertyRenderableColumn class to return a special icon depending on the
true/false value of my property.

matt clevenger.
-- 
View this message in context: 
http://www.nabble.com/Readonly-checkbox-tf4822650.html#a13805025
Sent from the Wicket - User mailing list archive at Nabble.com.


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