Re: icons as checkboxes
thanks. i'll look into it and tell you what i've made :) Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Thu, Mar 11, 2010 at 12:06 PM, reiern70 wrote: > > Hi Eyal, > > I do something similar here > > > http://code.google.com/p/antilia/source/browse/trunk/com.antilia.web/src/com/antilia/web/beantable/ToggleSelectRowButton.java > > It is just a Panel with and AjaxLink and an image. When user click link a > round-trip to the server toggles boolean state and redisplays the panel > changing the image accordingly (selected or un-selected). Feel free to > reuse > the code or adapt it if it suits your needs. > > Best, > > Ernesto > > > egolan74 wrote: > > > > Hi, > > How can I make a Component to act as a checkbox, but to show an icon > > instead? > > > > I want to show an icon (image) when not selected, and if the user clicks > > on > > it, it will be selected => selected icon. > > The model to use is a Boolean. > > > > I guess this is easy, but please provide some code / explanation. > > > > Thanks, > > > > > > Eyal Golan > > egola...@gmail.com > > > > Visit: http://jvdrums.sourceforge.net/ > > LinkedIn: http://www.linkedin.com/in/egolan74 > > > > P Save a tree. Please don't print this e-mail unless it's really > > necessary > > > > > > - > > Eyal Golan > > egola...@gmail.com > > > > Visit: JVDrums > > LinkedIn: LinkedIn > > > > -- > View this message in context: > http://old.nabble.com/icons-as-checkboxes-tp27861120p27861503.html > Sent from the Wicket - User 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: icons as checkboxes
Hi Eyal, I do something similar here http://code.google.com/p/antilia/source/browse/trunk/com.antilia.web/src/com/antilia/web/beantable/ToggleSelectRowButton.java It is just a Panel with and AjaxLink and an image. When user click link a round-trip to the server toggles boolean state and redisplays the panel changing the image accordingly (selected or un-selected). Feel free to reuse the code or adapt it if it suits your needs. Best, Ernesto egolan74 wrote: > > Hi, > How can I make a Component to act as a checkbox, but to show an icon > instead? > > I want to show an icon (image) when not selected, and if the user clicks > on > it, it will be selected => selected icon. > The model to use is a Boolean. > > I guess this is easy, but please provide some code / explanation. > > Thanks, > > > Eyal Golan > egola...@gmail.com > > Visit: http://jvdrums.sourceforge.net/ > LinkedIn: http://www.linkedin.com/in/egolan74 > > P Save a tree. Please don't print this e-mail unless it's really > necessary > > > - > Eyal Golan > egola...@gmail.com > > Visit: JVDrums > LinkedIn: LinkedIn > -- View this message in context: http://old.nabble.com/icons-as-checkboxes-tp27861120p27861503.html Sent from the Wicket - User 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
icons as checkboxes
Hi, How can I make a Component to act as a checkbox, but to show an icon instead? I want to show an icon (image) when not selected, and if the user clicks on it, it will be selected => selected icon. The model to use is a Boolean. I guess this is easy, but please provide some code / explanation. Thanks, Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary