Olá,
como faço ao entrar na página abaixo que o cursor vá automaticamente para campo:
alguém pode me ajudar …
abs
<tr>
<td>
<t:inputText maxlength="100" size="100" required="true" id="nomeAluno" tabindex="1" styleClass="inputText" value="#{respostaAlunoMB.nomeAluno}" />
<t:message for="campoNomeAluno" />
</td>
</tr>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:demoiselle="http://www.frameworkdemoiselle.gov.br">
<ui:composition template="/public/templates/default.xhtml">
<ui:define name="body">
<h:form>
<h:messages />
<demoiselle:useJs all="true">
</demoiselle:useJs>
<rich:panel styleClass="richPanelStyleClass" bodyClass="richPanelBodyClass" headerClass="richPanelHeaderClass">
<h:outputLabel value="INFORMAÃ?Ã?ES PESSOAIS" />
<table summary="Formulário para Resposta do Aluno">
<br/>
<br/>
<tr>
<td>
<h:outputLabel for="nomeAluno" styleClass="outputLabel" value="Nome do Aluno"/>
</td>
</tr>
<tr>
<td>
<t:inputText maxlength="100" size="100" required="true" id="nomeAluno" tabindex="1" styleClass="inputText" value="#{respostaAlunoMB.nomeAluno}" />
<t:message for="campoNomeAluno" />
</td>
</tr>
</table>
</rich:panel>
<div style="padding: 10px; text-align: right;">
<t:commandButton title="Avançar" value="Avançar" action="#{respostaAlunoMB.incluir_nome}"/>
</div>
</h:form>
</ui:define>
</ui:composition>
</html>