You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gary Larsen <ga...@envisn.com> on 2008/02/07 20:48:18 UTC

Get ServiceManager in form event handler

Hi,

 

I'm trying to add a 'Test Mail' button on a form to check the configuration
settings - smtp server, user, etc.

 

I can send mail from other parts of the application using:

 

            resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);

            src = resolver.resolveURI(sb.toString());

 

but I can't figure out yet how to access ServiceManager in a form event
handler since all methods need to be static.  Is this possible?

 

Thanks,

gary