W
W
web_dev2013-01-24 18:54:10
Java
web_dev, 2013-01-24 18:54:10

Vaadin - "new Link()" - single page loading?

It seems the problem is trivial, but what I don't try. Something doesn't work.

<vaadin.version>6.8.2</vaadin.version>

I am loading a list with links and when I click on the link I want to get a separate page, while on this separate page I want to make the “Back” button.

I'm looking for something and I can't find a suitable example.

They suggested an approximate code for Vaadin 7.
Page.getCurrent().addUriFragmentChangedListener(new Page.UriFragmentChangedListener() {
    @Override
    public void uriFragmentChanged(Page.UriFragmentChangedEvent e) {
         System.out.println("fragment changed: " + e.getUriFragment());
    }
});


new Link("click me!", new ExternalResource("#asdf"))


Share a piece of code for Vaadin 6.

Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question