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 139814

Summary: Execute Code in Design Time
Product: obsolete Reporter: cadorca <cadorca>
Component: visualwebAssignee: _ sandipchitale <sandipchitale>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description cadorca 2008-07-13 20:03:37 UTC
When design applications in visual web the IDE execute my code in design time
for example if I have a class GenericDAO that acces the db to get the objects back and do some stufs before returning
for example a method
public List<Codes> getCodes(){.....acces database, do stufs, ...}
when this objects are binding to a jsp tag for example a table, the IDE execute my method, that method take a lot of
time because the database is in a remote place(only in design time), so I have to wait a lot of time to see my page
rendered in the visual editor, this simple example show the big implications of try to execute the user code in design
time and the big overhead that this represents, including the cases when the code fail because of execution in design time.

I propose changing this from executing code to only be able to bind the method structure(the IDE only take care of build
clases and filter the methods based on the return type), this will IMPROVE A LOT THE DESIGN PERFORMANCE, if you see
another editors like Vidual Studio 2005 they only sync the method structure but not actually execute the code in design
time.
Comment 1 _ sandipchitale 2008-07-14 21:19:17 UTC
We will consider this.