Hi, I try to do same method with you do but but get error, I already added
jboss-portlet.xml configuration too, but still get error, this is my error :
| The portlet threw an exception
| java.lang.StringIndexOutOfBoundsException: String index out of range: -1
| at
Hi all,
I have progress now, I add this to jboss-portlet.xml :
| service
| service-nameUserModule/service-name
| service-class
| org.jboss.portal.identity.UserModule
| /service-class
|
OK, i did it. I access the UserModule on this way:
| PortletSession session =
(PortletSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
| UserModule userModule = (UserModule)
session.getPortletContext().getAttribute(UserModule);
| int user_no =