Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
7.2.0
-
None
-
None
-
None
Description
I've overridden JavaSerializer in the following way. When my application is in development mode, the PageSizeDebugPanel attempts to serialize my components to calculate their size. Unfortunately it does this before detach() has been called, so of course the NotDetachedModelChecker() fails.
JavaSerializer serializer = new JavaSerializer(getApplicationKey()) { @Override protected ObjectOutputStream newObjectOutputStream(OutputStream out) throws IOException { List<IObjectChecker> checkers = Lists.newArrayList( new NotDetachedModelChecker(), new ObjectSerializationChecker()); return new CheckingObjectOutputStream(out, checkers.toArray(new IObjectChecker[checkers.size()])); } };
Attachments
Issue Links
- is related to
-
WICKET-5014 Changes in WicketObjects.sizeof(final Serializable object) clashes with <header-contribution> in AjaxResponse
- Resolved
-
WICKET-4867 Detach the object before calculating its size
- Closed