display XML in a popup (or another window) wicket 6.9.1

2014-02-18 Thread BenHoit
hi, i want to display an xml string like with a ResourceLink but i want this xml string to be uploaded from the database when i click on the link. before wicket 6.9.1 i used the DocumentInlineFrame from Ernesto Reinaldo Barreiro and it works fine in a popup with a button ... but with 6.9.1, i cant

Re: display XML in a popup (or another window) wicket 6.9.1

2014-02-18 Thread BenHoit
in wicket 1.4, i used an IndicatingAjaxLink and in onClick method, i asked my database, get a String, transform it in a byte[] and used DocumentInlineFrame with an XmlResource class extended DynamicWebResource import org.apache.wicket.markup.html.DynamicWebResource; public class MyXmlResource

Re: display XML in a popup (or another window) wicket 6.9.1

2014-02-18 Thread BenHoit
i have tried it but i don't know how to replace the new PackageResourceStream(HomePage.class, ScalaOverview.pdf) i haven't a resourceStream but a string (or a byte[]) -- View this message in context:

Re: display XML in a popup (or another window) wicket 6.9.1

2014-02-18 Thread BenHoit
so strange ... i put log in getString method (and in onResourceRequested of the DocumentInlineFrame). they are never called and my panel is filled with random xml. i also log the database request and the response (before calling new OdyReqTargetPanel) : they are correct public class

Re: display XML in a popup (or another window) wicket 6.9.1

2014-02-18 Thread BenHoit
in fact not never called but sometimes called !! my button is in a DataView (there is one button per line). i also have a PagingNavigator if i change the page in the paging navigator, getString and onResourceRequested are sometimes called on the first click. but never after. -- View this message

Re: display XML in a popup (or another window) wicket 6.9.1

2014-02-18 Thread BenHoit
i think you are right because when i clean my browser cache between each click, it works every time ! but, sorry, i don't know how to Append some random noise to the URL (src attribute) in onComponentTag(ComponentTag tag) -- View this message in context:

Thanks !

2014-02-18 Thread BenHoit
18.02.2014 05:06, BenHoit wrote: in fact not never called but sometimes called !! my button is in a DataView (there is one button per line). i also have a PagingNavigator if i change the page in the paging navigator, getString and onResourceRequested are sometimes called on the first click

Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
hi, i want to add noise to the url of a ResourceLink component (to avoid browser caching problem) ... i looked at Image#addAntiCacheParameter and try to put it in onComponentTag of my ResourceLink @Override protected void onComponentTag(ComponentTag tag) {

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
thanks, i modify my onComponentTag @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); String url = tag.getAttributes().getString(href); log.debug(URL = +url); url = url + antiCache=

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
yes i'm using popupSettings final String mime=application/xml; ByteArrayResource res = new ByteArrayResource(mime,dSOBean.getOrder()); ResourceLinkByteArrayResource resourceL= new ResourceLinkByteArrayResource(myF, res) { @Override

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
unfortunately getUrl is : protected final CharSequence getURL() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Add-noise-to-the-URL-of-ResourceLink-component-tp4664870p4664879.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Add noise to the URL of ResourceLink component

2014-03-10 Thread BenHoit
finally, it works with Sven's solution but tag html has to be as i can see in the link class (initially it was button in my html). I create a ResourceLinkWithAnticache like this : public class ResourceLinkWithAnticacheT extends ResourceLinkT { public ResourceLinkWithAnticache(String