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 122229 - Extension mapping is ignored in URL property selectors in visual editor
Summary: Extension mapping is ignored in URL property selectors in visual editor
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Dongmei Cao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-18 15:30 UTC by tw
Modified: 2008-02-26 19:44 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tw 2007-11-18 15:30:19 UTC
Versions
--------------------------------------------------------------------
Product Version: NetBeans IDE 6.0 RC1 (Build 200711131200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)
Userdir: C:\Dokumente und Einstellungen\tw\.netbeans\6.0rc1

(This is on a German Windows XP SP2)


Observed behavior
-------------------
When extension mapping is used in a visual web project it is ignored in the selector for the URL property for hyperlink,
image hyperlink or breadcrumbs components. The generated URLs always use the default /faces/* mapping although the
project was created to use an extension mapping like for example *.jsf.


Expected behavior
--------------------------------------------------------------------
The generated URLs should use the mapping defined for the faces servlet in web.xml like for example *.jsf.


Steps to reproduce
--------------------------------------------------------------------
--> Install fresh Netbeans 6.0 RC1, no options are changed, no old settings are imported
--> File --> New Project --> Web --> Web Application --> Next
--> Next
--> mark Visual Web JavaServer Faces --> change Servlet URL Mapping to *.jsf --> Finish 
--> the project gets created
--> right click web pages --> New -> Visual JSF web page --> Next Finish
--> this will create a Page2.jsp in the project
--> open Page1.jsp in the visual editor
--> drop a Hyperlink component from the palette on the page
--> select the dropped Hyperlink and click in the Properties window the '...' button for the url property
--> select Page2 in the tree
--> the URL field will display /faces/Page2.jsp as value (instead of the expected /Page2.jsf)

Same applies for Image Hyperlinks and Breadcrumbs and probably all components which have a url property.
Comment 1 Peter Zavadsky 2007-11-19 17:36:03 UTC
Passing to the property editors (components?).
Comment 2 Winston Prakash 2007-11-19 22:19:39 UTC
Accept that we have this bug in the product. The property editors should correctly find the
URL mapping for faces servlet as specified in the web.xml and accordingly generate the code.

Unfortunately, for NB 6.0, we don't have any API to interact with web.xml to find the url-mapping
for faces servlet. It would be nice to fix this for next release.

The work around for now is to use the prefix based url-pattern in the web.xml or manually modify the
generated code to make it suitable for suffix based url-pattern.     
Comment 3 tw 2007-11-23 23:34:12 UTC
Well using Prefix mapping is not really a workaround since most clients do not
want a prefix in their site's URLs.

I never understood why extension mapping is not the default.
Comment 4 Dongmei Cao 2008-02-26 19:44:18 UTC
This requires a pretty big change. Not for dot release