Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.0.1, EE-3.0.0.GA
-
Fix Version/s: 3.1.0.BETA1, 3.1, EE-3.2.0.BETA, EE-3.2.0.GA
-
Component/s: Tool Integrations
-
Labels:None
-
Environment:Eclipse 3.7
-
Workaround Exists:Yes
-
Workaround Description:Keep the default faces/** mapping
Description
Using the Eclipse ICEfaces project creation and selecting 'Create Sample Page'. The sample page is created, along with an index.jsp. The index.jsp includes the following forward:
<jsp:forward page="faces/index.xhtml" />
The page name will depend on what the user enters in the page name field of the Create Sample Page panel in the ICEfaces configuration dialog. However, in the previous JSF Configuration dialog, the user has set the JSF mapping to not use "faces/**" for the servlet mapping, and a suffix mapping, such as *.jsf, this forward from the index.jsp page will not work.
If possible, it would be preferable to detect the facelets mapping selected in the previous JSF Configuration dialog, and set the forward accordingly.
<jsp:forward page="faces/index.xhtml" />
The page name will depend on what the user enters in the page name field of the Create Sample Page panel in the ICEfaces configuration dialog. However, in the previous JSF Configuration dialog, the user has set the JSF mapping to not use "faces/**" for the servlet mapping, and a suffix mapping, such as *.jsf, this forward from the index.jsp page will not work.
If possible, it would be preferable to detect the facelets mapping selected in the previous JSF Configuration dialog, and set the forward accordingly.
Current version does not respect the user's input for url-pattern of facesServlet in JSF project creation wizard dialog.
Instead it uses /faces/* pattern as reference for the forward url in index.jsp as /faces/* works by default (this mapping is hard coded in majarra 2 under JEE6).
This enhancement is requested.
Only the first url mapping of all url mappings for faces servlet is recognized if it follows .xxx or /xxx/