Здравствуйте, 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.
> Cheers
> --
> Vincent
>> Robert Novotny
>>
>>
>>
--
С уважением,
shumbola mailto:[EMAIL PROTECTED]
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user