Bug 185189 - run XHTML file as a JSF file
run XHTML file as a JSF file
Status: NEW
Product: javaee
Classification: Unclassified
Component: JSF
6.x
PC Linux
: P2 (vote)
: 7.1
Assigned To: Martin Fousek
issues@javaee
: PLAN
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-28 15:09 UTC by Jindrich Sedek
Modified: 2011-05-27 11:41 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

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>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

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

It would make JSF testing and debugging much easier


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo