> Is there a hook point to serialization of components? We would like to > throw a WicketRuntimeException if we detect that we are about to attempt to > serialize out an attached (in our case Hibernate) entity rather than using a > LoadableDetachableModel and only serializing the id.
I usually solve that problem by having a "LDM-like" model that has a transient (thus not serialized) reference to the actual object, and a load()-method using the id to get the actual object if null. But: Since you are in control over what types of models are used in the code, how do you end up with models that reference Hibernate objects in a way that will try and serialize them? - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
