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