myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Alexander \(KBSA 21\)" <alexander.je...@credit-suisse.com>
Subject RE: master detail pages
Date Fri, 02 Sep 2005 09:03:41 GMT
-----Original Message-----
i think navigation is ok... i fear that some how the param is not
passed to the managed bean

if I check it in my action method it is null
-----/Original Message-----
Well in the code you showed earlier there was no check for the
parameter.
  -----Original Message-----
  public String showUserDetail(){
        setName("pine");
        setId(1);
        return "ok";

    }
  -----/Original Message-----
I would expect something like
FacesContext.getCurrentInstance().getExternalContext()
                                 .getRequestMap().get("id");

Then, I would propose a more specific name, as id is too easily "reused"

by some framework... (ok THEY should use better names, but...)


hth
Alexander

Mime
View raw message