Right, here's what I want to be able to do... I want to use the following URL as the starting point for my JSF application.
http://localhost:8080/usermaint/listUsers.jsf?CompanyID=533&UserID=159 This URL is part of a legacy application, which I cannot change. The CompanyID parameter identifies the company I want to display the list of users for. The UserID parameter identifies the current user. I want to store these values in a scope (SESSION or CONVERSATION?) so they can be referenced at any point whilst inside the application. I have tried using the following code, which works fine as long as you close the browser in between changing the selected CompanyID. Otherwise, on subsequent calls you always see the first CompanyID details. | @Stateful | @Name("currentUser") | @Scope(ScopeType.SESSION) | @Interceptors(SeamInterceptor.class) | public class CurrentUserBean implements CurrentUser, Serializable { | | @In | Context sessionContext; | | @RequestParameter("CompanyID") | private String paramCompanyId; | | private Integer companyId; | | @RequestParameter("UserID") | private String paramUserId; | | private Integer userId; | | @Create | public void init() { | companyId = new Integer(paramCompanyId); | userId = new Integer(paramUserId); | } | ... | } | How should I be doing this please? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924203#3924203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924203 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
