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]

Reply via email to