<param wicket:id="filename" />
add(new WebMarkupContainer("filename").add(new
SimpleAttributeModifier("value", ...)));
On Wed, Jun 10, 2009 at 9:57 AM, Bas Vroling<[email protected]> wrote:
> If I set setRenderBodyOnly(true) it doesn't work either, and then it
> shouldn't complain anymore. (wicket is the one complaining, not the applet
> btw)
>
>
>
> On 10 Jun, at 09:53, Dorothée Giernoth wrote:
>
>> b/c you can't put a tag into a tag ... as it says: it is a value and it
>> needs a value, not a tag ... xml doesn't work that way
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Bas Vroling [mailto:[email protected]]
>> Gesendet: Mittwoch, 10. Juni 2009 09:41
>> An: [email protected]
>> Betreff: inserting urls in script variables
>>
>> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]