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

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

      Hi,
      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.

      --Irshad.

      --withTable.xhtml
      <rich:dataTable value="#{toolTipData.vehicles}" width="400" var="vehicle" rowKeyVar="row">
      <rich:column>
      ....
      ....
      <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:" />
      </f:facet>
      <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:" />
      ...
      ...