2 Replies Latest reply on Dec 3, 2009 8:04 AM by swario

    Focus at page onload in the inputText

      Hi all!
      I want to put the focus in my <h:inputText> component, directly when the page is loaded.
      It seems to be a simple problem...but i'm stuck.
      my page is this:

      <ui:define name="body">
      
       <s:div id="page" >
       <h:form id="suggestionForm">
       <center>
       <rich:spacer width="1" height="90" /><br />
      
       <h:outputText styleClass="tip" value="..." />
       <br /><br />
       <h:inputText id="suggestion" size="58" styleClass="suggestionbig"/>
      
       <rich:suggestionbox height="400" width="1000" selfRendered="true">
       ...
       </rich:suggestionbox>
       <a:status id="progress" >
       <f:facet name="start">
       ...
       </f:facet>
       <f:facet name="stop">
       ...
       </f:facet>
       </a:status>
       <br /><br />
       </center>
       </h:form>
      
       </s:div>
      
       </ui:define>
      </ui:composition>


      Solutions? Thank you :)