title: Select input text on validation error in JSF
body: <p>i have an input text and i want to select the value inside the text area upon validation error. it is an inputtext. I am using focus to set the focues on the field. Code does throw an error but i want the input values to be selected too</p>
  
  <pre><code>&lt;p:focus for="inputText" /&gt;
     &lt;p:inputText id="inputText" value="#{bean.value}" required="true" rendered="#{bean.method}" styleClass="xyz"/&gt;
  </code></pre>