On 03/11/10 22:36, Thorsten wrote:
On Thu, 11 Mar 2010, Michael O'Cleirigh wrote:
Hi Michael,
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.
I'm still confused. My main page looks like this:
<html>
<span wicket:id="tooltip"> Click on me, and a tooltip will show up
</span>
</html>
class MainPage extends WebPage {
final Label tooltipHolder = new Label("tooltip", "asdf");
add(tooltipHolder);
tooltipHolder.setOutputMarkupId(true);
tooltipHolder.add( new QTipBehaviour( new TooltipPanel(??? ));
}
So I don't have hany markup-id for the panel. I could define it in the
html as a hidden div, but is there a way of without an additional div?
I don't know QTipbehaviour, but it should take care of that. That's how
it works with ModalWindow, for instance.
If you just define a simple TooltipPanel and try it out, what happens?
-- Thomas
--
-------------------------------------------------------------------
Thomas Kappler [email protected]
Swiss Institute of Bioinformatics Tel: +41 22 379 51 89
CMU, rue Michel Servet 1
1211 Geneve 4
Switzerland http://www.uniprot.org
-------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]