[
http://jira.jboss.com/jira/browse/JBSEAM-2611?page=comments#action_12399018 ]
Kenneth Christensen commented on JBSEAM-2611:
---------------------------------------------
I have just started to work on this type of component - maybe 'Team Seam' want to
use it when it's finish?
<s:focus focusedComponentId="<component id>"
saveFocus="<true/false>"/>
focusedComponentId (optional): specifies the id of the component to be focused.
saveFocus (optional): focus is saved between page submissions.
Examples:
<h:form>
<s:focus saveFocus="true"/>
</h:form>
or
<h:form>
<s:focus focusedComponentId="email" saveFocus="true"/>
<h:inputText id="email" value="#{user.email}"/>
</h:form>
or
<h:form>
<h:inputText id="email" value="#{user.email}">
<s:focus saveFocus="true"/>
</h:inputText>
</h:form>
or
<h:form>
<h:inputText id="email" value="#{user.email}">
<s:focus/>
</h:inputText>
</h:form>
<s:prefocus/> tag for setting focus on page entry
-------------------------------------------------
Key: JBSEAM-2611
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2611
Project: JBoss Seam
Issue Type: Feature Request
Components: JSF Controls
Reporter: Nicklas Karlsson
It might be convenient to have a <s:prefocus/> tag that could be e.g. nested inside
an inputText field you would like to have focused when the page is loaded.
It could be implemented with a simple document.getElementById('...').focus(); (or
other browser-compatible code) at the end of the page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira