This content has been marked as final.
Show 1 reply
-
1. Re: SeamTest invokeMethod with parameters besides primitives
matt.nirgue Dec 15, 2008 9:42 AM (in response to quaidbrown)Hi Matt
if you want to invoke methods with parameter(s) you need to get your component first then use it to call your method... Here's an example:
RegistrationBean registrationBean = (RegistrationBean) getInstance("registrationBean"); //or //RegistrationBean registrationBean = (RegistrationBean) getInstance(RegistrationBean.class); //or //RegistrationBean registrationBean = (RegistrationBean) getValue("#{registrationBean}"); registrationBean.deleteAccount(0, "test", yourNonPrimitiveObject, null);
Hope this helps you... :)
Matt