title: Primefaces inputtext focus at the end of the text
body: <p>Here a snippet of my JSF:</p>
  
  <pre><code>&lt;p:tabView id="tabView" var="tab" value="#{data.tabs}" widgetVar="tabViewWidget"
                  activeIndex="#{data.newActiveTabIndex}"&gt;
  
                  &lt;p:ajax event="tabClose" listener="#{logic.closeTab}" /&gt;
  
                  &lt;p:tab title="#{tab.content.title != null ? tab.content.title : '&amp;amp;lt;new&amp;amp;gt;'}"
                      closable="#{tab.isClosable and data.tabs.size() &gt; 2}"&gt;
                      &lt;h:outputText value="#{tab.id} Test" /&gt;
  
                      &lt;p:focus rendered="#{data.componentIdToFocus != null}" for="#{data.componentIdToFocus}" /&gt;
  
                      &lt;p:inputText id="test" value="#{tab.content.title}"&gt;
                          &lt;p:ajax event="keyup" listener="#{logic.setFocusingComponent}" update=":form:tabView" /&gt;
                      &lt;/p:inputText&gt;
                  &lt;/p:tab&gt;
  
              &lt;/p:tabView&gt;
  </code></pre>
  
  <p>The intent is that there is a textfield within each tab that updates the title of the tab while writing.
  The given snippet works except that p:focus places the cursor at the beginning of the text that is already written. I want the cursor to be placed at the end of the text already written. So that a user can type and while he/she is typing the title adapts automatically.</p>
  
  <p>I hope my case is clear.
  Does anybody have a solution for that?</p>
  
  <p>Best regards,
  Florian</p>