Hello everybody!
I have been working on JSF recently. Whenever I want to create a new XHTML file that I am going to use JSF in it, I have to declare JSF namespace on the top of each XHTML file. So to make this easier we can simply create our own templates in Eclipse and use it when we need.
As you can see in the image below, all you need to do is to go to "Eclipse->Window->Preferences". On the left hand side you will see a list in which you navigate to "Web-> HTML Files-> Editor-> Templates". On the "Templates" page you will see the page templates that are ready to use. To create your own, click "New" and then fill the necessary fields such as Name, Context, Code, etc. Click "OK" when you are done and you are good to go.
Hope to see you int he next blog post.
Selen
No comments:
Post a Comment