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 185189 - run XHTML file as a JSF file
Summary: run XHTML file as a JSF file
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal with 1 vote (vote)
Assignee: Martin Fousek
Keywords: PLAN
Depends on:
Reported: 2010-04-28 15:09 UTC by Jindrich Sedek
Modified: 2011-05-27 11:41 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2010-04-28 15:09:57 UTC
Imagine having a web project with a bunch of XHTML files. Something like Scrum Toys sample project.

Invoking run file on XHTML behaves the same way in Web project - it doesn't consider JSF enabled, so it just opens XHTML code in browser. It doesn't help much during development.

It would be good if there was an action Run as JSF in case there is JSF enabled and there is a rule mapping this XHTML to a JSF page.

For example you have this piece of code in web.xml:
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-name>Faces Servlet</servlet-name>

The action should open /xyz/test.jsf instead of /xyz/test.xhtml.

It would make JSF testing and debugging much easier