JSF and HTML

When we design a page using JSF components like this,

<h:inputText id="userName" required="true" />

and when we deploy a page using tomcat, the JSF component is converting into HTML component (when i view the source of that page) like this,

<input id="_id2:userName" name="_id2:userName" type="text" value="" />

How this is happening, ie. how JSF components are converting into HTML components.

Thanks,

Vinutha.

[467 byte] By [vinuthamla] at [2007-10-3 11:30:50]
# 1
Each JSF component has Renderers. By these renderers JSF displays visual component.components associated to its top class component here in this case _id2 is the top level of text box. Form !
rrhegdea at 2007-7-15 13:57:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Can you explain in detail how this renderers are helpfull to convert from JSF to HTML.

because not only in JSF, If we create web pages using any technology.

all those pages will convert into HTML before going to server, and after recieving response from server again the page will be HTML.

so, can you expalin in steps with some pratical example.

Thanks,

Vinutha.

vinuthamla at 2007-7-15 13:57:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

The _id2 comes from h:form.

<h:form id="myform">

<h:inputText id="myinput" ... >

Will be rendered to<form id="myform">

<input type="text" id="myform:myinput" name="myform:myinput" ... >

So that they will guaranteed be unique.

BalusCa at 2007-7-15 13:57:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Hi,Thanks for your Reply.................Thanks,Vinutha.
vinuthamla at 2007-7-15 13:57:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Hi All,Am just started learning JSF. Is there any tutorials available online with demo programs..Thx
kcpsunforuma at 2007-7-15 13:57:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...