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 101467 - clicking Finish doesn't close the New File dialog
Summary: clicking Finish doesn't close the New File dialog
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 22:15 UTC by sjangity
Modified: 2007-04-18 20:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
New File Dialog not closed after hitting Finish (137.80 KB, image/jpeg)
2007-04-17 22:16 UTC, sjangity
Details
Grab the exceptions from the page wizard (10.81 KB, text/plain)
2007-04-17 22:33 UTC, _ potingwu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sjangity 2007-04-17 22:15:44 UTC
(Wasn't sure if all page artifacts were created, so setting at high priority for
eval)

Build 200704161800, VWP 070417_7, WinXP, JDK 1.6

1. start a EE5 VWP project
2. on resources node invoke New > Other > Visual Web JSF Page
3. accept the default page name and hit 'Finish' button
> New Page dialog is still open
Comment 1 sjangity 2007-04-17 22:16:33 UTC
Created attachment 41121 [details]
New File Dialog not closed after hitting Finish
Comment 2 _ potingwu 2007-04-17 22:32:25 UTC
This is caused by jsfloader.JsfJspDataObject.handleCreateFromTemplate. Looks
like jsfloader only works iff the page is created under the folder 'web'. It
failed if the page is created under and sub-folder under 'web', e.g.,
'web/resources' or any other like 'web/myFolder'.
Comment 3 _ potingwu 2007-04-17 22:33:31 UTC
Created attachment 41122 [details]
Grab the exceptions from the page wizard
Comment 4 _ sandipchitale 2007-04-18 00:21:20 UTC
I noticed that the value of binding attribute is not correct. For example if 
the page Page1 is created in folder folder1 the binding attributes of 
component tags inside the jsp file should look like:

...binding="#{folder1$Page1.page1...}" ...

currently they look like:

...binding="#{Page1.page1...}" ...

This screws up the insync and will result it red designer.

The recent change to freemarker based templates probably caused this 
regression. This may also be affecting Move refactoring.

Assigning back to Po ting.
Comment 5 _ potingwu 2007-04-18 01:46:16 UTC
Don't use the new scripting support for creating new JSP objects. It's not ready
for naming with sub-folder yet. Back out my previous implementation. It's now fixed.
Comment 6 sjangity 2007-04-18 20:00:37 UTC
Verified fix in 070418_4.