-
1. Re: Display tooltip for rows in dataTable
sivaprasad9394 Jun 19, 2012 12:56 AM (in response to arthur187)1 of 1 people found this helpfulhttps://community.jboss.org/message/52271
For Example......
<rich:toolTip id="resourceToolTip" direction="bottom-left" styleClass="hover-tip"
mode="ajax" for="resourceTipTarget" layout="block" verticalOffset="#{myBean.screenY}">Please have a look on the below link for tool tip......
http://livedemo.exadel.com/richfaces-demo/richfaces/toolTip.jsf?tab=table
-
2. Re: Display tooltip for rows in dataTable
arthur187 Jun 19, 2012 9:00 AM (in response to sivaprasad9394)Ok, thank you for the help. I have found the second link on tooltips on datatables already, but they only show the solution on columns. Do you have any good tutorials for the "for" operator? As I'm quiet new to this, I don't know how I should assign IDs to the tablerows.
-
3. Re: Display tooltip for rows in dataTable
sivaprasad9394 Jun 20, 2012 1:19 AM (in response to arthur187)Hi,
You can't add tooltip for the row.I have given some example for your reference,
<rich:column width="10%" style="text-align: center;">
<f:facet name="header">#{messages.Edit}</f:facet>
<s:link id="editPanel"
view="/pages/training/editTrainings.xhtml" action="#{trainingsHome.editTrainingsDetails()}" >
<h:graphicImage value="/img/bosch/iconEdit.gif"
style="border:0" alt="Edit"/>
<f:param name="trainingsTrainingid" value="#{training.trainingid}"/>
<f:param name="trainingEdit" value="Edit"/>
</s:link>
<rich:toolTip for="editPanel" value="#{messages.Edit}"
</rich:column>
<rich:column width="15%" style="text-align:center;">
<f:facet name="header">#{messages['Training.Frequency']}</f:facet>
<h:outputText id="YearID" value="#{training.freqperyear}">
</h:outputText>
<rich:toolTip for="YearID" value="Frequent Year"
</rich:column>
So in your datatable you can see some thing like "Frequent Year" tooltip.