0 Replies Latest reply on Nov 15, 2007 11:03 AM by ibuchh

    A question about a4j:actionParam and rch:tooltip in richface

    ibuchh Newbie

      I am attaching a piece of code from richfaces-demo application about the rich:tooltip tag. In order for a4j:actionparam to work and get the current vehicle details pointed by the mouse, shouldn't there be an actionListener in the backing bean #toolTipData. How does the tooltip get the current vehicle details as it uses the var vehicle used by the dataTable that is outside the tooltip tag.


      <rich:dataTable value="#{toolTipData.vehicles}" width="400" var="vehicle" rowKeyVar="row">
      <rich:toolTip direction="top-right" mode="ajax" delay="30" styleClass="tooltip" immediate="true" layout="block">
      <a4j:actionparam name="key" value="#{row}" assignTo="#{toolTipData.currentVehicleIndex}" />

      <h:panelGrid columns="4">
      <f:facet name="header">
      <h:outputText value="Vehicle details:" />
      <h:outputText value="make:" />
      <h:outputText value="#{vehicle.make}" styleClass="tooltipData" />
      <h:outputText value="model:" />
      <h:outputText value="#{vehicle.model}" styleClass="tooltipData" />
      <h:outputText value="year:" />