I have a theme realized in Liferay. I have a form portlet on the control panel that the user can fill. Depending on the values inserted in the portlet the theme homepage should appear differently.
I was thinking to use something like that but it doesn't work:
#set($typeLong = $portal.getClass().forName('java.lang.Long').getField('TYPE').staticValue)
#set($personalOptions = $portal.getClass().forName("com.mypackage.utils.Configuration").getMethod("getStrings", $typeLong).invoke(null,$scopeGroupId))
where my "getStrings" is a method defined in the "Configuration" class with input a long and a String[] array return.
Any advices?