See http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters
Under Working with tables in the wiki On 5/10/06, Kevin Galligan <[EMAIL PROTECTED]> wrote:
Sorry for the self-followup. I'm pulling my hair out. Basically, I've modified my code to following this... http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/2005/04/06/Drilldown_Edit_with_JSF.html?page=comments Still doesn't work. Then I created a set of test objects and screens that went down to the absolute basics. Didn't work. I then changed my value object to be session scope instead of request, but still set it with ... ValueBinding binding = context.getApplication().createValueBinding("#{testObject}"); binding.setValue(context,testObject); Even set as session, this didn't work. I know that if I just put it in the session map, that will work, but there must be a way to set a managed bean in request scope from code. However, I cannot get it to work. Please, please help. At least tell me you do something like this, and generally how you accomplish it. Losing my mind. On 5/10/06, Kevin Galligan <[EMAIL PROTECTED]> wrote: > > I'm have a really hard time doing something that, in my mind, should be very simple. Populating a managed bean with scope 'request'. Essentially, I have a dataTable, which is bound to a UIData variable in the backing bean, and a commandLink which pulls the selected object and pushes it into the request collection with... > > FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(key, value); > > Then we go to the detail page. By the time we get there, no object. It is not redirecting, so this *should* work, I think. > > I changed it to use session instead of request, and set the object with... > > FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value); > > This works. Any ideas? I assume that I'm initalizing the request bean incorrectly, but I don't know how. I'm probably going back to the session method so I can move on for now, but any help would be greatly appreciated. I want to use 'saveState' to handle 'request-session' or 'request-thread' scope state, as if this works, it looks to be just the thing I've been missing with struts and jsf. However, the "simple" part I can't get past. > > Thanks in advance, > > -Kevin >

