title: primefaces datatable selection issue
body: <p>I have some weird issue with datatable selection (most likely i'm doing something wrong).
  Idea is simple - datatable with selection and a dialog to edit the records. The problem is that if i use <code>&lt;h:inputText&gt;</code> tag (or <code>&lt;p:inputText&gt;</code>) it appears to be blank, though the object in the backing bean (<code>indicatorBean.indicator.code</code>) contains data. Interestingly if i put <code>&lt;h:outputText&gt;</code> instead of input the data is shown.</p>
  <p>here are contents of my body</p>
  <pre><code>&lt;!-- language: xml --&gt;
  &lt;h:body&gt;
      &lt;h:form id=&quot;form&quot;&gt;
          &lt;p:growl id=&quot;messages&quot; showDetail=&quot;true&quot;/&gt;
          &lt;p:dataTable id=&quot;indicatorsTable&quot; var=&quot;ind&quot; 
                       value=&quot;#{indicatorBean.indicators}&quot;
                       selectionMode=&quot;single&quot; 
                       selection=&quot;#{indicatorBean.indicator}&quot; 
                       rowKey=&quot;#{ind.id}&quot;&gt;
              &lt;p:column headerText=&quot;Name&quot; style=&quot;width:125px&quot;&gt;
                  #{ind.name}
              &lt;/p:column&gt;
              &lt;p:column headerText=&quot;Code&quot; style=&quot;width:125px&quot;&gt;
                  #{ind.code}
              &lt;/p:column&gt;
              &lt;f:facet name=&quot;footer&quot;&gt;
                  &lt;p:commandButton id=&quot;viewButton&quot; value=&quot;View&quot; 
                                   icon=&quot;ui-icon-search&quot; update=&quot;:form:display&quot; 
                                   oncomplete=&quot;indDialog.show()&quot;/&gt;
              &lt;/f:facet&gt;
          &lt;/p:dataTable&gt;
  
  
          &lt;p:dialog id=&quot;dialog&quot; header=&quot;Indicator Detail&quot; 
                    widgetVar=&quot;indDialog&quot; resizable=&quot;false&quot;
                    width=&quot;400&quot; showEffect=&quot;fade&quot; hideEffect=&quot;fade&quot;&gt;
  
              &lt;h:panelGrid id=&quot;display&quot; columns=&quot;2&quot; cellpadding=&quot;4&quot;&gt;
                       &lt;h:outputText value=&quot;Code:&quot;/&gt;
                       &lt;!-- PROBLEM IS HERE --&gt; 
                       &lt;h:inputText value=&quot;#{indicatorBean.indicator.code}&quot;/&gt;
  
                       &lt;h:outputText value=&quot;Name:&quot;/&gt;
                       &lt;h:outputText value=&quot;#{indicatorBean.indicator.name}&quot;/&gt;
              &lt;/h:panelGrid&gt;
              
              &lt;p:commandButton value=&quot;Save&quot; onclick=&quot;indDialog.hide()&quot;/&gt;
              &lt;p:commandButton value=&quot;Cancel&quot; onclick=&quot;indDialog.hide()&quot;/&gt;
          &lt;/p:dialog&gt;
      &lt;/h:form&gt;
  
  &lt;/h:body&gt;
  </code></pre>
  <p>Backing bean is nothing other that accessors.</p>
  <p>Another thing i spotted is if i replace el expression in <code>&lt;h:inputtext&gt;</code> with a static text (like <code>&lt;h:inputText value=&quot;static text&quot;/&gt;</code>), it is shown.
  Here are some pictures:</p>
  <h1>Dialog with inputtext</h1>
  <p><a href="https://i.stack.imgur.com/9GoG4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9GoG4.png" alt="inputtext" /></a></p>
  
  <h1>Dialog with outputtext</h1>
  <p><a href="https://i.stack.imgur.com/vhGVI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vhGVI.png" alt="outputtext" /></a></p>
  
  <h1>Dialog with static text</h1>
  <p><a href="https://i.stack.imgur.com/Q1Rrc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q1Rrc.png" alt="static text" /></a></p>
  
  <p>primefaces 3.4</p>