Thank for the info but I prefer to try to use the href approach first. I have strict restrictions on the outputted xhtml.
On 4/13/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote: > On 4/13/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > > I have a little problem that I can't solve and it's really bugging me > > so I hope someone here know the answer. I am trying to send the user > > back to the current page but to a given position. Using a pure html > > approach I would usually do something like href="#id" but he doesn't > > seems to work with the action attribute. So anyone knows how I might > > be able to do this? > > The myfaces autoscroll setting should be able to do this for you. > However, being a javascript-novice, I was never able to figure out how > to do it myself. > > For some browsers, setting the focus will also scroll to the active > control on a given page. Sandbox focus shows how. Not sure if > that's helpful for your browser target, though. > -- Alexandre Poitras Québec, Canada

