You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Renzo Tomaselli <re...@tecnotp.it> on 2007/06/12 20:48:22 UTC

[Trinidad] repeated insertion of a js chunk during PPR

Hi, while using Trinidad 1.0.0 together with Tomahawk and Facelets, I 
noticed that every time an expand/collapse click occurs on a tr:tree 
node, a new line is appended to the document body:

<script src="/AxxBrowser/adf/jsLibs/ScriptEval11-m7.js">

where AxxBrowser is the app. name.
The same occurs with tr:table, after paging through table contents. 
Things run apparently fine, nevertheless the list becomes longer and 
longer, till next full page refresh, when the game resets and the list 
starts again. I could see it on Firebug html inspector.
I will expect browser troubles soon or later.
Comments are welcome.



Re: [Trinidad] repeated insertion of a js chunk during PPR

Posted by Adam Winer <aw...@gmail.com>.
There's supported JS APIs to catch when we gofrom busy to idle or idle to
busy.  Don't know if
that'll meet your needs, but we can definitely
add other hooks as needed.   It'll be much more
predictable and less hacky now.

-- Adam


On 6/13/07, Renzo Tomaselli <re...@tecnotp.it> wrote:
>
> Thanks Adam. Btw, I actually catch _pprIFrame loading to perform some
> inizialization scripts on pages needing it.
> I hope there willl be some alternative way to achieve the same result
> once XMLHttp will replace the iframe.
>
> -- Renzo
>
> Adam Winer wrote:
> > ScriptEval is used to evaluate JS sent down in the current
> > IFRAME-based PPR solution.
> >
> > It will be completely obsolete when I land the new XMLHttp-based
> > code, shortly after the 1.0.1 release (I don't want to destabilize
> > 1.0.1).
> >
> > So, there's not long to wait before this is a non-issue.
> >
> > -- Adam
> >
> >
> > On 6/12/07, Renzo Tomaselli <re...@tecnotp.it> wrote:
> >> Hi, while using Trinidad 1.0.0 together with Tomahawk and Facelets, I
> >> noticed that every time an expand/collapse click occurs on a tr:tree
> >> node, a new line is appended to the document body:
> >>
> >> <script src="/AxxBrowser/adf/jsLibs/ScriptEval11-m7.js">
> >>
> >> where AxxBrowser is the app. name.
> >> The same occurs with tr:table, after paging through table contents.
> >> Things run apparently fine, nevertheless the list becomes longer and
> >> longer, till next full page refresh, when the game resets and the list
> >> starts again. I could see it on Firebug html inspector.
> >> I will expect browser troubles soon or later.
> >> Comments are welcome.
> >>
> >>
> >>
> >
> >
>

Re: [Trinidad] repeated insertion of a js chunk during PPR

Posted by Renzo Tomaselli <re...@tecnotp.it>.
Thanks Adam. Btw, I actually catch _pprIFrame loading to perform some 
inizialization scripts on pages needing it.
I hope there willl be some alternative way to achieve the same result 
once XMLHttp will replace the iframe.

-- Renzo

Adam Winer wrote:
> ScriptEval is used to evaluate JS sent down in the current
> IFRAME-based PPR solution.
>
> It will be completely obsolete when I land the new XMLHttp-based
> code, shortly after the 1.0.1 release (I don't want to destabilize
> 1.0.1).
>
> So, there's not long to wait before this is a non-issue.
>
> -- Adam
>
>
> On 6/12/07, Renzo Tomaselli <re...@tecnotp.it> wrote:
>> Hi, while using Trinidad 1.0.0 together with Tomahawk and Facelets, I
>> noticed that every time an expand/collapse click occurs on a tr:tree
>> node, a new line is appended to the document body:
>>
>> <script src="/AxxBrowser/adf/jsLibs/ScriptEval11-m7.js">
>>
>> where AxxBrowser is the app. name.
>> The same occurs with tr:table, after paging through table contents.
>> Things run apparently fine, nevertheless the list becomes longer and
>> longer, till next full page refresh, when the game resets and the list
>> starts again. I could see it on Firebug html inspector.
>> I will expect browser troubles soon or later.
>> Comments are welcome.
>>
>>
>>
>
>

Re: [Trinidad] repeated insertion of a js chunk during PPR

Posted by Adam Winer <aw...@gmail.com>.
ScriptEval is used to evaluate JS sent down in the current
IFRAME-based PPR solution.

It will be completely obsolete when I land the new XMLHttp-based
code, shortly after the 1.0.1 release (I don't want to destabilize
1.0.1).

So, there's not long to wait before this is a non-issue.

-- Adam


On 6/12/07, Renzo Tomaselli <re...@tecnotp.it> wrote:
> Hi, while using Trinidad 1.0.0 together with Tomahawk and Facelets, I
> noticed that every time an expand/collapse click occurs on a tr:tree
> node, a new line is appended to the document body:
>
> <script src="/AxxBrowser/adf/jsLibs/ScriptEval11-m7.js">
>
> where AxxBrowser is the app. name.
> The same occurs with tr:table, after paging through table contents.
> Things run apparently fine, nevertheless the list becomes longer and
> longer, till next full page refresh, when the game resets and the list
> starts again. I could see it on Firebug html inspector.
> I will expect browser troubles soon or later.
> Comments are welcome.
>
>
>