1. Create new Jsf page.
3. Click on source, you will see the source with "Resource" tag like follows
5. click on Design, and drag button so that you can call function on button click .
7. If you see the source it would be like
Note: these are basic tutorials for beginners, I am sharing what I am learning.