Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 377746

Summary: [Table] Data does not show up intermittently
Product: [RT] RAP Reporter: Avrajit Chatterjee <avrajit.chatterjee>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2 CC: amandeep.chahal, ronald.so, tbuschto
Version: 1.5   
Target Milestone: 1.5 M7   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Table response
none
Group Tab to be used in the demo project to reproduce the issue none

Description Avrajit Chatterjee CLA 2012-04-26 07:14:30 EDT
Recently we migrated from 1.5M4 to 1.5M6 RAP release.No changes in the code whatsoever. We have faced one peculiar issue where the table data is not showing up properly one of our tables .We have checked the response through firebug and found that the multiple TreeItem's background, images, foreground, text are identical in 1.5M4 and 1.5M6. Its rendering properly in M4 but not in M6. Surprisingly this issue -
1. is for only one of the table components in the application , rest are working fine
2. first time it shows all the table data properly but fails on subsequent requests
3. All data are coming in from server side proven by firebug response
4. its able to set the background colors of the cells properly but not the text(data)

We have faced this issue both in FF 3.6 and IE 8 which makes us believe that there is some glitch in the migration. Please let us know if this is a known issue and any solutions. In the mean time we will try to debug whats going wrong.
Comment 1 Ivan Furnadjiev CLA 2012-04-27 02:13:27 EDT
Avrajit, without a snippet to reproduce the issue we couldn't do much.
Comment 2 Ivan Furnadjiev CLA 2012-04-27 04:46:20 EDT
(In reply to comment #0)
> We have faced this issue both in FF 3.6 and IE 8...
Did you check other browsers as well - Firefox 11(12), Chrome 18, IE9? Is the problem the same in all of them?
Comment 3 Avrajit Chatterjee CLA 2012-05-03 08:22:10 EDT
We havent checked it with any other browsers or versions. But today we figured out that this seems to be with the vertical scroll movement. We have seen that when we move the vertical scroll the data sometimes appear and sometimes doesnt. Though there is no response coming from the server side.
Comment 4 Avrajit Chatterjee CLA 2012-05-04 05:23:17 EDT
Created attachment 215046 [details]
Table response
Comment 5 Ivan Furnadjiev CLA 2012-05-04 05:39:29 EDT
Avrajit, in order to fix it we really need a way to reproduce the issue.
Comment 6 Amandeep Chahal CLA 2012-05-04 10:35:09 EDT
(In reply to comment #5)
> Avrajit, in order to fix it we really need a way to reproduce the issue.

Finally got to reproduce this bug. Seems to be an issue when the 'RWT.MARKUP_ENABLED' is set for the table. Replace the 'GroupTab' in the demo project with the attached code for 'GroupTab'. Toggle between the 'Remove Data' and 'Show data' buttons on the left. 'Show data' should render the items but it only renders the background and not the content. However if you scroll, the data starts appearing.
Comment 7 Amandeep Chahal CLA 2012-05-04 10:37:11 EDT
Created attachment 215064 [details]
Group Tab to be used in the demo project to reproduce the issue
Comment 8 Ivan Furnadjiev CLA 2012-05-07 03:49:39 EDT
Thanks for the snippet. I can reproduce the issue with current CVS HEAD.
Comment 9 Tim Buschtoens CLA 2012-05-07 06:35:03 EDT
Fixed in CVS HEAD.

The issue was changing an items text to "" together with Markup. When using "" the Tree would not detect the markup flag, thereby "forgetting" the element was cleared when the new item content was rendered. Since the new content was identical to the first one, it did not re-render.