This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108898

Summary: View of JSF Table is damaged after assigning new RowSet to its bound DataProvider
Product: obsolete Reporter: _ alexpetrov <alexpetrov>
Component: visualwebAssignee: John Baker <jbaker>
Status: NEW ---    
Severity: blocker CC: romanmostyka
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: .log-file
screenshot
screenshot

Description _ alexpetrov 2007-07-04 17:28:19 UTC
Product Version: NetBeans IDE 6.0M10 (build 200706260050) 
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

1. Connect to DB Derby.
2. Create a new VWP project.
3. DnD DB table "HOTEL" on Design View.
4. DnD DB table "TRIP" on Design View.
5. DnD JSF component Table on Design View.
   Use popup menu item "Bind to Data...".
6. In the dialog "Bind to Data" select in combo-box the item "hotelDataProvider".
   Click OK.
7. In the window "Navigator" select the tree subnode "hotelDataProvider".
   In the window "Properties" change the value of property "cachedRowSet" from "hotelRowSet" to "tripRowSet".

Result:
1). Exception will appear in the "messages.log" (see the attached file)
2). Design View will be damaged (see the attached "screenshot_dataprovider_newRowSet.JPG")
3). If click "Continue", an exception message will be shown on the table place (see the attached
"screenshot_table_corrupted.JPG")

It seems, it would be better, if JSF component table was able to reconfigure its columns and display new 
correct version of columns with new column names and data.
Comment 1 _ alexpetrov 2007-07-04 17:29:11 UTC
Created attachment 44717 [details]
.log-file
Comment 2 _ alexpetrov 2007-07-04 17:30:33 UTC
Created attachment 44718 [details]
screenshot
Comment 3 _ alexpetrov 2007-07-04 17:31:53 UTC
Created attachment 44719 [details]
screenshot