Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Corbin, James
Hello,

I would like to customize the images used for the selected and unselected 
states of the checkboxes rendered as part of the CheckBoxMultipleChoice 
component, but not sure how to do this...

I've read a few sources that indicate this can be done by specifying a 
class=styled on the markup for the checkbox, but not sure I have access to 
doing so through wicket.

The idea is to specify the following, (obviously the CheckBoxMultipleChoice 
will generate this markup)
input type=checkbox name=blah class=styled/

Once the input markup specifies the styled class, theoretically you can 
customize the background images using css.

Is this the right approach and if so, how can I add a style attribute to the 
generated input type=checkbox/ element?

Thanks,
J.D.




Re: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Igor Vaynberg
put the choice component into a div with a class attribute, then in
css you can do div.the class you gave the div input[type=checkbox]
css styles you want applied

-igor

On Tue, May 11, 2010 at 9:23 AM, Corbin, James jcor...@iqnavigator.com wrote:
 Hello,

 I would like to customize the images used for the selected and unselected 
 states of the checkboxes rendered as part of the CheckBoxMultipleChoice 
 component, but not sure how to do this...

 I've read a few sources that indicate this can be done by specifying a 
 class=styled on the markup for the checkbox, but not sure I have access to 
 doing so through wicket.

 The idea is to specify the following, (obviously the CheckBoxMultipleChoice 
 will generate this markup)
 input type=checkbox name=blah class=styled/

 Once the input markup specifies the styled class, theoretically you can 
 customize the background images using css.

 Is this the right approach and if so, how can I add a style attribute to the 
 generated input type=checkbox/ element?

 Thanks,
 J.D.




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



RE: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Corbin, James
Thanks Igor.

I know this isn't a wicket issue...but,

I'm able to style some aspects of the checkbox's by specifying css as in,

div.div class name input[type=checkbox]
{
...
}

Or

div.div class name input[type=checkbox]:checked
{
...
}

But if I specify the background attribute in either of these sections, it 
doesn't change the they image for the selected or unselected checkbox state.

I've seen a fair number of examples on how to change the checkbox images using 
css and custom javascript, but I hoped it was possible with just css.

J.D.



-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Tuesday, May 11, 2010 11:08 AM
To: users@wicket.apache.org
Subject: Re: Customizing CheckBoxMultipleChoice Images?

put the choice component into a div with a class attribute, then in
css you can do div.the class you gave the div input[type=checkbox]
css styles you want applied

-igor

On Tue, May 11, 2010 at 9:23 AM, Corbin, James jcor...@iqnavigator.com wrote:
 Hello,

 I would like to customize the images used for the selected and unselected 
 states of the checkboxes rendered as part of the CheckBoxMultipleChoice 
 component, but not sure how to do this...

 I've read a few sources that indicate this can be done by specifying a 
 class=styled on the markup for the checkbox, but not sure I have access to 
 doing so through wicket.

 The idea is to specify the following, (obviously the CheckBoxMultipleChoice 
 will generate this markup)
 input type=checkbox name=blah class=styled/

 Once the input markup specifies the styled class, theoretically you can 
 customize the background images using css.

 Is this the right approach and if so, how can I add a style attribute to the 
 generated input type=checkbox/ element?

 Thanks,
 J.D.




-
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: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Igor Vaynberg
i wasnt aware of the fact that it was possible, ive only ever seen
people implement that kind of stuff using custom image/anchor
components.

-igor

On Tue, May 11, 2010 at 11:23 AM, Corbin, James jcor...@iqnavigator.com wrote:
 Thanks Igor.

 I know this isn't a wicket issue...but,

 I'm able to style some aspects of the checkbox's by specifying css as in,

 div.div class name input[type=checkbox]
 {
 ...
 }

 Or

 div.div class name input[type=checkbox]:checked
 {
 ...
 }

 But if I specify the background attribute in either of these sections, it 
 doesn't change the they image for the selected or unselected checkbox state.

 I've seen a fair number of examples on how to change the checkbox images 
 using css and custom javascript, but I hoped it was possible with just css.

 J.D.



 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Tuesday, May 11, 2010 11:08 AM
 To: users@wicket.apache.org
 Subject: Re: Customizing CheckBoxMultipleChoice Images?

 put the choice component into a div with a class attribute, then in
 css you can do div.the class you gave the div input[type=checkbox]
 css styles you want applied

 -igor

 On Tue, May 11, 2010 at 9:23 AM, Corbin, James jcor...@iqnavigator.com 
 wrote:
 Hello,

 I would like to customize the images used for the selected and unselected 
 states of the checkboxes rendered as part of the CheckBoxMultipleChoice 
 component, but not sure how to do this...

 I've read a few sources that indicate this can be done by specifying a 
 class=styled on the markup for the checkbox, but not sure I have access to 
 doing so through wicket.

 The idea is to specify the following, (obviously the CheckBoxMultipleChoice 
 will generate this markup)
 input type=checkbox name=blah class=styled/

 Once the input markup specifies the styled class, theoretically you can 
 customize the background images using css.

 Is this the right approach and if so, how can I add a style attribute to the 
 generated input type=checkbox/ element?

 Thanks,
 J.D.




 -
 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



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



Re: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Zilvinas Vilutis
IE6/7 does not support those CSS selectors [type=checkbox] as far as I
remember


Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   cika...@gmail.com


On Tue, May 11, 2010 at 11:23 AM, Corbin, James jcor...@iqnavigator.comwrote:

 Thanks Igor.

 I know this isn't a wicket issue...but,

 I'm able to style some aspects of the checkbox's by specifying css as in,

 div.div class name input[type=checkbox]
 {
 ...
 }

 Or

 div.div class name input[type=checkbox]:checked
 {
 ...
 }

 But if I specify the background attribute in either of these sections, it
 doesn't change the they image for the selected or unselected checkbox state.

 I've seen a fair number of examples on how to change the checkbox images
 using css and custom javascript, but I hoped it was possible with just css.

 J.D.



 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Tuesday, May 11, 2010 11:08 AM
 To: users@wicket.apache.org
 Subject: Re: Customizing CheckBoxMultipleChoice Images?

 put the choice component into a div with a class attribute, then in
 css you can do div.the class you gave the div input[type=checkbox]
 css styles you want applied

 -igor

 On Tue, May 11, 2010 at 9:23 AM, Corbin, James jcor...@iqnavigator.com
 wrote:
  Hello,
 
  I would like to customize the images used for the selected and unselected
 states of the checkboxes rendered as part of the CheckBoxMultipleChoice
 component, but not sure how to do this...
 
  I've read a few sources that indicate this can be done by specifying a
 class=styled on the markup for the checkbox, but not sure I have access to
 doing so through wicket.
 
  The idea is to specify the following, (obviously the
 CheckBoxMultipleChoice will generate this markup)
  input type=checkbox name=blah class=styled/
 
  Once the input markup specifies the styled class, theoretically you can
 customize the background images using css.
 
  Is this the right approach and if so, how can I add a style attribute to
 the generated input type=checkbox/ element?
 
  Thanks,
  J.D.
 
 
 

 -
 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