Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Terra
I would definitely recommend leveraging the class hierarcy of DropDownChoice/AbstractSingleSelectChoice in case you are using a single select, and if it is multi select then respective ListMultipleChoice. This way you can leverage the existing implementation of isSelected etc. ** Martin ti 30.

Re: Question about IChoiceRenderer

2018-10-30 Thread Claudia Hirt
Thanks for the tip Martin Terra! And thank you for the example code Martin Grigorov! Good to know I'm on the right track. I still have one proplem left, I know it really is a minor thing. I developed a framework component for a group selectbox which takes a HashMap containing the optgroups

Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Terra
a stable > > id > > > out of it. In case you cannot get such id then you may use the passed > > > index, but in this case you have to make sure that the same index is > > always > > > used for this object instance (as the javadoc explains). > > > > > >

Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Grigorov
ins). > > > > Wicket-Extensions' Select doesn't use IChoiceRenderer at all, so I don't > > see what is the relation to the first part of your question. > > > >> On Fri, Oct 26, 2018 at 2:54 PM Claudia Hirt > wrote: > >> > >> Hi all, > >> > >

Re: Question about IChoiceRenderer

2018-10-30 Thread Claudia Hirt
c explains). > > Wicket-Extensions' Select doesn't use IChoiceRenderer at all, so I don't > see what is the relation to the first part of your question. > >> On Fri, Oct 26, 2018 at 2:54 PM Claudia Hirt wrote: >> >> Hi all, >> >> i have a question about ICh

Re: Question about IChoiceRenderer

2018-10-30 Thread Martin Grigorov
irt wrote: > Hi all, > > i have a question about IChoiceRenderer used for Selectboxes. > > There is a method String getIdValue(Tobject, int index) to get the unique > id value of an option object. > The javadoc says the following: > > "This method is cal

Question about IChoiceRenderer

2018-10-26 Thread Claudia Hirt
Hi all, i have a question about IChoiceRenderer used for Selectboxes. There is a method String getIdValue(Tobject, int index) to get the unique id value of an option object. The javadoc says the following: "This method is called to get the id value of an object (used as the

Re: question about IChoiceRenderer#getIdValue

2009-06-08 Thread Igor Vaynberg
no its not really safe if the changes to locale resort the list. -igor On Mon, Jun 8, 2009 at 6:12 PM, Ian MacLartyian.macla...@gmail.com wrote: Hello, I wonder if someone could clarify when it is safe to use the index as the value for IChoiceRenderer#getIdValue.  The documentation says that

Re: question about IChoiceRenderer#getIdValue

2009-06-08 Thread Ian MacLarty
On Tue, Jun 9, 2009 at 11:23 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: no its not really safe if the changes to locale resort the list. Okay, thanks. Ian. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org