Is the identifier generated by JSF the same for different versions and implementations?
No. You must explicitly specify the component identifier in the UIInput
component of UIInput
and all its parent UINamingContainer
components, such as <h:form>
, <ui:repeat>
, <h:dataTable>
, etc. Independently. These identifiers will be destroyed by default using the delimiter character :
However, the delimiter character, in turn, is configured with JSF 2.0. So, if you change the separator character for your webapp from :
to -
or something else, then you will have to rewrite selenium tests that rely on the identifiers of the HTML elements.
source share