Issue with Richfaces 4.3.2 Tooltip listener
saini.sushant Oct 17, 2013 4:40 PMHi,
I am trying to upgrade from Richfaces 3.3.3 to 4.3.2. I have an issue where the tootip loads but without data. bascially I had an listener attached to tooltip which is suppose to load the data but that listener is not being invoked after migration. I need a listener on the server side as I load the tool tip data only when somebody hovers over the comoponent.
here is my tooltip code.
<a4j:outputPanel id="tooltippanel"> <h:graphicImage id="bldlocQuickPeek" url="images/preview.gif" rendered="#{not empty arr.locationName}" alt="Location Quick Peek"></h:graphicImage> <rich:tooltip target="bldlocQuickPeek" listener="#{buildingSearchBackBean.onLocationHover}" mode="ajax" verticalOffset="-100" horizontalOffset="5"> <div class="quickpeek-top"><h1> Location Quick Peek</h1></div> <div class="quickpeek-bg"> <table cellpadding="0" cellspacing="0"> <tr> <td><h:outputLabel styleClass="qplabel" value="Address"/></td> <td><h:outputText styleClass="qpfield smalltext" value="#{buildingSearchBackBean.locQPAddress}"/></td> </tr> <tr> <td><div class="qpline"></div></td> <td><div class="qpline"></div></td> </tr> <tr> <td><h:outputLabel styleClass="qplabel" value="City"/></td> <td><h:outputText styleClass="qpfield smalltext" value="#{buildingSearchBackBean.locQPCity}"/></td> </tr> <tr> <td><div class="qpline"></div></td> <td><div class="qpline"></div></td> </tr> <tr> <td><h:outputLabel styleClass="qplabel" value="Field Office"/></td> <td><h:outputText styleClass="qpfield smalltext" value="#{buildingSearchBackBean.locQPFieldOffice}"/></td> </tr> <tr> <td><div class="qpline"></div></td> <td><div class="qpline"></div></td> </tr> <tr> <td><h:outputLabel styleClass="qplabel" value="Occup Right"/></td> <td><h:outputText styleClass="qpfield smalltext" value="#{buildingSearchBackBean.locQPOccupRight}"/></td> </tr> <tr> <td><div class="qpline"></div></td> <td><div class="qpline"></div></td> </tr> </table> </div> <div class="quickpeek-bottom"></div> <a4j:ajax event="mouseover" requestDelay="5000"></a4j:ajax> </rich:tooltip> </a4j:outputPanel>
and here is the listener on the back on the server
public void onLocationHover(ActionEvent e) { // getLogger().debug("inside hover event"); BuildingSearchResultsDTO srt = (BuildingSearchResultsDTO) this.htmlDataTable.getRowData(); // getLogger().debug("loc code = "+srt.getLocationCode()); BldQuickPeekDTO bldQuickPeekDTO = this.getBuildingSearchBusinessDelegate().getBldQuickPeek(srt.getLocationCode()); setLocQPAddress(bldQuickPeekDTO.getAddress()); setLocQPCity(bldQuickPeekDTO.getCity()); setLocQPFieldOffice(bldQuickPeekDTO.getFieldOffice()); setLocQPOccupRight(bldQuickPeekDTO.getOccupRight()); }