download file inside panel caching tab

2009-10-01 Thread tubin gen
My page have several tabls all of them are panel cahcing tab   it worked
fine loading only once   , I added a new pancel caching tab   which has a
download link , here clicking on the link i should create a response
stream with byte array  and

here   is the code

setRedirect(false);
WebResponse response = (WebResponse) getResponse();
response.setAttachmentHeader(filename);
response.setLastModifiedTime(Time.now());
response.setContentType(application/octet-stream);
response.write(
new ByteArrayInputStream(filedata));
response.close();



immediately after this code is executed the tab reloads the content ,  the
tab has a  listview and its populateItems method is calledis therey any
way i can avoid this ?


Re: download file inside panel caching tab

2009-10-01 Thread Igor Vaynberg
listviews refresh on every render. you can use repeatingview if you
want to control/do the refreshing yourself.

-igor

On Thu, Oct 1, 2009 at 5:26 AM, tubin gen fachh...@gmail.com wrote:
 My page have several tabls all of them are panel cahcing tab   it worked
 fine loading only once   , I added a new pancel caching tab   which has a
 download link , here clicking on the link i should create a response
 stream with byte array  and

 here   is the code

        setRedirect(false);
        WebResponse response = (WebResponse) getResponse();
        response.setAttachmentHeader(filename);
        response.setLastModifiedTime(Time.now());
        response.setContentType(application/octet-stream);
        response.write(
                new ByteArrayInputStream(filedata));
        response.close();



 immediately after this code is executed the tab reloads the content ,  the
 tab has a  listview and its populateItems method is called    is therey any
 way i can avoid this ?


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