title: Jsf 2.0 Custom Tags With Primefaces
body: <p>I've created a panel (Refer - <a href="https://stackoverflow.com/questions/7329070/help-on-jsf-2-0-custom-components-and-primefaces">Help on JSF 2.0 Custom Components and Primefaces</a>) according to my earlier post, using custom component from back end, and have populated tags to the panel like inputtext,listbox,dropdown menu,selectoneradio. How do I save these values on button click? I've nothing to do on the view - (front end) All the processing has to be done at the back end. An example for the same would be very helpful.</p>
  
  <p>This is what I've done - </p>
  
  <pre><code>private Panel myPanel;
  
  public Panel getMyPanel() {
      return myPanel;
  }
  
  public void setMyPanel(Panel myPanel) {
      this.myPanel = myPanel;
  
      if (myPanel.getChildCount() &lt;= 1) {
          InputText input = new InputText();
          input.setValue("my dynamic text");
          myPanel.getChildren().add(input);
      }
  }
  </code></pre>
  
  <p>Thanks in advance</p>