TreeTable bounces on node collapse/expand. (MGNLUI-729)

[MGNLUI-964] Avoid second UIDL request on location changes Created: 26/Mar/13  Updated: 27/Mar/13  Resolved: 26/Mar/13

Status: Closed
Project: Magnolia UI
Component/s: tree/list
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Sub-task Priority: Major
Reporter: Mikaël Geljić Assignee: Mikaël Geljić
Resolution: Fixed Votes: 0
Labels: tech-debt, tree
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Sprint: Iteration 2013-12, Iteration 2013-13, Iteration 2013-14

 Description   

Since Vaadin 7, the UI (root element) has the Navigator API built-in, which is aware of the page URI and fragment, but we don't use it at all for location handling.

What happens currently is the following:
1. Select a row in the tree
2. Sends a UIDL request to server
3. Updates magnolia location fragment
4. Client-side repaints
5. Vaadin's VUI sees a location change on the client-side, which differs from its server-side state.
6. Makes another UIDL request to say client location changed
7. Updates UI page fragment
8. Client-side repaints again

There is an easy fix consisting in updating Vaadin UI' page fragment at the same time we set the magnolia fragment. Then when VUI will listen to location changes, it will no longer be out of sync with its state.


Generated at Mon Feb 12 08:42:02 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.