You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Beránek <ma...@martinberanek.cz> on 2013/08/06 21:41:13 UTC

Component for Applet

Hi,

I'am trying to write component similar to
http://mrhaki.blogspot.cz/2009/05/wicket-component-for-java-deployment.html
but I need to use JNLP for applet deployment. I write my own Resource
that generate JNLP file (it's xml, so I use JAXB and marschalling) and
I am also able generate script tag with appropriate content into html
page (onComponentTagBody).

My problem is url for resource. I don't know how to generate it - each
applet on my page (there can be more applets on one page) have to has
different JNLP so some shared resource can't be used.

Thanks for help

-- 
Martin Beránek

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


Re: Component for Applet

Posted by Martin Grigorov <mg...@apache.org>.
Hi,


On Tue, Aug 6, 2013 at 9:41 PM, Martin Beránek <ma...@martinberanek.cz>wrote:

> Hi,
>
> I'am trying to write component similar to
> http://mrhaki.blogspot.cz/2009/05/wicket-component-for-java-deployment.html
> but I need to use JNLP for applet deployment. I write my own Resource
> that generate JNLP file (it's xml, so I use JAXB and marschalling) and
> I am also able generate script tag with appropriate content into html
> page (onComponentTagBody).
>
> My problem is url for resource. I don't know how to generate it - each
> applet on my page (there can be more applets on one page) have to has
> different JNLP so some shared resource can't be used.
>

At http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ you may
see how a resource is mounted and depending on request parameter it
produces different response.
You can also see how you can get url to this resource.
I think you will just need to change the response content type and the
content itself.
Try it and come back if you have any questions.


>
> Thanks for help
>
> --
> Martin Beránek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>