isn't that script executed at the moment the the browser loads/encounters it?
But then the element isn't there yet.
johan
On 10/12/06,
Igor Vaynberg <[EMAIL PROTECTED]> wrote:
class fieldfocus extends abstractbehavior implements iheadercontributor {
{
private Component c;
void onbind(component c) {
c.setoutputmarkupid(true);
}
void onrenderhead(response r) {
r.write("<script>document.getelementbyid('"+c.getmarkupid()+"').focus();</script>");
}
}
or customize this to be added to the form and make it search for the first require textfield
-IgorOn 10/12/06, craigdd < [EMAIL PROTECTED]> wrote:
Is there a way in wicket to set with field should have focus when rendering a
Page?
--
View this message in context: http://www.nabble.com/Form-Field-Focus-tf2431530.html#a6779893
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user