Re: Empy choices durring unit tests with DropDownChoice

2013-06-18 Thread martin.dilger
Dmitriy, Dmitriy...:) Never ever call getObject() on your LoadableDetachable Model in the Constructor of your Component (I taught you better!!:)). Should be: new DropDownChoice(aWicketId, yourModel,new ChoicesModel(), myOwnChoicesRenderer) Mind the second Parameter, as this is your Model that

Re: Empy choices durring unit tests with DropDownChoice

2013-06-18 Thread Dmitriy Neretin
:)) You should better dive into your new project :)) It didn't work... And I don't have any idea why... The constructor (id, myModel, choicesModel, renderer) didn't work too :)) But the example is too complicated to discuss it here. But it works fine if I use this: (id, choisesModel, renderer)