How to reload parent view in Vaadin without table reseting sort order
<p>I'm using PagedFilterTable in Vaadin to manage pagination. When loading default page, I have set something like this - and I include sorting by some field:</p>

<pre><code>if(this.sortField != null){
    table.setSortContainerPropertyId(this.sortField);
    table.setColumnWidth(this.sortField, 80);
    table.setSortAscending(true);
    table.sort();
}
</code></pre>

<p>So that happens when the page is loaded and that is fine. After I submit new entry (<strong>entries are being added through new, popup window</strong>), table gets new row, but the table loses it's sort order in view after popup closes, so sorting is no longer keeped. Problem is I do not know how to get to that table element from that popup window and set sorting again. Why table is being updated and I see it, and sort doesen't? Problem is bigger because I have both windows in separate files and seems to me I can't grab table element easily without modifiying the logic because I am in another window.</p>

<p>How to reload table so that the sort stays same?</p>

<p>I managed to do this after submit: </p>

<pre><code>getUI().getPage().reload();
</code></pre>

<p>With that it works, but I am not satisfied. After that line of code, everything reloads again (meaning all queries execute again). Result is good but I don't want after submit whole reloading of page happens (also because none of my other buttons do reload). So I would like only to reload table in parent window.</p>

<p><strong>How can I grab table object from outside window and for example set it's change to immediate and correct change?</strong></p>

<p>Something like this I suppose needs to be written:</p>

<pre><code>getParent().getUI().setImmediate(true);
</code></pre>

<p>?</p>

<p><strong>Or better question, how to manage to table sort remains the same after inserting new entry through new window?</strong></p>