Hi guys,

I'm trying to insert a download url in a piece of template code. The template part looks like this:

<wicket:panel>
        <span wicket:id="familyName"></span>
<applet code="jalview.bin.JalviewLite" width="100%" height="750" archive="jalviewApplet.jar">
                <param name="file" value="{{URL HERE}}">
                <param name="embedded" value="true"/>
                <param name="showFullId" value="false"/>
        </applet>
</wicket:panel>

The applet show a multiple sequence alignment that I would like to be retrieved from wicket. In my java code I have created a link that downloads the file. This works fine if I show the link on a page and click on it:

DownloadLink dlink = new DownloadLink("downloadMsf", currentJalviewAlignment) {
                @Override
                public void onClick() {
                        String alignment = (String) 
currentJalviewAlignment.getObject();
                        byte[] bytes = alignment.getBytes();
getRequestCycle().setRequestTarget(new AlignmentRequestTarget(bytes, "alignment" + ".fasta"));
                }
        };

When I try to do the obvious, replace the {{URL_HERE}} part with <span wicket:id="downloadMsf"></span> it complains about non-valid XML and such.

Any ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to