On Wed, 19 Oct 2011 13:03:03 -0200, Times2 <sasa.s.trifuno...@gmail.com> wrote:

Hi,

Hi!

I have problem with replacing one custom component with another one

Remember Tapestry doesn't make any difference between components provided by it and components provided by you. ;)

via AJAX, using zone component. Replacing first component with second should
happen on action inside first component.
On parent page i have one block(with second component inside him) , zone
component and first component inside her(zone).
        private ComponentEventCallback callback = new ComponentEventCallback() {

                public boolean handleResult(Object result) {
                        if(!(result instanceof Block)){
        
                                return true;
                        }
                        return false;
                }
        };

You're triggering your own event here, so what happens after your handler method is exactly what you put inside your implementation of the ComponentEventcallback's handleResult() method. Try @Inject'ing into your component class ComponentEventResultProcessor and using its processResultValue() method passing the Block instance you've received.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to