Re: WROX chapter 5, pg 150 - compile error?

2007-03-28 Thread Chuck Hill
On Mar 28, 2007, at 12:11 PM, Jeremy Matthews wrote: Anyone get the example to compile correctly at the end of ch. 5? I keep getting the :"Cannot find symbol" on this (second) line: // value returned by the function sales = (Number)result.ObjectForKey("sales"); objectForKey, lower-case O at

WROX chapter 5, pg 150 - compile error?

2007-03-28 Thread Jeremy Matthews
Anyone get the example to compile correctly at the end of ch. 5? I keep getting the :"Cannot find symbol" on this (second) line: // value returned by the function sales = (Number)result.ObjectForKey("sales"); Thanks, j ___ Do not post admin requests

Re: Returning a PDF file

2007-03-28 Thread Johann Werner
Thanks Daniele, using a DA has resolved the problem. Don't know why but apparently these are handled differently by Apache/WOAdaptor/WO (?). Am 28.03.2007 um 18:00 schrieb Daniele Corti: 2007/3/28, Johann Werner <[EMAIL PROTECTED]>: I found the cause of the problems to correctly display

Re: Returning a PDF file

2007-03-28 Thread Daniele Corti
2007/3/28, Johann Werner <[EMAIL PROTECTED]>: I found the cause of the problems to correctly display an inline pdf. Apparently the header information "application/pdf" is overwritten by Apache to "text/html". I suppose that it does so because the URL doesn't end with ".pdf" but ends with the con

Re: Returning a PDF file

2007-03-28 Thread Mark Morris
Just to be clear, I also still include the content-disposition header. So the file name is in the headers twice. -- Mark On Mar 28, 2007, at 10:51 AM, Mark Morris wrote: Looking at my generic PDF code (from 4 years ago it appears, wow...), it looks like I'm doing almost exactly what George

Re: Returning a PDF file

2007-03-28 Thread Mark Morris
Looking at my generic PDF code (from 4 years ago it appears, wow...), it looks like I'm doing almost exactly what George suggested, but my content-type header is different: response.setHeader( "application/pdf; name=\"" + fileName () + "\"", "content-type" ); (Where fileName()

Re: Returning a PDF file

2007-03-28 Thread Johann Werner
I found the cause of the problems to correctly display an inline pdf. Apparently the header information "application/pdf" is overwritten by Apache to "text/html". I suppose that it does so because the URL doesn't end with ".pdf" but ends with the context ID. How can I prevent Apache from ig

Re: Returning a PDF file

2007-03-28 Thread George Domurot
Johann: I believe here's the entire list of method calls you want within appendToResponse for a PDF response: aResponse.disableClientCaching(); aResponse.removeHeadersForKey("cache-control"); aResponse.removeHeadersForKey("pragma"); aResponse.setHeader("applicati

Re: WOSortOrderManyKey

2007-03-28 Thread Robert Walker
I haven't actually tried using the component, but from the documentation it appears to me that the key list should be a simple set of strings that become choices in a popup button. fOrderKeyList = new NSArray(new Object[] {"nomWeb", "prixVente"}); Then connect the WOSortOrderManyKey up to yo

Re: Returning a PDF file

2007-03-28 Thread Johann Werner
Thanks for the fast reply. I took the call to super.appendToResponse out of the code. But now unfortunately Safari shows the ASCII content of the pdf file in the window or - by setting the header to attachment - downloads it to a xyz.pdf.html file. Firefox in contrast saves it in the correc

Re: Returning a PDF file

2007-03-28 Thread Daniele Corti
2007/3/28, Johann Werner <[EMAIL PROTECTED]>: Hi, I have some trouble returning a PDF file that I am creating on the fly to a browser. I set the header information as noted on the wikibooks website to: public void appendToResponse(WOResponse aResponse, WOContext aContext) { super.app

Returning a PDF file

2007-03-28 Thread Johann Werner
Hi, I have some trouble returning a PDF file that I am creating on the fly to a browser. I set the header information as noted on the wikibooks website to: public void appendToResponse(WOResponse aResponse, WOContext aContext) { super.appendToResponse(aResponse, aContext);

WOSortOrderManyKey

2007-03-28 Thread WIESEN Bruno
Hello, I use a WOSortOrderManyKey to sort my WODisplayGroup but i can"t get it work correctly... Here is how I do this : First, in WOBuilder, I added a WOSortOrderManyKey in a WOForm with binding multipleSubmit= true Then, I bind my displayGroup and my keyList Here is my