Why would you return an object from onActivate. You only do that when you want to redirect to some other page instead of rendering the same page.
Don't return any thing and it will work fine regards Taha On Mon, Apr 25, 2011 at 11:06 AM, cablepuff <cablep...@gmail.com> wrote: > public Object onActivate(final Integer databaseId) { > Validate.notNull(this.myCommand, "command should be > injected"); > this.dbRecord = this.myDao.getRecordById(databaseId); > final User user = this.securityService.getCurrentUser(); > Object obj = this; > if (user == null) { > obj = this.index; > } > else { > this.myCommand.setValue(dbRecord.getValue()); > this.databaseId = databaseId; > } > return obj; > } > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-5-Property-object-is-null-when-using-in-onActivate-tp4335791p4337766.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >