i meant: public void pageBeginRender(PageEvent event) { super.pageBeginRender(event); }
2007/1/18, Tapestry User List <[EMAIL PROTECTED]>:
and if you add this method in your subclass : public void pageValidate(PageEvent event) { super.pageValidate(event); } I think that should work. All the best, D. 2007/1/18, Stephane Decleire <[EMAIL PROTECTED]>: > Hi, > > Yes, your persistent properties will be available in all your subclasses. > You could also init your persistent property with an @InitialValue > annotation. > > -- > Stéphane Decleire > > > > jiju a écrit : > > Hi All, > > I have one persistat property in my basepage , i am extending this basepage > > to specificPages > > will that persistant data be available in my derived pages also ? > > > > public abstract MyBasePage extends BasePage implements > > PageBeginRenderListener{ > > @Persist > > public abstract UserContext getUserContext(); > > public abstract void setUserContext(); > > > > public final void pageBeginRender(PageEvent event) { > > setUserContext(new UserContext()); > > doSomething(event); > > > > } > > public abstract void doSomething(PageEvent event); > > }; > > > > > > > > public abstract DerivedPage extends MyBasePage{ > > > > public void doSomething(PageEvent event){ > > System.out.println("UserContext="+getUserContext()); > > } > > > > }; > > But here i am getting UserContext as null; > > > > is it the right way to do, or am i missing any thing else.. > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]