Author: ilya_shaikovsky
Date: 2009-02-05 06:47:49 -0500 (Thu, 05 Feb 2009)
New Revision: 12569
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml
Log:
actionListener for demonstration of possible external data loading according to param
added instead of just object setting during request.
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml 2009-02-05
11:32:51 UTC (rev 12568)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/examples/withTable.xhtml 2009-02-05
11:47:49 UTC (rev 12569)
@@ -36,6 +36,8 @@
<rich:toolTip direction="top-right" mode="ajax"
showDelay="300"
styleClass="tooltip" layout="block">
<f:setPropertyActionListener value="#{vehicle}"
target="#{toolTipData.vehicle}" />
+ <a4j:actionparam name="key" value="#{row}"
+ assignTo="#{toolTipData.currentVehicleIndex}"
actionListener="#{toolTipData.fillCurrent}"/>
<h:panelGrid columns="4">
<f:facet name="header">
<h:outputText value="Vehicle details:" />
@@ -47,7 +49,7 @@
<h:outputText value="year:" />
<h:outputText value="#{toolTipData.vehicle.year}"
styleClass="tooltipData" />
<h:outputText value="milage:" />
- <h:outputText value="#{vehicle.milage}"
styleClass="tooltipData" />
+ <h:outputText value="#{toolTipData.vehicle.milage}"
styleClass="tooltipData" />
<h:outputText value="zip:" />
<h:outputText value="#{toolTipData.vehicle.zip}"
styleClass="tooltipData" />
<h:outputText value="listed:" />
@@ -60,7 +62,7 @@
<h:outputText value="#{toolTipData.vehicle.vin}"
styleClass="tooltipData" />
</h:panelGroup>
</f:facet>
-
+
</h:panelGrid>
</rich:toolTip>
<h:outputText id="make" value="#{vehicle.make}"/>
Show replies by date