Re: Page model returning null

2009-11-03 Thread Loren Cole
Oh. That is embarrassing. Sorry for taking your time. On Mon, Nov 2, 2009 at 7:47 PM, Jeremy Thomerson jer...@wickettraining.comwrote: On Mon, Nov 2, 2009 at 4:57 PM, Loren Cole loren.c...@gmail.com wrote: HomePage hp = (HomePage) this.findPage();

Page model returning null

2009-11-02 Thread Loren Cole
I've got the following bits of code: public HomePage(PageParameters parms) { this(); Long accountId = parms.getLong(accountId); account = new ModelEntity(Account.class, accountId); setModel(account); ... public class EditContactDetails extends Panel{ public

Re: Page model returning null

2009-11-02 Thread Jeremy Thomerson
On Mon, Nov 2, 2009 at 4:57 PM, Loren Cole loren.c...@gmail.com wrote: HomePage hp = (HomePage) this.findPage(); ModelEntity account = (ModelEntity) parent.getInnermostModel(); Is this just a typo? You're getting the home page and then getting the innermost