shumbola wrote:
> Здравствуйте, Vincent.
>
> Вы писали Friday, July 06, 2007, 6:29:46 PM:
>
>   
>> Robert Novotny wrote:
>>     
>>> Greetings,
>>> I have migrated by application to the wicket beta2 and I have experienced an
>>> apparent change in the functionality of CompoundPropertyModels.
>>>
>>> I have a simple page with constructor code similar to the following code:
>>> public TestPage() {
>>>   setModel(new CompoundPropertyModel(author));
>>>   add(new Label("firstName"));
>>>   add(new Label("lastName"));
>>>   add(new Palette("lstAuthors", new Model(), new Model(new String[]
>>> {"Michael", "John", "James", "Suzy", "Lucy"}), new ChoiceRenderer(), 5,
>>> false));
>>> }
>>>
>>> with the appropriate HTML page.
>>>
>>> However, when displaying this page, I get the
>>>
>>> No get method defined for class: class com.blahblah.Author expression:
>>> recorder
>>>
>>> Root cause:
>>>
>>> org.apache.wicket.WicketRuntimeException: No get method defined for class:
>>> class com.blahblah.Author expression: recorder
>>>
>>> It seems that the "recorder" pseudocomponent in the Palette component has no
>>> inherent model, therefore it inherits it from the parent compound model.
>>> This error does not seem to appear in the beta1.
>>>
>>> Was there some kind of CompoundPropertyModel change between beta1 and beta2?
>>>   
>>>       
>> Hi
>>     
>
>   
>> I've just had exactly the same problem. did you solve it?
>>     
>
> I've had the same problem. I solved it by changing
> CoumpoundPropertyModel to the PropertyModel and tossing around my
> models. My form now calls super(id) instead super(id,
> CompoundPropertyModel(...), and below that I use PropertyModel.
> I think, you are doing something wrong with models, or your way of
> doing things is not what expects Palette component.
>   
Thanks for the tip but I absolutly need a compoundPropertyModel.

I don't think there is something wrong with that :

public TestPage() {
  setModel(new CompoundPropertyModel(author));
  add(new Label("firstName"));
  add(new Label("lastName"));
  add(new Palette("lstAuthors", new Model(), new Model(new String[]
{"Michael", "John", "James", "Suzy", "Lucy"}), new ChoiceRenderer(), 5,
false));
}

I'll continue to investigate... because it is a very blocker problem for, 
commiters, some idea to rescue me ;)?

--
Vincent



>   
>> Cheers
>>     
>
>   
>> --
>> Vincent
>>     
>>> Robert Novotny
>>>
>>>
>>>   
>>>       
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to