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?

Robert Novotny


-- 
View this message in context: 
http://www.nabble.com/No-get-method-defined-for-expression-recorder-when-using-Palette-and-CompoundPropertyModel-tf4007304.html#a11380394
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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