-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

usually the Groovy files are used to gather information to display at
user level.
They are usually associated with a widget or Ftl.
the widget or ftl would then have a link through the controller
to call an event and or service.
Look in the partymgr application how contactmechs are added.

Roel Veldhuizen sent the following on 2/24/2009 1:57 AM:
> Hi all,
> 
> I was trying to invoke the createContactMech in the ContactMechServices from
> a groovy service. But, got the following error:  No signature of method:
> static org.ofbiz.party.contact.ContactMechServices.createContactMech() is
> applicable for argument types: (org.apache.catalina.connector.RequestFacade,
> org.ofbiz.base.util.collections.MapStack)
> 
> The code:
> 
> context.contactMechTypeId = parameters.get("contactMechTypeId"+i);
> context.info_string= parameters.get("contactMechData"+i);
> Map res = ContactMechServices.createContactMech(request, context);
> 
> The error:
> 
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
> [component://crm/widget/CrmScreens.xml#createPersonFtl2]:
> groovy.lang.MissingMethodException: No signature of method: static
> org.ofbiz.party.contact.ContactMechServices.createContactMech() is
> applicable for argument types: (org.apache.catalina.connector.RequestFacade,
> org.ofbiz.base.util.collections.MapStack) values:
> {org.apache.catalina.connector.requestfac...@3b6177, ["webSiteId":null,
> "https":null,
> "formStringRenderer":org.ofbiz.widget.html.htmlformrende...@1021b85,
> "null":[null-field], "contactMechTypeId":null,
> "screens":org.ofbiz.widget.screen.screenrende...@15ce24f,
> "globalContext":["screens":org.ofbiz.widget.screen.screenrende...@15ce24f,
> "globalContext":this Map_, "nullField":[null-field],
> "parameters":["localDispatcherName":"crm",
> "org.apache.catalina.WELCOME_FILES":["index.jsp", "index.html",
> "index.htm"],
> 
> thanks in advance,
> 
> Roel Veldhuizen
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJo9BrrP3NbaWWqE4RAmfAAKDOEpLszWVU6beLrgb85Ih6KsSirQCfUb9j
UDtqG0f2KZ0bKCdnGZi9bGc=
=AQbz
-----END PGP SIGNATURE-----

Reply via email to