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 94212

Summary: Prerender Code Sample needs to setSelected()
Product: obsolete Reporter: bugbridge <bugbridge>
Component: visualwebAssignee: _ jimdavidson <jimdavidson>
Status: NEW ---    
Severity: blocker CC: ckutler
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: ENHANCEMENT Exception Reporter:

Description bugbridge 2007-02-03 01:23:47 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original Target Release: mako_dev; Suggested Target Milestone : Dev

Original submitter: ckutler

In regards to the following code clip:

  public void prerender() {
       if ( dropdown1.getSelected() == null ) {
           try {
           } catch (Exception e) {
               error("Cannot switch to person " +
               log("Cannot switch to person " +
personDataProvider.getValue("PERSON.PERSONID"), e);

This clip should call
dropdown1.setSelected(personDataProvider.getValue("PERSON.PERSONID")) to set it
to the first item? Otherwise, there will be a problem if some subsequent method
expected the getSelected() to not be null?