facebook

JSP and JSF

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #302112 Reply

    Hi – When I create a JSP page with the standard JSP template, save it, and then open it with the MyEclipse JSF editor and save it, I can invoke this page either by using the .jsp extension or the .faces extension. The icon in the project explorer stays as a JSP icon and does not change to a JSF icon. Subsequent opening of the page defaults to the JSF editor.

    But when I create a JSP page using the JSF template, I can only open the page as a .faces page; the .jsp gets the error as described in your documentation. The icon in the project explorer is correctly rendered as a JSF icon.

    I don’t understand this behaviour; it seems to me that a page can exist as a .jsp and .faces simultaneously. Could you explain what’s going on here?

    Cheers

    BTW nice JSF editor . . .

    #302156 Reply

    support-joy
    Member

    SImonBoulton,

    Subsequent opening of the page defaults to the JSF editor

    When you try to open a file other than default editor, the history is saved and ME opens that particular file in the editor you selected from there onwards. If you want to change it to default editor, you need to again select the option of “Open With” and select default.

    I am able to replicate the issue when I follow your steps to reproduce. It is not an issue. If you remove that “<f:view>” tag in the second JSP file, you can access it using .jsp extension.
    It is the constraint of the JSF framework which doesn’t allow the JSF tags to be accessible using .jsp. We can access the JSF tags using .jsf or .faces extensions only.
    Please let me know if you need anything.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP and JSF

You must be logged in to post in the forum log in