I need a unique id for some DIVs under JSF 1.2, how do I go about doing this in a manner that can be resolved later for use in a Javascript function?
Traditionally I use either JSF HTML or Richfaces components, which automatically use JSF to generate an unique id and then use rich:clientId() to resolve that id. I just haven’t found a component that will just give me a DIV.
BalusC is partially correct about
<h:panelGroup layout="block">producing a div, thought strangely enough you need to include a style or styleClass element to guarantee that it produces a div. Here is the quote from the documentation.When you put an ID on the h:panelGroup then it will be prepending with a JSF id. This doesn’t work on JSF Facelets however, where you will run into duplicate ID issues.