[jboss-user] [JBoss Seam] - Focus field on page load

nickarls do-not-reply at jboss.com
Sat Feb 9 15:20:29 EST 2008


Just a small feture inquiry:

would it be out of context for the framework to have an s:prefocus tag that would be used like


  | <h:inputText value="...">
  |   <s:prefocus/>
  | </h:inputText>
  | 

That would insert at the end of a page a

  |   <script>document.getElementById('...').focus()</script>
  | 
(or whatever the browser-compatible code would be)?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128108#4128108

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128108



More information about the jboss-user mailing list