[jboss-user] [JBoss Portal] - Re: Accessing UserModule with MyFaces

2007-02-05 Thread h.cahyadi
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

[jboss-user] [JBoss Portal] - Re: Accessing UserModule with MyFaces

2007-02-05 Thread h.cahyadi
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 |

[jboss-user] [JBoss Portal] - Re: Accessing UserModule with MyFaces

2006-11-27 Thread djmacpac
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 =