-
1. Re: the richfaces tooltip example does not work........
ilya_shaikovsky Feb 6, 2009 6:32 AM (in response to kevcpu411)#{bean.toolTipContent} - should be the string to be inserted to tooltip.
Or you coulf just insert some content nested to you tooltip and it will be used as tooltip content.
Please check that the tooltip is placed inside the form because it sends ajax reqeust to get it content with mode="ajax" -
2. Re: the richfaces tooltip example does not work........
kevcpu411 Feb 6, 2009 9:13 AM (in response to kevcpu411)Should it make a difference whether or not the tooltip is contained within a dataTable? I added the same code outside of my dataTable and it works. The one I have inside the dataTable seems to not work. It never goes away from the defaultContent. Every outer container has an id value set. The dataTable is container within a h:form tag.
-
3. Re: the richfaces tooltip example does not work........
ilya_shaikovsky Feb 6, 2009 9:22 AM (in response to kevcpu411)please show your page. Also you could visit richfaces-demo online. There is tooltip in dataTAble sample and tooltip works fine within the table.
-
4. Re: the richfaces tooltip example does not work........
kevcpu411 Feb 6, 2009 10:11 AM (in response to kevcpu411)I took my code out temporarily and added the following, which does not work either, also I have looked at the docs pretty hard but I cant get the dataTable example to work using ajax. When I think ajax, I think it should actually load the tooltip when an item is moused over, for example. Am I looking at this wrong? Is it really loading as the dataTable is rendered? What am I missing?
<h:panelGroup id="divBrowseContainer" styleClass="gridContainer"> <h:panelGroup id="innerContainer" styleClass="innerContainer"> <h:dataTable id="tstDataTable" value="#{browseBean.ist}" var="object"> <h:column id="colObjectNumber"> <f:facet name="header"> <h:outputText id="objectNumber"></h:outputText> </f:facet> <h:outputText id="txtObjectNumber" value="#{object.objectNumber}"> <rich:toolTip id="costInformation" direction="top-right" mode="ajax" styleClass="tooltip" layout="block" horizontalOffset="5" verticalOffset="5"> <h:outputText value="text goes here"> <rich:toolTip followMouse="true" direction="top-right" mode="ajax" value="whatthe" horizontalOffset="5" verticalOffset="5" layout="block"> <f:facet name="defaultContent"> <f:verbatim>DEFAULT TOOLTIP CONTENT</f:verbatim> </f:facet> </rich:toolTip> </h:outputText> </rich:toolTip> </h:outputText> </h:column> </h:dataTable></h:panelGroup></h:panelGroup>
-
5. Re: the richfaces tooltip example does not work........
sri_hari Feb 11, 2009 4:12 AM (in response to kevcpu411)Try <rich:dataTable>