Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Table: Row sometimes empty
RAP Table: Row sometimes empty [message #1009185] |
Thu, 14 February 2013 16:08 |
|
Hi again!
I have a problem with the (more or less) default Table implementation. We have a rather complex application with a lot of tables and stuff. Now when navigating through the application, i sometimes get empty table rows, where there should be data. I can verify on the server side that the items are created and filled with the according data, but on the client, they are empty...
I have multiple cases identified until now: The first one is when i:
1) Fill the table with data
2) select a row
3) right click (menu opens) - choose an action > causes another dialog to open (table is not manipulated at all)
4) return to the first dialog - the selected row has no more texts.
looks like this:
The second case is in some of our dialogs (actually have found one only until now ) if i open it and fill everything with data, the table in question has only one row, and this rows texts are all empty.
This one looks like this:
I tried to follow the request payloads for both cases. In the first one it seems the table is left alone completely except from setting visibility and tabIndex - still data is gone.
In the second case, i'm pretty sure this is the request that causes the empty item:
[ "create", "w1977", "rwt.widgets.GridItem", {
"parent": "w448",
"index": 0
} ]
I'm a little bit stuck on where to continue with my investigations...?
[Updated on: Thu, 14 February 2013 16:08] Report message to a moderator
|
|
|
Re: RAP Table: Row sometimes empty [message #1009198 is a reply to message #1009185] |
Thu, 14 February 2013 16:31 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Markus,
could you provide a snippet to reproduce the issue? Which RAP version
are you using? Did you try with RAP 2.0? Is this happen in all browsers?
Best,
Ivan
On 2/14/2013 6:08 PM, Markus Duft wrote:
> Hi again!
>
> I have a problem with the (more or less) default Table implementation. We have a rather complex application with a lot of tables and stuff. Now when navigating through the application, i sometimes get empty table rows, where there should be data. I can verify on the server side that the items are created and filled with the according data, but on the client, they are empty...
>
> I have multiple cases identified until now: The first one is when i:
>
> 1) Fill the table with data
> 2) select a row
> 3) right click (menu opens) - choose an action > causes another dialog to open (table is not manipulated at all)
> 4) return to the first dialog - the selected row has no more texts.
>
> looks like this:
>
>
> The second case is in some of our dialogs (actually have found one only until now ;)) if i open it and fill everything with data, the table in question has only one row, and this rows texts are all empty.
>
> This one looks like this:
>
>
> I tried to follow the request payloads for both cases. In the first one it seems the table is left alone completely except from setting visibility and tabIndex - still data is gone.
>
> In the second case, i'm pretty sure this is the request that causes the empty item:
>
>
> [ "create", "w1977", "rwt.widgets.GridItem", {
> "parent": "w448",
> "index": 0
> } ]
>
>
> I'm a little bit stuck on where to continue with my investigations...?
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
| | | | |
Re: RAP Table: Row sometimes empty [message #1009621 is a reply to message #1009538] |
Fri, 15 February 2013 11:53 |
|
i can at least confirm that the TableItemLCA.renderChanges receives an empty TableItem as widget... i added a breakpoint that sysouts the table item plus all it's columns texts when rendering the table, and sysouts when creating the actual item.
CREATE: 23932502 - TableItem {0}:0;1;10,00;1,00;0,00;1,00;0,00;1,00;true;0;;02.07.2012 10:46:39;;Normal;true;;1 kg;1,00;10;0;0;1;PKG;
LCA:23932502 - TableItem {}:;;;;;;;;;;;;;;;;;;;;;;
i also made sure that there is no clear or whatever involved, so nobody should destroy it in the meantime. also the first number in the output above is .hashCode() of the item, so i'm sure it's the same instance...
[Updated on: Fri, 15 February 2013 11:54] Report message to a moderator
|
|
|
Re: RAP Table: Row sometimes empty [message #1009630 is a reply to message #1009621] |
Fri, 15 February 2013 12:11 |
|
ah, i have it. there /was/ some code calling table.clearAll(). this called clear() on the item, thus the behaviour. it was obviously thought for a virtual table to force re-reading of the data... pff. is table.redraw() a viable alternative on RAP? javadoc says no... what can i do to force redrawing?
|
|
| |
Goto Forum:
Current Time: Thu Sep 26 09:48:18 GMT 2024
Powered by FUDForum. Page generated in 0.03247 seconds
|