2 Replies Latest reply on Feb 11, 2009 11:25 AM by bronk horst

    Problem accessing parameters of out of facesContext

    bronk horst Newbie

      Hello again,

      i`m new with jsf and trying 2 get a value out of the facesContext, but when i launch this code the context is empty. Can someone tell me what im doing wrong and how to solve the problem?

       <h:commandButton value="Testmethode(a)" action="#{planingResults.testmethod}" style="width:170px;">
       <f:param name="editId" id="editId" value="uebergabewert in da hause"/>

       public String testmethod() {
       String a = "";
       ExternalContext extCont = FacesContext.getCurrentInstance().getExternalContext();
       Object b = FacesContext.getCurrentInstance().getExternalContext()
       String meineId = FacesContext.getCurrentInstance().getExternalContext()
       return a;

      Thanx a lot, schlumsch