<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>HA: [Seaside] Can't get debug link - please help</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>many thanks<BR>
You really helped<BR>
<BR>
-----Исходное сообщение-----<BR>
От: seaside-bounces@lists.squeakfoundation.org от имени Nick Ager<BR>
Отправлено: Вс, 23.05.2010 21:44<BR>
Кому: Seaside - general discussion<BR>
Тема: Re: [Seaside] Can't get debug link - please help<BR>
<BR>
Hi Alexey,<BR>
<BR>
I'm afraid you've come across a configuration bug caused by the order in<BR>
which loaded classes are initialized.<BR>
There are three solutions:<BR>
1) In a workspace execute: WAWalkbackErrorHandler initialize<BR>
This will ensure that all applications you register in the future will<BR>
provide a walkback error.<BR>
2) open <A HREF="http://localhost:8080/config">http://localhost:8080/config</A><BR>
select "test" - or any application you've registered<BR>
Under the "filters" section press the "configure" button<BR>
>From the "Exception Handler" selection list select: WAWalkbackErrorHandler,<BR>
(or experiment with different handlers)<BR>
Click "OK"<BR>
3) to do the above programmatically execute the following in a workspace:<BR>
| app |<BR>
app := WADispatcher default handlerAt: 'test'.<BR>
app filter configuration takeValue: WAWalkbackErrorHandler forAttribute:<BR>
(app filter configuration attributeAt: #exceptionHandler).<BR>
<BR>
Hope this helps<BR>
<BR>
Nick<BR>
<BR>
2010/5/23 Каменев А.Н. <kamenew@apk-invest.com><BR>
<BR>
><BR>
> Hello!<BR>
><BR>
><BR>
> Pharo 1.0 and Seaside 3.0<BR>
><BR>
><BR>
> 1) WAComponent subclass: #StTestComponent<BR>
><BR>
> 2) renderContentOn: html<BR>
> html text: self getText.<BR>
><BR>
> 3) getText<BR>
> nil test.<BR>
> ^'Hello world !!!'.<BR>
><BR>
> 4) WAAdmin register: StTestComponent asApplicationAt: 'test'.<BR>
><BR>
> 5) Tools/Seaside Control Panel<BR>
> add adaptor: WAComancheAdaptor<BR>
> start on 8080 (set Debug mode)<BR>
><BR>
> 6) <A HREF="http://localhost:8080/test">http://localhost:8080/test</A><BR>
><BR>
> MessageNotUnderstood: receiver of "test" is nil<BR>
><BR>
> Your request could not be completed. An exception occurred.<BR>
><BR>
><BR>
> 7) Page does not contain link to debug !!!(<BR>
><BR>
> what am I doing wrong ?<BR>
><BR>
><BR>
> With best regards<BR>
> Alexey Kamenew<BR>
><BR>
> _______________________________________________<BR>
> seaside mailing list<BR>
> seaside@lists.squeakfoundation.org<BR>
> <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
><BR>
><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>