5 Replies Latest reply on May 4, 2009 12:21 PM by Dominik s

    bug? reading parameters from f:param + commandbutton results

    Dominik s Newbie


      <h:commandButton value="klick" action="#{genretest.getTest}">
       <f:param value="test" name="test" />

      and the bean that handles the method

      public String getTest()
       FacesContext ct = FacesContext.getCurrentInstance();
       String s= ct.getExternalContext().getRequestParameterMap().get("test");
       System.out.println("TEST TEST TEST: " + s);
       return "test";

      "s" always displays as null... i read that this is a bug in jboss but checked out the bugtracker and it said that these bugs were fixed in old versions...

      jdk 1.6_13
      eclipse 3.4.2
      jboss 5.1.0.CR1

      all the other features i need work propery (like jpa and stuff) there is no error message or similar, just the null value. happens in 5.0.1.GA too

      help or comments on this (bug?) very appreciated