I have a requirement where I need to display components on the form which will be retrieved from the database. I am able to show the components with the help of datatable and ui repeat. I also need to include toolTip functionality for these components for which every component would require an ID. Is there any way we can add id(s) to the components dynamically.
<p:dataTable styleClass="borderless" id="rdResultTable" var="result"
value="#{RequestBean.radioList}" rendered="#{not empty RequestBean.radioList}">
<p:column style="width:150px;">
<f:facet name="header">
<h:outputText value=" " />
</f:facet>
<h:outputText value="#{msg[result.field_label]}"/>
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="" />
</f:facet>
<ui:repeat value="#{RequestBean.radioList}" var="itm">
<p:inputText value="#{itm.indFieldValue}"
rendered="#{result.level_id==itm.level_id and result.field_type=='textbox'}">
</p:inputText>
</ui:repeat>
</p:column>
</p:dataTable>
Any help would be appreciated.