I'm doing it like this from my Page:
@Override
public void renderHead(IHeaderResponse response) {
if (anchor != null) {
response.renderOnLoadJavascript("location.href='#" + anchor + "';");
anchor = null;
}
}
Just have a setter for the anchor property on the Page instance you
pass to setResponsePage().
janos
On Thu, Dec 4, 2008 at 1:53 PM, Charlie Dobbie <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I know you can set an anchor when you are coming from a Link component, but
> how can I set an anchor without the Link?
>
> From a Button's onSubmit, I am calling setResponsePage with a Page instance,
> and have a reference to a component on that page that I would like the
> browser to jump directly to. From my research so far, I don't believe this
> to be possible, but easily could have missed something!
>
> Is there a way to do this?
>
> Regards,
> Charlie.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]