You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2009/05/25 19:11:06 UTC

DownloadLink

I was just reading the javadoc for DownloadLink and it says that it 
locks the PageMap, does this mean that the page becomes unresponsive 
during the download?

It mentions using a "shared resource" as an alternative. Is there 
example of this online somewhere?

Douglas

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


RE: DownloadLink

Posted by Douglas Ferguson <do...@douglasferguson.us>.
But how would this prevent the PageMap from getting blocked?

Would it be possible to somehow span a request that isn't tied to the same session i.e get the same behavior of a "non-wicket servlet" but still have it live inside the wicket application?

Douglas

-----Original Message-----
From: Alex Objelean [mailto:alex_objelean@yahoo.com] 
Sent: Monday, May 25, 2009 2:12 PM
To: users@wicket.apache.org
Subject: Re: DownloadLink


A shared resource can be added like this:

Application.get().getSharedResources().add("urlOfTheResource", new
WebResource() {
        @Override
        public IResourceStream getResourceStream() {
          return new PackageResourceStream(FlowPlayerPanel.class,
"ref/flowplayer-3.1.0.swf");
        }
});

Instead of webResource, you can have another implementation of Resource
which suites your needs.

Alex Objelean



Douglas Ferguson-2 wrote:
> 
> I was just reading the javadoc for DownloadLink and it says that it 
> locks the PageMap, does this mean that the page becomes unresponsive 
> during the download?
> 
> It mentions using a "shared resource" as an alternative. Is there 
> example of this online somewhere?
> 
> Douglas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/DownloadLink-tp23710131p23711709.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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


Re: DownloadLink

Posted by Alex Objelean <al...@yahoo.com>.
A shared resource can be added like this:

Application.get().getSharedResources().add("urlOfTheResource", new
WebResource() {
        @Override
        public IResourceStream getResourceStream() {
          return new PackageResourceStream(FlowPlayerPanel.class,
"ref/flowplayer-3.1.0.swf");
        }
});

Instead of webResource, you can have another implementation of Resource
which suites your needs.

Alex Objelean



Douglas Ferguson-2 wrote:
> 
> I was just reading the javadoc for DownloadLink and it says that it 
> locks the PageMap, does this mean that the page becomes unresponsive 
> during the download?
> 
> It mentions using a "shared resource" as an alternative. Is there 
> example of this online somewhere?
> 
> Douglas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/DownloadLink-tp23710131p23711709.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: DownloadLink (Javadoc)

Posted by Martijn Dashorst <ma...@gmail.com>.
Read the free downloadable bonus chapter 15 to WIA, downloadable from
http://wicketinaction.com/downloads

This explains all this stuff, including setting up your Eclipse
workspace from maven, and running the embedded Jetty server.

Martijn

