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
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
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
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
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
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
, 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.
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
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
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
> 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
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
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
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
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
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
:
> 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
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
>
>
>
>
>
>
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
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
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
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
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
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
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
onent fileComponent = pageWithName("FileDownloadComponent");
> fileComponent.setSelectedThing(aThing);
> return fileComponent;
> }
>
> Then in FileDownloadComponent.appendToResponse(), you return the PDF:
>
> public void appendToResponse( ... ) {
> res.setHeader(
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
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
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
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
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
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
Stream inStream, int
contentSize ) {
_inputStreamToDownload = inStream;
streamingContentSize = contentSize;
}
public void appendToResponse( WOResponse aResponse, WOContext
aContext ) {
super.appendToResponse( aResponse, aContext );
// Set default enc
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
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
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
: 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
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
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
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.
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
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
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
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
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/
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
46 matches
Mail list logo