Why do you throw WicketNotSerializableException when the model is still
detached?
On Fri, Sep 5, 2008 at 11:11 AM, Kaspar Fischer [EMAIL PROTECTED]wrote:
For the sake of completeness, here is the solution I am currently using. It
uses,
as suggested by Martijn, a custom request cycle and a
For the sake of completeness, here is the solution I am currently
using. It uses,
as suggested by Martijn, a custom request cycle and a modified version
of
SerializableChecker. You have to install the custom request cycle in
your application
using
@Override
public RequestCycle
Could you perhaps use an aspect for this?
On Thu, Aug 28, 2008 at 4:57 PM, Kaspar Fischer [EMAIL PROTECTED] wrote:
Is there an easy way to assert that all models are detached at the end of
the
request?
It does not look so easy to check this as models do not have common base
class
where one
Eelco is on http://chillenious.wordpress.com.
The link you mentioned http://day-to-day-stuff.blogspot.com/ is from
your's truly.
Regards,
Erik.
Kaspar Fischer wrote:
Matijn, thank you for your hint.
I searched on your blog, http://martijndashorst.com/blog/, and Eelco's,
you could extend the serializerchecker to check for underached models.
We did something similar checking for non-transient Entity objects.
Iirc the code is either on my blog or Eelco's blog.
Martijn
On 8/28/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
no, there is no easy way to assert that any
Matijn, thank you for your hint.
I searched on your blog, http://martijndashorst.com/blog/, and Eelco's,
http://day-to-day-stuff.blogspot.com/, but must have searched for the
wrong
thing (transient, entity, SerializableChecker)...
Anyways, I'd like to do what you suggest, but have a few
We just do it in CustomRequestCycle#onEndRequest():
@Override
protected void onEndRequest()
{
if (Application.get().isDevelopment())
{
// controleer of er hibernate objecten in de pagina
vastgehouden worden.
and yes, your implementation of the check looks good.
Martijn
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
Many, many thanks for this! Very much appreciated. - Kaspar
On 29.08.2008, at 15:15, Martijn Dashorst wrote:
We just do it in CustomRequestCycle#onEndRequest():
@Override
protected void onEndRequest()
{
if (Application.get().isDevelopment())
Is there an easy way to assert that all models are detached at the end
of the
request?
It does not look so easy to check this as models do not have common
base class
where one could register them for a check...
I often use an additional model in a component and store it as a
member
no, there is no easy way to assert that any model has been detached,
because they do not keep a flag.
in 1.5 we will implement it so that all fields of a component that
implement idetachable are detached in the end of request via
reflection, so that should help somewhat.
-igor
On Thu, Aug 28,
11 matches
Mail list logo