Sam Gendler wrote:
> Is there any way to change the behaviour for exceptions in an
> AjaxForm.  I use a mix of regular Forms and AjaxForms and it drives me
> nuts that exception handling isn't consistent between them.  I do
> periodically do cycle.activate(someNewPage) during an AjaxResponse,
> and it does what I would expect (completely replace the contents of
> the browser page), so could this mechanism be used to deliver an error
> message the same way?
>   

Here's how to redirect:
http://fisheye3.cenqua.com/browse/tacos/tacos-4.0/trunk/tacos-core/src/java/net/sf/tacos/ajax/impl/AjaxDirectServiceImpl.java?r=368#l315

Here's how to build your exception presenter:
http://fisheye3.cenqua.com/browse/tacos/tacos-4.0/trunk/tacos-core/src/java/net/sf/tacos/ajax/impl/AjaxExceptionPresenter.java?r=368

Here's how to register the presenter

  <implementation service-id="tacos.AjaxExceptionPresenter">
    <invoke-factory>
            <construct class="my.cool.AjaxExceptionPresenter">                
                <set-object property="ajaxWebRequest"
                            value="service:tacos.AjaxWebRequest"/>
                <set property="writeCause" value="true"/>
                ...
            </construct>
        </invoke-factory>
  </implementation>


All those should help you do what you want.

> --sam
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to