On Tue, May 26, 2009 at 4:52 PM, David Brown
<db...@sexingtechnologies.com> wrote:
> Hello Steve, thanks, this worked. I imported the entire wicket 1.3.6 into Eclipse and a whole bunch of other things started working a whole lot better in the WIA Eclipse project. Since you got unlucky and I have you on the hook is there anyway of getting the mvn jetty:run to import into Eclipse such that I don't have to switch to a terminal or command window to redeploy to see the results of my changes. Maybe, somebody out there has a suggestion? Thanks and please advise, David.
>
>
>
> There are 10 kinds of people in this world: those who understand binary and those who don’t (Valid only for 2's complement).
>
> ----- Original Message -----
> From: "Steve Swinsburg" <s....@lancaster.ac.uk>
> To: users@wicket.apache.org
> Sent: Monday, May 25, 2009 5:10:57 PM GMT -06:00 US/Canada Central
> Subject: Re: DownloadLink (Javadoc)
>
> Hi David,
>
> You can get the Javadoc either by building it yourself from source via
> 'mvn javadoc:javadoc' or by issuing 'mvn eclipse:eclipse -
> DdownloadJavadocs=true' which will get the Javadoc and adjust your
> Eclipse classpath to link it up.
>
>
> cheers,
> Steve
>
>
> On 25/05/2009, at 10:54 PM, David Brown wrote:
>
>> Hello, it just so happens I have been looking for Wicket Javadoc.
>> the Wicket jar I have contains no javadoc. Please reply with the
>> source of the Wicket javadoc you are referencing. Please advise,
>> David.
>>
>> There are 10 kinds of people in this world: those who understand
>> binary and those who don’t (Valid only for 2's complement).
>>
>> ----- Original Message -----
>> From: "Douglas Ferguson" <do...@douglasferguson.us>
>> To: users@wicket.apache.org
>> Sent: Monday, May 25, 2009 12:11:06 PM GMT -06:00 US/Canada Central
>> Subject: DownloadLink
>>
>> I was just reading the javadoc for DownloadLink and it says that it
>> locks the PageMap, does this mean that the page becomes unresponsive
>> during the download?
>>
>> It mentions using a "shared resource" as an alternative. Is there
>> example of this online somewhere?
>>
>> Douglas
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: DownloadLink (Javadoc)

Posted by David Brown <db...@sexingtechnologies.com>.
Hello Steve, thanks, this worked. I imported the entire wicket 1.3.6 into Eclipse and a whole bunch of other things started working a whole lot better in the WIA Eclipse project. Since you got unlucky and I have you on the hook is there anyway of getting the mvn jetty:run to import into Eclipse such that I don't have to switch to a terminal or command window to redeploy to see the results of my changes. Maybe, somebody out there has a suggestion? Thanks and please advise, David.



There are 10 kinds of people in this world: those who understand binary and those who don’t (Valid only for 2's complement).

----- Original Message -----
From: "Steve Swinsburg" <s....@lancaster.ac.uk>
To: users@wicket.apache.org
Sent: Monday, May 25, 2009 5:10:57 PM GMT -06:00 US/Canada Central
Subject: Re: DownloadLink (Javadoc)

Hi David,

You can get the Javadoc either by building it yourself from source via  
'mvn javadoc:javadoc' or by issuing 'mvn eclipse:eclipse - 
DdownloadJavadocs=true' which will get the Javadoc and adjust your  
Eclipse classpath to link it up.


cheers,
Steve


On 25/05/2009, at 10:54 PM, David Brown wrote:

> Hello, it just so happens I have been looking for Wicket Javadoc.  
> the Wicket jar I have contains no javadoc. Please reply with the  
> source of the Wicket javadoc you are referencing. Please advise,  
> David.
>
> There are 10 kinds of people in this world: those who understand  
> binary and those who don’t (Valid only for 2's complement).
>
> ----- Original Message -----
> From: "Douglas Ferguson" <do...@douglasferguson.us>
> To: users@wicket.apache.org
> Sent: Monday, May 25, 2009 12:11:06 PM GMT -06:00 US/Canada Central
> Subject: DownloadLink
>
> I was just reading the javadoc for DownloadLink and it says that it
> locks the PageMap, does this mean that the page becomes unresponsive
> during the download?
>
> It mentions using a "shared resource" as an alternative. Is there
> example of this online somewhere?
>
> Douglas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


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


Re: DownloadLink (Javadoc)

Posted by Steve Swinsburg <s....@lancaster.ac.uk>.
Hi David,

You can get the Javadoc either by building it yourself from source via  
'mvn javadoc:javadoc' or by issuing 'mvn eclipse:eclipse - 
DdownloadJavadocs=true' which will get the Javadoc and adjust your  
Eclipse classpath to link it up.


cheers,
Steve


On 25/05/2009, at 10:54 PM, David Brown wrote:

> Hello, it just so happens I have been looking for Wicket Javadoc.  
> the Wicket jar I have contains no javadoc. Please reply with the  
> source of the Wicket javadoc you are referencing. Please advise,  
> David.
>
> There are 10 kinds of people in this world: those who understand  
> binary and those who don’t (Valid only for 2's complement).
>
> ----- Original Message -----
> From: "Douglas Ferguson" <do...@douglasferguson.us>
> To: users@wicket.apache.org
> Sent: Monday, May 25, 2009 12:11:06 PM GMT -06:00 US/Canada Central
> Subject: DownloadLink
>
> I was just reading the javadoc for DownloadLink and it says that it
> locks the PageMap, does this mean that the page becomes unresponsive
> during the download?
>
> It mentions using a "shared resource" as an alternative. Is there
> example of this online somewhere?
>
> Douglas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


Re: DownloadLink

Posted by David Brown <db...@sexingtechnologies.com>.
Hello, it just so happens I have been looking for Wicket Javadoc. the Wicket jar I have contains no javadoc. Please reply with the source of the Wicket javadoc you are referencing. Please advise, David.

There are 10 kinds of people in this world: those who understand binary and those who don’t (Valid only for 2's complement).

----- Original Message -----
From: "Douglas Ferguson" <do...@douglasferguson.us>
To: users@wicket.apache.org
Sent: Monday, May 25, 2009 12:11:06 PM GMT -06:00 US/Canada Central
Subject: DownloadLink

I was just reading the javadoc for DownloadLink and it says that it 
locks the PageMap, does this mean that the page becomes unresponsive 
during the download?

It mentions using a "shared resource" as an alternative. Is there 
example of this online somewhere?

Douglas

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


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