facebook

Adding a new JSF template

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #313530 Reply

    Sudda
    Participant

    Is it possible to add a new JSF template that can be chosen at time of creating new facelet page(XHTML page) ?
    I’m using MyEclipse 8.6

    #313540 Reply

    support-swapna
    Moderator

    Sudda,

    Although we have an option to create a new JSF template, we cannot choose it at the time of creating XHTML page.
    I will file a PR with the dev team regarding this.

    Let us know if you have any other issues.

    #313549 Reply

    Sudda
    Participant

    Following post mentions that it is possible to modify an existing template:

    https://www.genuitec.com/forums/topic/change-to-default-jsf-template/

    I could not find corresponding default templates in MyEclipse 8.6 install.
    Is it possible to do same in MyEclipse 8.6 ?

    #313566 Reply

    support-swapna
    Moderator

    Sudda,

    You can edit the templates from the menu Window > Preferences. Type ‘JSP Templates’ in the search. Choose the Name of the template you want to edit.

    Hope it helps.

    #313573 Reply

    Sudda
    Participant

    Hi Swapna,

    I checked all the existing templates under ‘JSP Templates’ but could not find the one I need to modify.
    The template I want to modify has the line xmlns:ui=”http://java.sun.com/jsf/facelets”

    I need to modify following JSF template:
    Right Cick context menu –> New –> XHTML (Advanced Templates) –> Template to Use(Default JavaServer Facelets template)

    Let me know if you can help.

    Thanks,
    Rizly

    #313582 Reply

    support-swapna
    Moderator

    Sudda,

    Here is a tutorial in Eclipse Helios. Please go through this and try working on the same lines. I dont think we can edit the default javaserver faces template.

    http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jst.jsf.doc.user/html/gettingstarted/tutorial/JSFTools_tutorial_JSF20.html

    Hope this helps.

    #313602 Reply

    Sudda
    Participant

    Nope, this is not what I want.

    I’m already using templating method mentioned in the tutorial. Since there are many developers in the team, I want them to choose a customized page to start with each time they create a new page.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Adding a new JSF template

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