Closed GoogleCodeExporter closed 9 years ago
Hi,
wiquery-plugins is a different project. Please, if you have issues for it file
them at
http://code.google.com/p/wiquery-plugins/issues/list
Will try to look to your quick-start today. But I think you might be doing
something wrong as I'm using the same component to implement different
functionality on one of our applications (e.g. master-detail on tables,
tooltips for form fields, and son on) and I haven't found such problems.
Ernesto
Original comment by reier...@gmail.com
on 13 Dec 2010 at 6:36
Hi,
I have played with your example for a couple of minutes and I can't reproduce
the problem you mention, neither see the tooltil. What are you trying to
achieve? Kind of master detail? If so, I would do the following:
1-Place the "tooltip contents" on a single element that is outside the repeater.
2-Associate the tooltip to a column on each row and use AJAX to update when it
is about to be shown.
Please, let me know if you want me to build an example showing how to achieve
this.
Ernesto
Original comment by reier...@gmail.com
on 13 Dec 2010 at 7:18
Hi Ernesto,
Thanks for look to the issue.
1. Tooltips become visible at the right side of each row of the table, if you
hover the mouse on the row. It looks like an indicator. In my applicataion, I
add another tooltip to show more details of each item shown in the row when you
hover the mouse on the indicator. But I do not include it in the quick-start,
since it is not required to reproduce the problem.
I put tooltips inside the repeater because the position of tooltip is
relational to that of the row (repeater-item). But I will check my source code
that is it possible to make the tooltip outside the repeater.
2. If no tooltip is shown, could you check the html on the browser? Is it
includes following lines?
<script type="text/javascript"
src="resources/org.odlabs.wiquery.core.commons.CoreJavaScriptResourceReference/j
query/jquery-1.4.4.js"></script>
If not, add the wiquery initialization code at WicketApplication.init()
>> WiQueryInitializer w = new WiQueryInitializer();
>> w.init(this);
I think this is not in your case, though.
Thanks,
Takeo Hosomi
Original comment by Takeo.Ho...@gmail.com
on 13 Dec 2010 at 7:51
Takeo,
The kind of error you are seen is typical of the following situation:
1-You click on one of the navigate buttons of table. An AJAX request is sent to
the server.
2-While request is processed you move the mouse over a row. A new AJAX request
is queued in order to display the tooltip.
3-First request finish and the server side component hierarchy is altered so
that request in Step 2 is referring to a component that no longer exists on
page.
One way to prevent this is try to use a "veil" so that request on step 2 is
never triggered when you are navigating between pages.
Regards,
Ernesto
Original comment by reier...@gmail.com
on 13 Dec 2010 at 9:45
Hi Ernesto,
Thanks for the suggestion.
I looked the following links and it solves the problem.
http://wicketinaction.com/2008/12/preventing-double-ajax-requests-in-3-lines-of-
code/
I attach the modified source code.
Thanks,
Takeo Hosomi
Original comment by Takeo.Ho...@gmail.com
on 13 Dec 2010 at 7:33
Attachments:
Original issue reported on code.google.com by
Takeo.Ho...@gmail.com
on 11 Dec 2010 at 6:03Attachments: