[
http://jira.jboss.com/jira/browse/JBSEAM-2611?page=all ]
Kenneth Christensen updated JBSEAM-2611:
----------------------------------------
Attachment: jboss-seam-ui.jar
jboss-seam-ui.jar:
Tested against Firefox 2, Opera 9.24, Safari 3 and IE 7.
---
<s:scrollPosition/>
Controls the scroll position(s) of the page - divs (requires an ID) and window.
Attribute: saveScrollPos
- description: a flag that indicates whether or not the scroll position(s) is saved
between page submissions
- required: no
- default: true
Example:
<h:form>
<s:scrollPosition/>
<div id="aaa" style="border : solid 2px #ff0000; background :
#000000; color : #ffffff; padding : 4px; width : 200px; height : 50px; overflow : auto;
">
1<br/>
2<br/>
3<br/>
4<br/>
5<br/>
6<br/>
7<br/>
8<br/>
9<br/>
10<br/>
</div>
</h:form>
---
<s:focus/>
Controls the focus on the page - input (text, password and file), textarea and
select.
Attribute: focusedComponentId
- description: ID of the component that is in focus when the page is loaded
- required: no
Attribute: saveFocus
- description: a flag that indicates whether or not the focus is saved between page
submissions
- required: no
- default: true
Example:
<h:form>
<s:focus focusedComponentId="username"/>
<h:inputText id="username" value="#{identity.username}"/>
</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
Attachments: jboss-seam-ui-focus-beta1.jar, jboss-seam-ui.jar
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