Re: [Wicket-user] Proxessing uncaught exceptions

2006-07-11 Thread Frank Bille Jensen
Yes, take a look at IApplicationSettings.setInternalErrorPage(). Frank Bille On Tue, 2006-07-11 at 09:46 +0300, Tymur Porkuyan wrote: > Is it possible to override standard Wicket exception page? > > I would like to throw exceptions on lower levels and have a generic > error page that will dis

Re: [Wicket-user] Proxessing uncaught exceptions

2006-07-11 Thread Frank Bille Jensen
If you want to get hold on the actual exception that has been thrown you need to override the ExceptionResponseStrategy in DefaultWebRequestCycleProcessor. Do something like this: In you WebApplication extended class: @Override protected IRequestCycleProcessor newRequestCycleProcessor() {

[Wicket-user] wicket.markup.html.include.Include / encoding error

2006-07-11 Thread Nino Wael
Hi   Im a little curious about this. I have an file stream which is delivered(actually a html file) to me, I then write the file as a temporary file:   String path = ((WebRequest) page.getRequest())       

[Wicket-user] wizard sample - same URL

2006-07-11 Thread jan_bar
Hi, the wicket wizard component (http://www.wicket-library.com/wicket-examples/wizard) takes advantage of using the same URL for more (wizard) pages. The browser's Back button then skips all wizard pages with same URL and jumps to the page before the wizard. I want to ask if this functionality is

Re: [Wicket-user] Proxessing uncaught exceptions

2006-07-11 Thread Igor Vaynberg
or simply override requestcycle.onruntimeexception-IgorOn 7/11/06, Frank Bille Jensen <[EMAIL PROTECTED] > wrote:If you want to get hold on the actual exception that has been thrown you need to override the ExceptionResponseStrategy inDefaultWebRequestCycleProcessor. Do something like this:In you W

Re: [Wicket-user] wizard sample - same URL

2006-07-11 Thread Igor Vaynberg
i believe this is part of the browser implementation. at least as of a while ago all browsers except opera behaved like that. i dont know about opera 9-IgorOn 7/11/06, jan_bar <[EMAIL PROTECTED]> wrote: Hi,the wicket wizard component(http://www.wicket-library.com/wicket-examples/wizard) takes adva

[Wicket-user] Downloading a file generated on the fly

2006-07-11 Thread Levy, Jeremy
I would like to create a text file on the fly and then create a link which will initiate a download of this file.   I checked out the example at http://www.wicket-wiki.org.uk/wiki/index.php/UploadDownload#Downloading_Images.  I am thinking that I can do something similar but extend Dynamic

Re: [Wicket-user] Downloading a file generated on the fly

2006-07-11 Thread Igor Vaynberg
dont take this liteteraly but here it isadd(new Link("link) {    onclick() {   String txt=generatefile();   WebRequestCycle.get().setResponseTarget(new ResponseTarget() {  void respond() { WebResponse r=WebRequestCycle.get().getResponse();   

Re: [Wicket-user] Downloading a file generated on the fly

2006-07-11 Thread Levy, Jeremy
Thanks Sean and Igor, based on both your responses I've come up with roughly the following which is working:       final String filename = "thefile.csv";    final String contentType = "text/csv";    final String content = "the,content,is,this";

Re: [Wicket-user] Downloading a file generated on the fly

2006-07-11 Thread Igor Vaynberg
while this works it is a bit hacky. it would be better to let the requesttarget's response method produce the output.-IgorOn 7/11/06, Levy, Jeremy <[EMAIL PROTECTED]> wrote: Thanks Sean and Igor, based on both your responses I've come up with roughly the following which is working:      

Re: [Wicket-user] Downloading a file generated on the fly

2006-07-11 Thread Levy, Jeremy
I'd like to do it the clean way...  When I do this:       RequestCycle.get().setRequestTarget(new StringRequestTarget("hello"){    public void respond(){    String txt = "content";    WebResponse r=(WebR

Re: [Wicket-user] Downloading a file generated on the fly

2006-07-11 Thread Igor Vaynberg
string target already does the streams.copy thing in its respond so you can just dorespond() { ... r.setattachmentheader(..); r.setContentType(..) super.respond(); }or do how i showed you in the first place using an anonymous imple of IRequestTarget directly. IRequestTarget.detach() { } IRequestTar

Re: [Wicket-user] SSL

2006-07-11 Thread Joe Toth
Using the ONE_PASS method rendering strategy everything works fine now.  Did you have to do the same?ThanksOn 7/10/06, [EMAIL PROTECTED] Imam <[EMAIL PROTECTED]> wrote: Hi,I had a similar problemI decided not to use that RequiredSSL method.Instead i maintain an array of page classes that require h

[Wicket-user] Mark up inheritance question

2006-07-11 Thread Jin Zhu
Title: Mark up inheritance question Hi, I have a child class B inheriting from a modal window with certain functionality A. With the exception of a few additional components in the child class B, the functionality of class A and B are similar. Is there a way to do this using mark up inherit

Re: [Wicket-user] Downloading a file generated on the fly

2006-07-11 Thread Levy, Jeremy
Cool thanks,  I used the anonymous IRequestTarget strategy... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor VaynbergSent: Tuesday, July 11, 2006 1:11 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Downloading a file generated on the fly string tar

[Wicket-user] Tooltip Suggestions

2006-07-11 Thread Jeff Lin
I'm starting to look into using dynamic tooltips in our Wicket application, and was wondering if anybody had some basic advice or tips to get us going in the right direction. Does the Dojo plugin work with the latest version of Wicket? Has anybody else implemented a dynamic tooltip widget?

Re: [Wicket-user] Tooltip Suggestions

2006-07-11 Thread Igor Vaynberg
here are some _javascript_ libs you can use:http://del.icio.us/ivaynberg/tooltip-IgorOn 7/11/06, Jeff Lin <[EMAIL PROTECTED]> wrote:I'm starting to look into using dynamic tooltips in our Wicket application, and was wondering if anybody had some basic advice ortips to get us going in the right dir

[Wicket-user] Objects.cloneObject

2006-07-11 Thread Ittay Dror
If i try to clone an object that is not in the ClassLoader of the wicket jar, this will fail on ClassNotFound I don't know enough about serialization, but is there a way to use object.getClassLoader to do the deserialization? Thanks, ittay -- === Ittay Dror, C

Re: [Wicket-user] Is it possible to abort a request?

2006-07-11 Thread Adam Smyczek
Thanks, exactly what I was looking for. Adam On Jul 10, 2006, at 6:27 PM, Eelco Hillenius wrote: > Yep. Look at AbortException and subclasses. You might be looking for > AbortWithHttpStatusException. > > Eelco > > > > On 7/10/06, Adam Smyczek <[EMAIL PROTECTED]> wrote: >> Hi All, >> >> This is pr

Re: [Wicket-user] Objects.cloneObject

2006-07-11 Thread Johan Compagner
We already have something implemented that classes can be loaded from other places:// This overide is required to resolve classess inside in                    // different                    // bundle, i.e.                    // The classess can be resolved by OSGI classresolver                  

Re: [Wicket-user] SSL

2006-07-11 Thread [EMAIL PROTECTED] Imam
The code had a small little fix:There is an extra condition in the if condition: else if( pageClass != null && httpServletRequest.isSecure () && !isSecurityRequired ) {Using the ONE_PASS method rendering strategy everything works fine now.  Did you have to do the same?Yes had to use the  One pass