Hello Tom, sorry for the brief response (I need to go in 30 minutes, hopefully Martin can also comment on this)
The changes I have made were (most probably) merged from original Igor's code (https://github.com/ivaynberg/wicket-select2) 1) I believe this is since AbstractSelect2Choice is parent class for for Single and Multi choices. 2) the code was refactored a bit, so line numbers were changed. This constructor: https://github.com/wicketstuff/core/blob/wicket-6.x/jdk-1.6-parent/select2-parent/select2/src/main/java/org/wicketstuff/select2/AbstractSelect2Choice.java#L109 seems to not throwing any exceptions 3) you can call constructor mentioned in 2 to avoid exception. 4) I guess renderChoice method is designed to render single choice object, you can override it (for ex. to add your own properties to each choice) other 2 methods are private helpers On Wed, Apr 29, 2015 at 6:12 PM, Tom Götz <t...@decoded.de> wrote: > Sorry, Github link was broken in last email (additional „:“ at the end), > use this: > > https://github.com/wicketstuff/core/commit/92851a253253849582a117d66dee5fcdb15c7353 > > -Tom > > > > On 29.04.2015, at 14:01, Tom Götz <t...@decoded.de> wrote: > > > > Hi Maxim, > > > > I do not understand the changes you introduced to > AbstractSelect2Choice.java in > https://github.com/wicketstuff/core/commit/92851a253253849582a117d66dee5fcdb15c7353 > : > > [...] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- WBR Maxim aka solomax