title: How to access form data after submit
body: <p>I have a problem that I am not able to solve.</p>
  
  <p>Well, let's suppose that we are invoking a method (in a backing bean) from a webpage (maybe jsp, xhtml, portlet ...) pressing a button.</p>
  
  <pre><code>&lt;h:form&gt;
  ....
  &lt;h:inputText value="#{errorManager.errorTestDataBean.errore00}" /&gt;
  
  &lt;h:commandButton id="go" value="GO" action="#{errorManager.triggerError}" /&gt;
  ...
  &lt;/h:form&gt;
  </code></pre>
  
  <p>The form is submitted with its values.</p>
  
  <p>Let's also suppose that we will get a problem (Exception) during the action process.</p>
  
  <p>I wrote (and registered) an ActionListener that will catch the Unhandled Exception (and that will do something to handle it):</p>
  
  <pre><code>public class ExceptionHandlingActionListener extends ActionListenerImpl
  {
  
  public void processAction(ActionEvent event)
  {
  try
  {
  super.processAction(event); //+THE ERROR HAPPENS IN THE SUPER CLASS+ 
  }
  catch(Exception exception)
  {
  exception.printStackTrace();
  ......... do something here ...............
  
  FacesContext facesContext = FacesContext.getCurrentInstance();
  Application application = facesContext.getApplication();
  NavigationHandler navigationHandler = application.getNavigationHandler();
  navigationHandler.handleNavigation(facesContext, null, "error"); /* FORWARD TO AN ERROR PAGE */
  facesContext.renderResponse();
  }
  }
  }
  </code></pre>
  
  <p>It works great ... BUT ... I need to know data that are (was?) in the submitted form.</p>
  
  <p>How can I get this information? I would like a generic method, since the error can happen everywhere in the application (I don't really know the clientId or other peculiar information about objects).</p>
  
  <p>It's also ok to get ALL posted data and write them down in the database: I will analyze data later!!</p>
  
  <p>Unfortunately, we're still at JSF 1.2.</p>
  
  <p>Any ideas?</p>
  
  <p>Many thanks!
  Tommaso</p>