hrm, nothing interesting there. can you post the code for the entire page/panel...
also the serialization checker should tell you the exact field that is holding the reference to the object further in its message... -igor On Mon, Nov 9, 2009 at 10:07 AM, Sam Barrow <[email protected]> wrote: > protected void populateItem(final ListItem<ValueObject> item) { > final Money price = > getPricingService().calculatePrice(item.getModelObject()); > add(new Label("price", price.toString())); > } > > On Mon, 2009-11-09 at 09:56 -0800, Igor Vaynberg wrote: >> what does your listview's populateitem look like? >> >> -igor >> >> On Mon, Nov 9, 2009 at 9:50 AM, Sam Barrow <[email protected]> wrote: >> > Hi. Wondering if someone can help me with a serialization problem I'm >> > having. >> > To start off, the domain model in this application does not use >> > serializable domain objects (the project is using db4o, which does not >> > play well with serialized objects). >> > >> > I have a page with this code: >> > >> > IModel<ValueObject> valueObjectList = new >> > LoadableDetachableModel<ValueObject>() { >> > protected void load() { >> > return getVOGenerator().generateVOs(); >> > } >> > } >> > add(new ListView<ValueObject>("vos", valueObjectList) { >> > ... >> > }); >> > >> > I'm getting this error: >> > org.apache.wicket.util.io.SerializableChecker >> > $WicketNotSerializableException: Unable to serialize >> > class: ...ValueObject >> > >> > How do I get around this? >> > >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
