6 Replies Latest reply on Sep 29, 2008 5:56 PM by Francisco Jose Peredo Noguez

    submitting and reading data 'from request'

    gajos Newbie

      Hi,


      I'm using Seam framework and have the following problem:
      how to submit and read the values 'from the request' of a dynamically built form ?


      I do not have a 'static' entity with attributes (defined classes), my entities are defined on the fly
      and being displayed in the following way:
      I built a form by modifying component tree :



      Application application = FacesContext.getCurrentInstance().getApplication();
      List<UIComponent> childern = panel.getChildren();
      childern.clear();




      and adding to children list the attributes (javax.faces.component.html.HtmlInputText objects).
      Panel object is within h:form and /h:form tags. Then I would like to submit this form
      and read somehow the values.


      Does anyone have an idea ? Maybe there is any other way to handle this problem ?


      Thanks in advance,
      Michal