You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by tompeter <in...@tomkrause.com> on 2011/05/03 17:58:34 UTC

Re: Modalbox Integration Example

Hi Taha,

first off, thanks for your code!
I have a question concerning the zone support.
I have implemented the necessary javascript parts but get an error when
using zones:
Return type org.apache.tapestry5.internal.structure.BlockImpl can not be
handled

Can you tell me what I am missing?

Thanks and best,
Tom

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p4367640.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Modalbox Integration Example

Posted by tompeter <in...@tomkrause.com>.
Hi Taha,
thanks for your help and code!
I found out that it works nice when I am using an inline Modal Box.
I did not get it to work with the Modal Box displaying a page though.

I implemented it with Inline Modal Box displaying a component now...

Thanks and all best,
Tom

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p4369409.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Modalbox Integration Example

Posted by Taha Hafeez <ta...@gmail.com>.
Hi Tom

I am using this piece of code in one of my applications and I am submitting
even ajax form using it. I did make some changes to it. I am  attaching the
code. (I had to extract it from my one of my modules, so not in proper
directory structure).

regards
Taha


On Tue, May 3, 2011 at 11:55 PM, tompeter <in...@tomkrause.com> wrote:

> Thanks for the reply Thiago!
> The problem is that I am trying to make a zone update via an action link in
> the page of the modalbox component. The request should be an Ajax request
> but does not behave as such.
> I want to update a feedback text inside the modal box without loading a new
> page.
> I am pretty sure it has something to do with the code for the modal box.
>
> Do you know how to solve this one?
>
> Thanks and best,
> Tom
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p4367967.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Modalbox Integration Example

Posted by tompeter <in...@tomkrause.com>.
Thanks for the reply Thiago!
The problem is that I am trying to make a zone update via an action link in
the page of the modalbox component. The request should be an Ajax request
but does not behave as such.
I want to update a feedback text inside the modal box without loading a new
page.
I am pretty sure it has something to do with the code for the modal box.

Do you know how to solve this one?

Thanks and best,
Tom

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p4367967.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Modalbox Integration Example

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 03 May 2011 12:58:34 -0300, tompeter <in...@tomkrause.com> wrote:

> Hi Taha,
>
> first off, thanks for your code!
> I have a question concerning the zone support.
> I have implemented the necessary javascript parts but get an error when
> using zones:
> Return type org.apache.tapestry5.internal.structure.BlockImpl can not be
> handled

This happens when a non-AJAX (XmlHttpRequest) is made and an AJAX-related  
value is returned (block, component instance, JSONObject, etc). @Inject  
Request and use its isXHR() method to check that.

-- 
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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org