Hi Tapestry Users,
Tapestry development is on the horizon again for me and I'm just making
some tweaks to an app that I'm trying to load in another CMS's iframe!
After service class instantiation, I'd like to call a method so it does
something (e.g. create an admin user if none exist)
//annotate with tapestry service initlised post runner
@PostInjection or @Startup
private void createAdminUser(){
SubnetsUser u = new SubnetsUser();
u.setRole(Role.ADMIN);
u.setEmail("ch...@opencsta.org");
u.setPassword("subnets");
save(u);
}
Is this the way? Doesn't seem to be working at the moment for me
Thanks
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org