This content has been marked as final.
Show 1 reply
-
1. Re: how indicate initial focus
ma.aqcon Feb 22, 2010 3:24 AM (in response to michaelklem)Hey,
we use a non-RichFaces solution using onload attribute of <body> tag.
<body onload="go('main:idToFocus')">
function go(id) {
document.getElementById(id).focus();
}If you are using Facelets and only have a general <body> Tag in your page template, use a onload Function in template like
<body onload="onloadFunction();">
and override this function in your page
function onloadFunction() {
document.getElementById('main:idToFocus').focus();
}Hope that helps!
Regards,
Michael