finally, it works with Sven's solution but tag html has to be as i can see
in the link class (initially it was in my html).
I create a ResourceLinkWithAnticache like this :
public class ResourceLinkWithAnticache extends ResourceLink
{
public ResourceLinkWithAnticache(String id, IResour
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.
---
yes i'm using popupSettings
final String mime="application/xml";
ByteArrayResource res = new ByteArrayResource(mime,dSOBean.getOrder());
ResourceLink resourceL= new
ResourceLink("myF", res) {
@Override
protected void onCompone
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 + "antiCac
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) {
super.onC
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 someti
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:
http://apache-wicket.1842946.n4.nabble.c
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
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 OdyReqTargetP
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:
http://apache-wicket.1842946.n4.nabble.com/display-XML-in-a-popup-or-another-window-wicket-6-9-
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 ext
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
12 matches
Mail list logo