[Seaside] How to return input from in external (non-seaside) form to a WAComponent?

Jason Johnson jbjohns at libsource.com
Thu Nov 2 20:11:09 UTC 2006


I'm confused.  If you leave the site, why do you expect them to ever
come back?  Does the site you forward to send them back somehow?  What
you might try to get what you want is an IFrame or something, so that
you aren't leaving your application.

Chuck Kasmire wrote:
> I am trying to direct input to a form that is outside
> of seaside and then bring that form input back into
> the component that 'called' it. In my attempts at
> hacking this I have come up with:
>
> someActionMethod
>   result := self session redirectTo: 'http://       
> localhost:8080/C:/formtest.html').
> "this works"
>
> self inform: 'You entered: ', result contents.
> "this does not work"
>
> This in fact does bring up my form in the browser. But
> the 'inform:' part is never seen.
>
> I defined a subclass of WAEntryPoint and specified its
> path as: 'FormInput'
>  
> In the form I defined its action as:  
> action="http://localhost:8080/seaside/FormInput"
> method="get"
>
> In the WAEntryPoint subclass I defined:
>
> handleRequest: aRequest
>
> 	| response s |
> 	s := WriteStream on: String new.
> 	aRequest fields associationsDo: [:assoc | s
> nextPutAll: '#', assoc key, '=', assoc value; cr ].
> 	response := WAResponse document: s contents mimeType:
> 'text/plain'.
> 	^response
>
> 'response' is seen in my Browser. What seems to be
> missing is some sort of linkage between the session
> and the entry point. Such that the Response created in
> the entry point is directed back as an 'answer' to the
> origional call to the form.
>
> Am I on the right track? Any suggestions?
>
> Thanks,
> -Chuck
>
>
>
>  
> __________________________________________________________________________________________
> Check out the New Yahoo! Mail - Fire up a more powerful email and get things done faster. 
> (http://advision.webevents.yahoo.com/mailbeta) 
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>   




More information about the Seaside mailing list