Thomas Mäder schrieb:

I seem to remember that there was a way to force Wicket to always serialize
pages on detach in order to make sure every page is serializable during
development. Can someone please point me to the FM so I can read it?
Searching Nabble & Google didn't turn up anything.

one guy once posted this one:

class PickyHttpSessionStore extends HttpSessionStore
    {
        /**
         * @param application
         */
        public PickyHttpSessionStore(final Application application)
        {
            super(application);
        }

        @Override
public void setAttribute(final Request request, final String name, final Object value)
        {
            try
            {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                ObjectOutputStream stream = new ObjectOutputStream(baos);
                stream.writeObject(value);
                stream.close();

                super.setAttribute(request, name, value);
            }
            catch (Throwable exception)
            {
String s = "Unable to serialize value: " + value.toString();
                System.err.println(s);
                System.err.println(exception);
                throw new RuntimeException(s, exception);
            }

        }
    }

--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox.

Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to