- This topic has 6 replies, 2 voices, and was last updated 14 years ago by Sudda.
-
AuthorPosts
-
SuddaParticipantIs 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
support-swapnaModeratorSudda,
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.
SuddaParticipantFollowing 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 ?
support-swapnaModeratorSudda,
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.
SuddaParticipantHi 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
support-swapnaModeratorSudda,
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.
Hope this helps.
SuddaParticipantNope, 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.
-
AuthorPosts