last accessed page instance is stored in http session and therefore in memory without being serialized. if you ran this on a two-node cluster with round robin you would see testString being null.
-igor On Thu, Jul 24, 2008 at 2:34 PM, HHHHH <[EMAIL PROTECTED]> wrote: > > Hi! > > I have this example class: > > public class TestPage extends WebPage { > private transient String testString = "test"; > > public TestPage() { > add(new TestForm("form")); > } > > @SuppressWarnings("serial") > private class TestForm extends Form { > public TestForm(String id) { > super(id); > add(new AjaxButton("testButton") { > @Override > protected void onSubmit(AjaxRequestTarget > target, Form form) { > System.out.println(testString); > } > }); > } > } > } > > I suppose that when the ajax button was pressed, the page was deserialized > and the transient object (testString) be null. But that don't happend. > > Can anyone tell me why?. > > Thanks > -- > View this message in context: > http://www.nabble.com/Question-about-transient-and-serialization-tp18641031p18641031.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]