Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Server Faces JSF - who is responsible for auto generated id's?

Tags:

java

jsf

tomcat

when the Faces Servlet compiles a jsp to the servlet in the work directory, it generates id's, like j_id_jsp_1024919151_1...

When is the id changing? I tried it on the same machine, cleaning work directory, still the same. I started another Apache Tomcat on the same machine and I got new id's...

Thanx Stefan

like image 224
user566702 Avatar asked Jan 07 '11 10:01

user566702


1 Answers

The id of a component is generated by the implementation if it is not set.

The id attribute value emitted to the page is the client identifier. This is constructed using the rules defined in the link and will include parent NamingContainer ids and possibly the view namespace.

You can read more about working with JSF client identifiers here.

like image 83
McDowell Avatar answered Nov 15 '22 15:11

McDowell