Hello,
I simply wanna edit non Serializable domain objects in a html form. The
Form should
work for inserts (new objects) and updates. I created a
LoadableDetachableModel for
the given Domain which keeps a (database) id and has the following load
method:
@Override
protected Testobject load() {
if (DomainEntity.isPersistent(id)) {
return Testobject.findOne(id);
} else {
return new Testobject();
}
}
So if the id indicates persistence, the Testobject is loaded from the
data source.
If not, a new Testobject is created.
I put this Model in a CompoundPropertyModel and everythings works fine.
But I wonder if there are other solutions?
Regards,
Rene
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org