Hi Thorsten,

The content of the tooltip should be a panel. The panel's model can contain the List<Integer> of the increases you want offered and then it can use a repeater or ListView to render each option. If the links were AjaxLink subclasses you could set their model to be the particular Integer they represented and then within the onClick(final AjaxRequestTarget target) method handle the necessary changes to your totals.

There is also a client side version to this where all the tooltip's are written out invisible with the page and you have a custom Javascript class/object that is aware of the totals amount and can update it based on a client side "onclick" event's on the links.

Regards,

Mike

Hi,

my site has two labels. One shows a total amount. If the user clicks on
the other label, a tooltip shows up, where the user can increase the
total amount with help of different links:
+-------------------------------
+<a href=???>increase by 1</a>+
+<a href=???>increase by 2</a>+
+<a href=???>increase by 3</a>+
+-------------------------------

How do I implement this?

So far, I have a QTipBehaviour class, that controls the tooltip. But how
can I change the total amount from there?


Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to