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.
REGRESSION (see http://www.netbeans.org/issues/show_bug.cgi?id=112917). Automated tests "CachedRowSetDataProvider_AcceptanceTests" shows that the bug #112917 is reproduced again - DataProvider doesn't provide data to JSF component. Product Version: NetBeans IDE Dev (Build 200710040000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 System: Windows XP version 5.1 running on x86 Scenario - tutorial "Performing Inserts, Updates, and Deletes". 1. Connect to DB Derby Travel. 2. Create new VWP project (Java EE 5, Classfish V2, Visual Web JavaServer Faces) 3. DnD Drop Down List on Designer. DnD DB table PERSON on it. 4. Use popupmenu item "Edit Event Handler -> processValueChange" for JSF component "dropDown1". 5. Save All and switch to Designer. Result: - JSF component "dropDown1" is still bound to "personDataProvider" (see a value of a property "items" in the window "Properties"), but JSF component on Designer doesn't contain items and lists "Value field" and "Display field" are empty in the dialog "Bind to Data" (for "dropDown1")
Works for me Step 5 I open bind to data for the Dropdown List and all fields for Person are available (both value and display)
Here's the environment I tried and started IDE with no userdir Product Version: NetBeans IDE Dev (Build 200710040000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86 Cannot reproduce
Here's the environment I tried and started IDE with no userdir Product Version: NetBeans IDE Dev (Build 200710040000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86 Cannot reproduce
Product Version: NetBeans IDE Dev (Build 200710050000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 System: Windows XP version 5.1 running on x86; Cp1251 Verified. The bug is not reproduced on NB build #200710050000.
Product Version: NetBeans IDE Dev (Build 200710050000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 System: Windows XP version 5.1 running on x86; Cp1251 BUG IS STILL REPRODUCED! The 1st scenario is not reproduced, BUT a scenario of the bug http://www.netbeans.org/issues/show_bug.cgi?id=112917 is still reproduced (automated tests show this fact): 1. Connect to DB Derby Travel. 2. Create new VWP project (Java EE 5, Classfish V2, Visual Web JavaServer Faces) 3. DnD Drop Down List on Designer. Change its property "id" from "dropDown1" to "personDD". DnD DB table PERSON on it. Use popup menu: - set "Auto-Submit on Change" to ON. - "Configure Virtual Forms..." - add new virtual form: "person, Yes, Yes". 4. DnD JSF component Table on Designer. DnD DB table TRIP on it. Result: - see attached screenshot "screenshot_before_1.JPG" - JSF components are bound to DB tables properly. 5. Use popupmenu item "Edit Event Handler -> processValueChange" for JSF component "personDD" and insert the following java code inside the created method "personDD_processValueChange()" Object selectedPersonId = personDD.getSelected(); try { personDataProvider.setCursorRow( personDataProvider.findFirst("PERSON.PERSONID", selectedPersonId)); getSessionBean1().getTripRowSet().setObject(1, selectedPersonId); tripDataProvider.refresh(); form1.discardSubmittedValues("save"); } catch (Exception e) { error("Cannot switch to person " + selectedPersonId); log("Cannot switch to person " + selectedPersonId, e); } 6. Save All and switch to Designer. Result: - see attached screenshots "screenshot_after_2.JPG" & "screenshot_deployment_3.JPG " - JSF components are NOT bound to DB tables. John, please, try J2SDK 1.6.0_03...
Created attachment 50276 [details] screenshot
Created attachment 50277 [details] screenshot
Created attachment 50278 [details] screenshot
Appears to be an insync bug. It's much easier to reproduce: 1) Create new project 2) DnD a dropdown list 3) From the Travel connection, DnD the person table onto the dropdown list 4) Switch to the Page bean source and type one character 5) Switch back to the Design view The binding is lost
Appears to be insync, reassigning See desc 10 (previous evaluation)
Could be retouche? After undo -ing what I type in Page1.java, the binding is still lost
Was something changed in data providers ?
This is happening because of not generating the dp.setCachedRowSet() statement in the _init() method of .java file, requires more investigation
Statement was not added because the changes to _init() was not cumulative. This got introduced because of performance enhancement(#94205)
Verified on Product Version: NetBeans IDE Dev (Build 200710090000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 System: Windows XP version 5.1 running on x86
*** Issue 118302 has been marked as a duplicate of this issue. ***