title: Set properties to jsf managed-bean
body: <p>Have following first .jsf:</p>
  
  <pre><code>&lt;ui:repeat var="prod" value="#{showProducts.decoys}"&gt;
       &lt;h:form&gt;
         {prod.price} 
         {prod.weight} 
         {prod.size} &gt;
      &lt;h:commandButton value="Buy" action="shoppingCart"/&gt;
      &lt;/h:form&gt;
  &lt;/ui:repeat&gt;
  </code></pre>
  
  <p>Have following shoppingCart.jsf:</p>
  
  <pre><code>&lt;h:form&gt;
   &lt;h:dataTable value="#{prod}"&gt;
    &lt;h:column&gt;
     #{prod.name}&lt;br/&gt;
    &lt;/h:column&gt;
    &lt;h:column&gt;
     #{prod.price}&lt;br/&gt;
    &lt;/h:column&gt;
    &lt;h:column&gt;        
     &lt;h:inputText value="#{prod.count}" size="3"/&gt;
    &lt;/h:column&gt;
  &lt;/h:dataTable&gt;  
  &lt;h:inputText value="#{order.phone}"/&gt;&lt;br/&gt;
  &lt;h:inputText value="#{order.mail}"&gt;&lt;br/&gt;
  &lt;h:inputText value="#{order.city}"/&gt;&lt;br/&gt;
  &lt;h:commandButton value="Order" action="#{showProducts.persistOrder}"&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>Faces-config:</p>
  
  <pre><code>    &lt;managed-bean&gt;
          &lt;managed-bean-name&gt;showProducts&lt;/managed-bean-name&gt;
              &lt;managed-bean-class&gt;main.ShowProducts&lt;/managed-bean-class&gt;
              &lt;managed-bean-scope&gt;session&lt;/managed-bean-scope&gt;
  ...
              &lt;managed-property&gt;
                 &lt;property-name&gt;product&lt;/property-name&gt;
                 &lt;value&gt;#{product}&lt;/value&gt;
              &lt;/managed-property&gt;
          &lt;/managed-bean&gt;
  
      &lt;managed-bean&gt;
          &lt;managed-bean-name&gt;product&lt;/managed-bean-name&gt;
          &lt;managed-bean-class&gt;main.Product&lt;/managed-bean-class&gt;
          &lt;managed-bean-scope&gt;session&lt;/managed-bean-scope&gt;
      &lt;/managed-bean&gt;
  ...
  </code></pre>
  
  <p>The problem:<br/>
  managed bean name defined as <code>product</code><br/>
  iteration goes this way(shoppingCart.jsf): <br/>
  <code>h:dataTable value="#{prod}"&gt;</code><br/>
  so it means that this iteration is not connected with bean named <code>product</code> anyhow</p>
  
  <p>How to set properties <code>prod.price,prod.weight,prod.count</code> to real managed bean properties:<br/></p>
  
  <pre><code>product.price,product.weight,product.size
  </code></pre>