Search This Blog

Friday 28 June 2013

JSF PAGE STRUCTURE

A JSF page has extension .xhtml.

It starts with DTD (Document Type Definition).

                                                      Figure- DTD Example

A DTD contains information about the tags to be used in the whole documents. There is some sort of validation stuff from where the document can be validated.
Then next thing that it contains is the list of libraries so that we can use them in out code.


                                          Figure- JSF Page Example

Figure-  Output of Above Code
As you can see in the above figure that there are few tags in the code. Each of them has some specific meaning and all the user code for a JSF page will be written between them.
For writing code in JSF you need to know the basics of HTML because most of the things in JSF is about HTML only.
You can view following link to see how to create a JSF application.


Enjoy Learning :)

No comments:

Post a Comment

Thanks for feedback,
Your opinion will surely help me to enhance the quality of the content.