Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-06 Thread OC
that, since subcomponents get awaken during appendToResponse -- namely, after the root component might have rendered the value into the page already. I did not really find any solution; rather worked around the problem by moving the value to the end of the page, ensuring thus all the subc

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-06 Thread Robert B. Hanviriyapunt
is via the bindings which are like the >> public interface of the component. > > On 5. 2. 2015, at 23:01, Robert B. Hanviriyapunt > wrote: > >> I can’t imagine what “something reasonable” would be that would need to fire >> in a subcomponent before the start o

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-06 Thread Samuel Pelletier
apunt a > écrit : > > I can’t imagine what “something reasonable” would be that would need to fire > in a subcomponent before the start of the appendToResponse (assuming that the > component structure is a new structure and not the same as the one that might > have previously f

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-05 Thread OC
y. The > only communication between them is via the bindings which are like the public > interface of the component. On 5. 2. 2015, at 23:01, Robert B. Hanviriyapunt wrote: > I can’t imagine what “something reasonable” would be that would need to fire > in a subcomponent before the sta

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-05 Thread Robert B. Hanviriyapunt
I can’t imagine what “something reasonable” would be that would need to fire in a subcomponent before the start of the appendToResponse (assuming that the component structure is a new structure and not the same as the one that might have previously fired takeValuesFromRequest). Can you give

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-05 Thread Chuck Hill
That does not look right. Everything should get awoken. Are you caching component references in instance variables or something crazy? Are you allying appendToResponse on a page that has not been awoken? Chuck On 2015-02-05, 7:58 AM, "OC" wrote: Hello there, looks like not even

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-05 Thread Ramsey Gurley
, OC wrote: > Hello there, > > looks like not even after all those years I can properly wrap my head around > the R/R loop. I sort of thought all (sub)components get awake first; (then > other methods not important here) and then all of them get appendToResponse. > > Nope.

R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-05 Thread OC
Hello there, looks like not even after all those years I can properly wrap my head around the R/R loop. I sort of thought all (sub)components get awake first; (then other methods not important here) and then all of them get appendToResponse. Nope. After my code behaved weirdly, I've

Re: Problem with download link in 'appendToResponse'

2012-04-26 Thread Henrique Gomes
You can have a D2W component with a link to downloadable content, but that link needs to return a component that only vends the downloadable file. At least that's the way I've done always. Create an empty component (does not need any html, just the .java and .api) and place the append

Problem with download link in 'appendToResponse'

2012-04-25 Thread Juergen Lorenz Simon
Hi, I'm trying to generate some file content on the fly and return it when the user clicks a link. I'm doing this in a D2W context, the component is a propoerty level component. I had some success by overwriting appendToResponse like so: public void append

Re: appendToResponse ??

2010-05-04 Thread Farrukh Ijaz
> I want the page java to go to the database for data when it shows so I am > hoping to add: > > public void appendToResponse(WOResponse response, WOContext context) { > NSLog.out.appendln("appendToResponse called"); > > EOQualifier ope

Re: appendToResponse ??

2010-05-04 Thread Theodore Petrosky
My bad... I forget the.. super.appendToResponse(response, context); on the last line.. Ted --- On Tue, 5/4/10, Theodore Petrosky wrote: > From: Theodore Petrosky > Subject: appendToResponse ?? > To: webobjects-dev@lists.apple.com > Date: Tuesday, May 4, 2010, 4:57 PM

appendToResponse ??

2010-05-04 Thread Theodore Petrosky
I am using an AjaxModalDialog with an action that returns the 'nextPage'. (right from the ajax examples)... I want the page java to go to the database for data when it shows so I am hoping to add: public void appendToResponse(WOResponse response, WOContext context) { NSLog.ou

Re: Inserting a new sub-component (programmatically) in appendToResponse()

2009-06-11 Thread Mr. Pierre Frisch
he primary namespace. Cheers Pierre -- Pierre Frisch pie...@apple.com On Jun 8, 2009, at 5:58, Mark Gowdy wrote: Hello, I need to insert a new sub-component into a page during the request- response cycle (probably within appendToResponse() ) I thought I had achieved this, but all the links

Re: Inserting a new sub-component (programmatically) in appendToResponse()

2009-06-08 Thread Lachlan Deck
On 08/06/2009, at 10:58 PM, Mark Gowdy wrote: I need to insert a new sub-component into a page during the request- response cycle (probably within appendToResponse() ) I thought I had achieved this, but all the links on the page are now broken (and other general weirdness unfolds) This is

Inserting a new sub-component (programmatically) in appendToResponse()

2009-06-08 Thread Mark Gowdy
Hello, I need to insert a new sub-component into a page during the request- response cycle (probably within appendToResponse() ) I thought I had achieved this, but all the links on the page are now broken (and other general weirdness unfolds) This is the essence what I need to achieve (I

Re: appendToResponse

2009-02-02 Thread Atli Páll Hafsteinsson
: > response.setContent(r.content()); > > Regards, > Dennis > > Atli Páll Hafsteinsson schrieb: >> Woha ...! That code block is unreadably formatted (I blame entourage and the >> cold weather), lets try again: >> >>public void appendToResponse( WO

Re: appendToResponse

2009-02-02 Thread Atli Páll Hafsteinsson
ry again: >> >>public void appendToResponse( WOResponse response, WOContext >> context ) { > > > I'm not sure what's wrong with your code but the approach I usually > take is something like this: > > ===SecureWrapper.html > > > > > >

Re: appendToResponse

2009-02-02 Thread Dennis Cruel
entourage and the cold weather), lets try again: public void appendToResponse( WOResponse response, WOContext context ) { logger.debug( "Entering appendToResponse in ApplicationLook" ); WOComponent currentPage = context.page(); if( (((Session)session()).user

Re: appendToResponse

2009-02-02 Thread John Ours
On Feb 2, 2009, at 8:25 AM, Atli Páll Hafsteinsson wrote: Woha ...! That code block is unreadably formatted (I blame entourage and the cold weather), lets try again: public void appendToResponse( WOResponse response, WOContext context ) { I'm not sure what's wrong with you

Re: appendToResponse

2009-02-02 Thread Stephane Guyot
e, in appendToResponse, you can only append and not replace by another one. ( perhaps it's possible , but i don't remember ) HTH, Stephane Le 2 févr. 09 à 13:38, Atli Páll Hafsteinsson a écrit : Hi guys In my attempt to make a user signin mechanism I override appendToResponse

Re: appendToResponse

2009-02-02 Thread Atli Páll Hafsteinsson
Woha ...! That code block is unreadably formatted (I blame entourage and the cold weather), lets try again: public void appendToResponse( WOResponse response, WOContext context ) { logger.debug( "Entering appendToResponse in ApplicationLook" ); WOComponent c

appendToResponse

2009-02-02 Thread Atli Páll Hafsteinsson
Hi guys In my attempt to make a user signin mechanism I override appendToResponse in a component that wrappes every page in my app and check if the user is signed in and if not try to display the content of my login page (the login page is not wrapped), code: public void appendToResponse

appendToResponse in a separate thread (outta context)

2008-07-23 Thread Ondra Cada
Hello all, I have to update an old WO application to be more responsive. I have found that there are a lot of pages there whose appendToResponse is just plain too slow. Since re-writing them all to be either snappier or to use explicitly LongResponsePage would be quite a task I could do

SOLVED (*really*, this time!): Re: returning PDF via appendToResponse

2007-12-14 Thread Patrick Robinson
se the API documentation for setIsPageRefreshOnBacktrackEnabled) when the app receives a request that it has already received, the first two phases of the req- res loop (takeValues and invokeAction) do not occur. Only the third phase, appendToResponse, is called; that is, the response page

Re: SOLVED: Re: returning PDF via appendToResponse

2007-12-14 Thread Daniele Corti
onent fileComponent = pageWithName("FileDownloadComponent"); > fileComponent.setSelectedThing(aThing); > return fileComponent; > } > > Then in FileDownloadComponent.appendToResponse(), you return the PDF: > > public void appendToResponse( ... ) { > res.setHeader(

SOLVED: Re: returning PDF via appendToResponse

2007-12-13 Thread Patrick Robinson
SelectedThing(aThing); return fileComponent; } Then in FileDownloadComponent.appendToResponse(), you return the PDF: public void appendToResponse( ... ) { res.setHeader(mimeType, "content-type"); res.setHeader("attachment; filename=" + filename, "content- disposi

returning PDF via appendToResponse

2007-12-13 Thread Patrick Robinson
I've seen lots of examples for returning a PDF by fiddling with the WOResponse in a component's appendToResponse() method. Code like this: public void appendToResponse(WOResponse res, WOContext con) { super.appendToResponse(res, con); if (som

Re: appendToResponse

2007-04-17 Thread Guido Neitzer
On 17.04.2007, at 09:19, Guido Neitzer wrote: super.appendToResponse(response,context); Do you have any stuff in your component (html/wod)? If yes, this is generated in "super.appendToResponse(response,context);". Hmmm, stupid Guido. Not true, as you replace the content wit

Re: appendToResponse

2007-04-17 Thread Guido Neitzer
On 17.04.2007, at 08:05, WIESEN Bruno wrote: super.appendToResponse(response,context); Do you have any stuff in your component (html/wod)? If yes, this is generated in "super.appendToResponse(response,context);". cug ___ Do not po

Re: appendToResponse

2007-04-17 Thread Daniele Corti
2007/4/17, WIESEN Bruno <[EMAIL PROTECTED]>: Hello, In my app, I create an excel sheet (with Jakarta POI) and I want to make it downloadable just after it has been created (the user has to click a button to create a file) So i try to override appendToResponse like this but in the file th

appendToResponse

2007-04-17 Thread WIESEN Bruno
Hello, In my app, I create an excel sheet (with Jakarta POI) and I want to make it downloadable just after it has been created (the user has to click a button to create a file) So i try to override appendToResponse like this but in the file there is some html tags...and not the content of

Re: PDF and appendToResponse

2007-02-27 Thread Kieran Kelleher
Stream inStream, int contentSize ) { _inputStreamToDownload = inStream; streamingContentSize = contentSize; } public void appendToResponse( WOResponse aResponse, WOContext aContext ) { super.appendToResponse( aResponse, aContext ); // Set default enc

Re: PDF and appendToResponse

2007-02-27 Thread Jacky Gagnon
Hi Gino, I never used PD4ML but you probably need these 2 lines : response.setContent(yourNSData); response.setHeader("application/pdf", "Content-Type"); On 07-02-27, at 11:56, Gino Pacitti wrote: Hi All I am using the PD4ML packages and can easily save PDF's to disk - but i was wondering i

PDF and appendToResponse

2007-02-27 Thread Gino Pacitti
Hi All I am using the PD4ML packages and can easily save PDF's to disk - but i was wondering if anyone had used it a successfully was able to display the PDF to browser? I have this snippet: try{ PD4ML html = new PD4ML(); StringReader sr = new StringReader

Re: Help please: ClassCastException during appendToResponse

2007-02-11 Thread Lachlan Deck
Hi there, On 10/02/2007, at 12:42 AM, Kieran Kelleher wrote: Hard to see with this generic stack trace It was... Here is a guess . If content of MyAppComponent is causing the problem, then check by temporarily surrounding most or all of the body content with a WOConditional bou

Re: ClassCastException during appendToResponse

2007-02-09 Thread Baiss Eric Magnusson
: ClassCastException during appendToResponse To: Lachlan Deck <[EMAIL PROTECTED]> Cc: WebObjects-Dev Apple Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hard to see with this generic stack trace Here is a guess . If content of MyApp

Re: Help please: ClassCastException during appendToResponse

2007-02-09 Thread Kieran Kelleher
Hard to see with this generic stack trace Here is a guess . If content of MyAppComponent is causing the problem, then check by temporarily surrounding most or all of the body content with a WOConditional bound to "false" and see it the page renders without error. If it does work, t

Re: Help please: ClassCastException during appendToResponse

2007-02-09 Thread Mike Schrag
it would seem that you passed in a value in the "queryDictionary" binding on WOHyperlink that was not an instanceof NSDictionary. ms On Feb 9, 2007, at 2:05 AM, Lachlan Deck wrote: I'm stuck and need help really quick please :-) Could somebody please help explain why the following might occ

Help please: ClassCastException during appendToResponse

2007-02-08 Thread Lachlan Deck
I'm stuck and need help really quick please :-) Could somebody please help explain why the following might occur. Much appreciated... with regards, -- Lachlan Deck 2007-02-09 17:53:30,205 [WorkerThread2 ] ERROR com.ish.webobjects.appserver.ISHApplication - Handling exception java.lang.

Re: secureWrapper, appendToResponse blueprint / sample code needed...

2006-08-14 Thread Mac Campbell
books might be the same way... but I am looking forward to the forth coming: Beginning Xcode and WebObjects: From Novice to Professional. So once you pointed out that I don't actually call appendToResponse, I was off to a good start... after hacking away for a bit I found this piece of

Re: secureWrapper, appendToResponse blueprint / sample code needed...

2006-08-14 Thread Anjo Krank
ession and define isLoggedIn as authenticatedUser() != null. That User object always comes in handy later... appendToResponse() seems to be the chosen method of redirecting... It is the phase in the request - response loop that redirecting is appropriately done in. which is one o

Re: secureWrapper, appendToResponse blueprint / sample code needed...

2006-08-14 Thread Chuck Hill
bly better keep the User object in the session and define isLoggedIn as authenticatedUser() != null. That User object always comes in handy later... appendToResponse() seems to be the chosen method of redirecting... It is the phase in the request - response loop that redirecting is app

secureWrapper, appendToResponse blueprint / sample code needed...

2006-08-13 Thread Mac Campbell
” component java class file, that pages that need to be secured inherit from. We also throw a boolean, "isLoggedIn", in the session class that the “login.wo” sets to true after a users credentials have been verified. appendToResponse() seems to be the chosen method of redirecting... which

Re: appendToResponse & anchors

2006-06-26 Thread Asa Hardcastle
I think the "#" in your anchor name needs to be removed.asaOn Jun 26, 2006, at 10:16 PM, Baiss Eric Magnusson wrote: ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/

appendToResponse & anchors

2006-06-26 Thread Baiss Eric Magnusson
e code in the wiki page for my <http://en.wikibooks.org/wiki/Programming:WebObjects/ Web_Applications/Development/Examples/Anchors> BTW: I think the wiki page should be changed to call appendToResponse> regardless, but I tried both ways and don't discern a difference in how it beh