You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dieter Bogdoll <bo...@googlemail.com> on 2010/12/16 09:31:26 UTC
Custom Component
Hello Wicket users,
I have a question about custom components. I need some more interactive
behaviour for this component
and decided to use a java applet for this. The user of the component
shouldn't be aware of that
fact. This component should display some data using JFreeChart. After the
applet is started it should
load some data via an input stream and display this data.
My idea was that the user has to overwrite a method in my custom component
which delivers this stream.
But how can I access now this stream from the applet, e.g. how can I create
an URL which points to
my component so that this method of the user is called? Thats my real
question: how to get a URL which
downloads a stream.
I think the principle would be like the image wicket tag. Where the image
wicket component provides an url
for the browser to download the image data. I tried to understand how it
works, but I didn't found much of
documentation for this? Perhaps there is some documentation and I only need
some pointer to them?
Best regards,
Dieter
Re: Custom Component
Posted by Benedikt Schlegel <co...@googlemail.com>.
Hi Dieter,
i think you might want to have a look at the following:
https://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html
So long,
Benedikt
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Custom Component
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Dieter,
Maybe you could use a technique similar to the one shown at [1]. That
is, make something on your page implement IResourceListener an use
that as a context to serve your data.
Regards,
Ernesto
1-https://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html
On Thu, Dec 16, 2010 at 9:31 AM, Dieter Bogdoll <bo...@googlemail.com> wrote:
> Hello Wicket users,
>
> I have a question about custom components. I need some more interactive
> behaviour for this component
> and decided to use a java applet for this. The user of the component
> shouldn't be aware of that
> fact. This component should display some data using JFreeChart. After the
> applet is started it should
> load some data via an input stream and display this data.
>
> My idea was that the user has to overwrite a method in my custom component
> which delivers this stream.
> But how can I access now this stream from the applet, e.g. how can I create
> an URL which points to
> my component so that this method of the user is called? Thats my real
> question: how to get a URL which
> downloads a stream.
>
> I think the principle would be like the image wicket tag. Where the image
> wicket component provides an url
> for the browser to download the image data. I tried to understand how it
> works, but I didn't found much of
> documentation for this? Perhaps there is some documentation and I only need
> some pointer to them?
>
> Best regards,
> Dieter
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org