You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Dawn <pe...@gmail.com> on 2006/06/14 01:19:29 UTC

dynamic page update

hi all,
sorry for another question on tpaestry-ajax type functionality.

is there a way for tapestry to do a page refresh, but on demand. i
have implemented a frame based solution, which passes info from one
frame to another. so the hidden frame can send info to the visible
frame displaying updated info.
but the issue is that, how can i tell the hidden frame to
update/refresh itself which would ultimately pass on updated info to
the visible frame.

the idea is to send info from my listener servlet to this page when
info changes and then the hidden frame can refresh and hence send info
to the visible frame.

jesse and rest have told me about comet and dojo. wouldnt this
solution work though. any thoughts.

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


Re: dynamic page update

Posted by Jesse Kuhnert <jk...@gmail.com>.
Well...Yes...Since the term came from them and they were being mentioned I
assumed they had taken on a mysteriously assumed third party form and didn't
need to be known as "dojo" anymore. :)

On 6/13/06, Peter Dawn <pe...@gmail.com> wrote:
>
> They being dojo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Re: dynamic page update

Posted by Peter Dawn <pe...@gmail.com>.
They being dojo.

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


Re: dynamic page update

Posted by Jesse Kuhnert <jk...@gmail.com>.
They have IO mechanisms to handle the iframe loading portion for you
transparently, but I have no idea if anything in there is specifically meant
to handle persistent io connections or not.

Either way it's certainly a hell of a lot easier than starting from scratch
;)

On 6/13/06, Peter Dawn <pe...@gmail.com> wrote:
>
> ok. so i am implementing a comet and dojo *custom* solution, but still
> how should i pass info from my servlet to the js on that hidden frame.
> should i use some of the libraries dojo is providing and use them, or
> there is another way.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Re: dynamic page update

Posted by Peter Dawn <pe...@gmail.com>.
ok. so i am implementing a comet and dojo *custom* solution, but still
how should i pass info from my servlet to the js on that hidden frame.
should i use some of the libraries dojo is providing and use them, or
there is another way.

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


Re: dynamic page update

Posted by Jesse Kuhnert <jk...@gmail.com>.
Oops...I forgot to mention that the whole point of comet is to reduce the
need for polling update listeners...So you are intended to try and keep the
IO pipe open the whole time. This means creating a meta language on the
stream to differentiate messages and such on your own, but there is probably
java code sitting around somewhere doing it already. (someone sent something
like it to me once but I was too busy to care ...It's probably google-able )


On 6/13/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> That ~is~ comet and dojo ;) (mostly..)
>
>
> On 6/13/06, Peter Dawn <pe...@gmail.com> wrote:
> >
> > hi all,
> > sorry for another question on tpaestry-ajax type functionality.
> >
> > is there a way for tapestry to do a page refresh, but on demand. i
> > have implemented a frame based solution, which passes info from one
> > frame to another. so the hidden frame can send info to the visible
> > frame displaying updated info.
> > but the issue is that, how can i tell the hidden frame to
> > update/refresh itself which would ultimately pass on updated info to
> > the visible frame.
> >
> > the idea is to send info from my listener servlet to this page when
> > info changes and then the hidden frame can refresh and hence send info
> > to the visible frame.
> >
> > jesse and rest have told me about comet and dojo. wouldnt this
> > solution work though. any thoughts.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>



-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Re: dynamic page update

Posted by Jesse Kuhnert <jk...@gmail.com>.
That ~is~ comet and dojo ;) (mostly..)

On 6/13/06, Peter Dawn <pe...@gmail.com> wrote:
>
> hi all,
> sorry for another question on tpaestry-ajax type functionality.
>
> is there a way for tapestry to do a page refresh, but on demand. i
> have implemented a frame based solution, which passes info from one
> frame to another. so the hidden frame can send info to the visible
> frame displaying updated info.
> but the issue is that, how can i tell the hidden frame to
> update/refresh itself which would ultimately pass on updated info to
> the visible frame.
>
> the idea is to send info from my listener servlet to this page when
> info changes and then the hidden frame can refresh and hence send info
> to the visible frame.
>
> jesse and rest have told me about comet and dojo. wouldnt this
> solution work though. any thoughts.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.