Anchor-like mecanism to jump to a certain part of the page

Hi guys,

Is is possible to make the page “jump” to a certain part in a similar way as when using classical html anchors but using a vaadin component ? I mean given a url parameter string such as sectionNumber=1&paragraphNumber=4 when loading section 4 (a long text to display) it jumps to paragraph 4 of this text ?
I guess using classical anchor (#) is not possible because they are already used to target which page of the application must be loaded, ex:

http://myapp.mydomain.com/ui/#displayPage/sectionNumber=1&paragraphNumber=4

thanks for your help,

Nicolas

I’m not sure if there is a simpler way to do this, but on technique I have used is to extend the client-side of some layout, and use the GWT method scrollIntoView(). This way, you can scroll the layout into view when necessary from using parameters or fragments.

There is a ticket about this, but it is buried under dozens of others. http://dev.vaadin.com/ticket/1847

cheers,
matti

Create a userVoice entry for this Nicolas, and I’ll vote for it :wink:

Also, if you make an anchor that matches the one in the url (including the page name etc), it should work just as plain old html… I have not tried this though, and YMMV depending on how you use fragments for navigation…

Best Regards,
Marc