You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Hugo Palma <hu...@gmail.com> on 2007/04/04 11:20:40 UTC

XTile and getResponseBuilder().updateComponent()

I'm trying to use XTile to implement a similar effect to what the
EventListener annotation does, but in JDK 1.4.
So, i have the XTile component all setup, i get it to call my listener
method and in the listener method i call
cycle.getResponseBuilder().updateComponent("mycomp").

Problem is, nothing happens. The component doesn't get updated.
I'm guessing more plumbing work needs to be done for this to work.

Any ideas ?

Re: XTile and getResponseBuilder().updateComponent()

Posted by Hugo Palma <hu...@gmail.com>.
I didn't misunderstand the XTile purpose.
I was just hoping i could use it to implement the functionality i described,
bearing in mind that this is not in the scope of the XTile component.

Thanks,

Hugo

On 4/4/07, Andreas Andreou <an...@di.uoa.gr> wrote:
>
> i'm pretty sure there's a general misunderstanding of what XTile's purpose
> is/was.
>
> It's simply a way to call a server-side method, something like what DWR
> does
> (and close to what
> http://issues.apache.org/jira/browse/TAPESTRY-979describes)
>
> No page is rendered while processing that service...
> See the comments in http://issues.apache.org/jira/browse/TAPESTRY-836
>
>
> On 4/4/07, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > The chain of response builders all inspect the incoming http request
> > headers/ params to see who should handle the request type. If the
> > special http parameter that stands for dojo requests isn't found then
> > I'm guessing you're probably using the standard html response builder
> > which doesn't include support for xtile requests. (even if you did
> > somehow get the dojo response builder to handle the response you'd
> > still need something to handle the xml based stream that it returns )
> >
> > On 4/4/07, Hugo Palma <hu...@gmail.com> wrote:
> > > I'm trying to use XTile to implement a similar effect to what the
> > > EventListener annotation does, but in JDK 1.4.
> > > So, i have the XTile component all setup, i get it to call my listener
> > > method and in the listener method i call
> > > cycle.getResponseBuilder().updateComponent("mycomp").
> > >
> > > Problem is, nothing happens. The component doesn't get updated.
> > > I'm guessing more plumbing work needs to be done for this to work.
> > >
> > > Any ideas ?
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>

Re: XTile and getResponseBuilder().updateComponent()

Posted by Andreas Andreou <an...@di.uoa.gr>.
i'm pretty sure there's a general misunderstanding of what XTile's purpose
is/was.

It's simply a way to call a server-side method, something like what DWR does
(and close to what http://issues.apache.org/jira/browse/TAPESTRY-979describes)

No page is rendered while processing that service...
See the comments in http://issues.apache.org/jira/browse/TAPESTRY-836


On 4/4/07, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> The chain of response builders all inspect the incoming http request
> headers/ params to see who should handle the request type. If the
> special http parameter that stands for dojo requests isn't found then
> I'm guessing you're probably using the standard html response builder
> which doesn't include support for xtile requests. (even if you did
> somehow get the dojo response builder to handle the response you'd
> still need something to handle the xml based stream that it returns )
>
> On 4/4/07, Hugo Palma <hu...@gmail.com> wrote:
> > I'm trying to use XTile to implement a similar effect to what the
> > EventListener annotation does, but in JDK 1.4.
> > So, i have the XTile component all setup, i get it to call my listener
> > method and in the listener method i call
> > cycle.getResponseBuilder().updateComponent("mycomp").
> >
> > Problem is, nothing happens. The component doesn't get updated.
> > I'm guessing more plumbing work needs to be done for this to work.
> >
> > Any ideas ?
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

Re: XTile and getResponseBuilder().updateComponent()

Posted by Hugo Palma <hu...@gmail.com>.
I can see from your reply that there's no easy way of doing this :o(
I wish all of us that are stuck with JDK1.4 could have the same
functionality available as the EventListener annotation presents.
Should i create an issue for this or do you think that this will never be
implemented ?

Thanks,

Hugo

On 4/4/07, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> The chain of response builders all inspect the incoming http request
> headers/ params to see who should handle the request type. If the
> special http parameter that stands for dojo requests isn't found then
> I'm guessing you're probably using the standard html response builder
> which doesn't include support for xtile requests. (even if you did
> somehow get the dojo response builder to handle the response you'd
> still need something to handle the xml based stream that it returns )
>
> On 4/4/07, Hugo Palma <hu...@gmail.com> wrote:
> > I'm trying to use XTile to implement a similar effect to what the
> > EventListener annotation does, but in JDK 1.4.
> > So, i have the XTile component all setup, i get it to call my listener
> > method and in the listener method i call
> > cycle.getResponseBuilder().updateComponent("mycomp").
> >
> > Problem is, nothing happens. The component doesn't get updated.
> > I'm guessing more plumbing work needs to be done for this to work.
> >
> > Any ideas ?
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: XTile and getResponseBuilder().updateComponent()

Posted by Jesse Kuhnert <jk...@gmail.com>.
The chain of response builders all inspect the incoming http request
headers/ params to see who should handle the request type. If the
special http parameter that stands for dojo requests isn't found then
I'm guessing you're probably using the standard html response builder
which doesn't include support for xtile requests. (even if you did
somehow get the dojo response builder to handle the response you'd
still need something to handle the xml based stream that it returns )

On 4/4/07, Hugo Palma <hu...@gmail.com> wrote:
> I'm trying to use XTile to implement a similar effect to what the
> EventListener annotation does, but in JDK 1.4.
> So, i have the XTile component all setup, i get it to call my listener
> method and in the listener method i call
> cycle.getResponseBuilder().updateComponent("mycomp").
>
> Problem is, nothing happens. The component doesn't get updated.
> I'm guessing more plumbing work needs to be done for this to work.
>
> Any ideas ?
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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