So I've got kind of an interesting problem. I have a wicket page that contains a datatable and a fusionchart (flash chart) that uses a webresource to retrieve it's xml data file. The problem I've got is that when you use the page number or sorting links in the datatable, it reloads the page and changes the URL such that the chart can't get its data anymore.
e.g. Before using the sorting links (this data url works for the chart) vreports/wicket:interface/:5:tabs:panel:prodGraph::IResourceListener:: (this is the url for the base page: /vreports.5)
After using the sorting links (this data url doesn't work) vreports/wicket:interface/:5:tabs:panel:prodGraph:1:IResourceListener:: (base page url: /verports.5.1)
My question is how can I isolate the webresource URLs that the chart uses from the datatable links? I see that the problem is the .1 that gets added, if you click it multiple times it increments by one and the change in the web resource URL matches. What's especially odd is if I refresh the page after using the sort functions, the sort remains in effect, but the chart (and the correct URL) come back. I'm new to wicket and I can't really find much information on how it's URL structure works regarding this.... any thoughts?
Thanks in advance!
Sam