W
W
web_dev2013-01-19 17:08:38
Java
web_dev, 2013-01-19 17:08:38

Vaadin - update app?!?

I don't understand what's wrong. You need to concoct small molds on Vaadin. But some kind of “magic”, I don’t understand why after updating the page in the browser I don’t see any changes.

firefox is one thing, chrome is another, eclipse browser is a third.
Clearing the cache, refreshing the page, reloading the browser does not help. (

How can I get what I changed in the code after reloading the page, and so on ...

Thank you!

Here's an example.

private Button profile;<br>
  private Button search;<br>
  private Button autoSearch;<br>
  private Button logout;<br>
<br>
  private final GridLayout grid = new GridLayout(1, 2);<br>
  private final HorizontalLayout hTopLayout = new HorizontalLayout();<br>
  private final VerticalLayout vContentLayout = new VerticalLayout(); <br>
<br>
  public UserProfile() {<br>
    this.setCaption("Prifile");<br>
<br>
    profileMenu();<br>
<br>
    grid.addComponent(hTopLayout);<br>
    this.setContent(grid);<br>
  }<br>
<br>
  private void profileMenu() {<br>
<br>
    profile = new Button("Profile");<br>
    search = new Button("Suche");<br>
    autoSearch = new Button("Auto Suche");<br>
    logout = new Button("Log out");<br>
<br>
    hTopLayout.addComponent(profile);<br>
    hTopLayout.addComponent(search);<br>
    hTopLayout.addComponent(autoSearch);<br>
    hTopLayout.addComponent(logout);<br>
  }<br>


and this is how it is added

@SuppressWarnings("serial")<br>
public class JobApplication extends Application {<br>
  @Override<br>
  public void init() {<br>
    ApplicationContext context = new ClassPathXmlApplicationContext("META-INF/spring/application-context.xml");<br>
    Window mainWindow = new Window("Job");<br>
<br>
    mainWindow.addComponent(userProfile);<br>
    userProfile.setVisible(true);<br>
}<br>
<br>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr_XaoS, 2013-01-19
@Dr_XaoS

After refreshing the page, Vaadin does not re-initialize your form, but renders what was built earlier in this session. Try deleting the cookies, then the session will reset and the initialization will start again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question