title: No Values in Getter and Setter Methods with Button in Template
body: <p>i have a the template <strong>AdvanceTemplate.xhtml</strong>. And a <strong>footer.xhtml</strong>. This footer has the submit-Button. I have a <strong>store.xhtml</strong> page with with a inputText.
  But when i cklick the submit button the data from my view-klass isn't save from the inputfield.
  If i put the button in at the same xhtml (store.xhtml) page where im inputText is placed i get the data.</p>
  
  <p>How must i write it to get the data from the inputText field, when i have the Button in the template?</p>
  
  <p><strong>AdvanceTemplate.xhtml</strong></p>
  
  <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
      &lt;html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
      &lt;head&gt;
        &lt;title&gt;&lt;ui:insert name="title"&gt;Example&lt;/ui:insert&gt;&lt;/title&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
  
      &lt;div id="header"&gt;
          &lt;ui:insert name="header"&gt;
              &lt;ui:include src="/META-INF/templates/header.xhtml"/&gt;
          &lt;/ui:insert&gt;
      &lt;/div&gt;
  
      &lt;div id="information"&gt;
          &lt;ui:insert name="information"&gt;
           &lt;ui:include src="/META-INF/templates/information.xhtml"/&gt;
          &lt;/ui:insert&gt;
      &lt;/div&gt;
  
      &lt;div id="content"&gt;
          &lt;ui:insert name="content"&gt;
          &lt;/ui:insert&gt;
      &lt;/div&gt;
  
      &lt;div id="footer"&gt;
          &lt;ui:insert name="footer"&gt;
              &lt;ui:include src="/META-INF/templates/advanceFooter.xhtml"/&gt;
          &lt;/ui:insert&gt;
      &lt;/div&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p><strong>advanceFooter.xhtml</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
      &lt;html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"&gt;
  
      &lt;h:head&gt;&lt;/h:head&gt; 
      &lt;body&gt;
      &lt;h:form&gt;
  
          &lt;h:panelGrid columns="2"&gt;   
                  &lt;h:commandButton id="submit" action="#{pageServiceBean.submit}" value="#{msgs.save}" /&gt;     
              &lt;h:commandButton id="cancel" action="#{pageServiceBean.cancel}" value="#{msgs.cancel}" immediate="true"/&gt;
          &lt;/h:panelGrid&gt;
  
          &lt;div style="background-color:navy;width:100%;color:white"&gt;&lt;/div&gt;
      &lt;/h:form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>store.xhtml</strong></p>
  
  <pre><code> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
      &lt;html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"&gt; 
  
      &lt;ui:composition template="META-INF/templates/AdvanceTemplate.xhtml"&gt;
          &lt;ui:define name="content"&gt;
           &lt;h:form&gt;    
               &lt;h:panelGrid columns="2"&gt; 
  
  
  
  
                        &lt;h:outputText value="#{msgs.hostname}"&gt;&lt;/h:outputText&gt;
                        &lt;h:inputText id="idName" value="#{pageServiceBean.newData.name}"                      
                        &lt;/h:inputText&gt;
                        &lt;h:outputText value="#{msgs.type}"&gt;&lt;/h:outputText&gt;
                        &lt;h:inputText value="#{pageServiceBean.newData.type}"&gt;&lt;/h:inputText&gt;                                
  
  
  
                 &lt;/h:panelGrid&gt; 
  
              &lt;/h:form&gt;
          &lt;/ui:define&gt;
      &lt;/ui:composition&gt;
      &lt;/html&gt;
  </code></pre>