You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Francisco Diaz Trepat - gmail <fr...@gmail.com> on 2008/10/24 18:02:47 UTC

Understanding JS Error on Wicket-Framewor (Ajax + F5)

Hi all. I am getting the following error when refreshing (CTRL+R) my page.
I work entirely with ajax except for the first-time loading of the page.
After that it is all panel replacements.

Everything kind of work but I have one formatting component that don't, and
as a hint I get this error (on firebug):


document.body is null
addElement()("<div style='width: 450px; display: none; position: absolute;
left: 200px; top: 300px; z-index: 1000000;' id='wicketAjaxDebugWindow'> <div
style='border: 1px solid black; padding: 1px; background-color: #eee'> <div
style='overflow: auto; width: 100%'> <div style='float: right; padding:
0.2em; padding-right: 1em; color: black;'> <a
href='javascript:WicketAjaxDebug.switchScrollLock()'
id='wicketAjaxDebugScrollLock' style='color:blue'
onfocus='this.blur();'>scroll lock</a> | <a
href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'>clear</a> |
<a href='javascript:WicketAjaxDebug.hideDebugWindow()'
style='color:blue'>close</a> </div> <div
id='wicketAjaxDebugWindowDragHandle' style='padding: 0.2em;
background-color: gray; color: white; padding-left: 1em; margin-right: 14em;
cursor: move;'> Wicket Ajax Debug Window (drag me here) </div> <div
id='wicketAjaxDebugWindowLogId' style='width: 100%; height: 200px;
background-color: white; color: black; overflow: auto; white-space: nowrap'>
</div> <div style='height: 10px; margin:0px; padding:0px;overflow:hidden;'>
<div style='height: 10px; width: 10px; background-color: gray; margin:0px;
padding: 0px;overflow:hidden; float:right; cursor: nw-resize'
id='wicketAjaxDebugWindowResizeHandle'> </div> </div> </div> </div></div><a
id='wicketDebugLink' style='position:fixed; right: 10px; bottom: 10px;
z-index:1000000; padding-top: 0.3em; padding-bottom: 0.3em; line-height:
normal ; _padding-top: 0em; width: 12em; border: 1px solid black;
background-color: white; text-align: center; opacity: 0.7; color: blue;'
href='javascript:WicketAjaxDebug.showDebugWindow()'>WICKET AJAX
DEBUG</a>")wicket-a...-debug.js
(line 207)
init()()wicket-a...-debug.js (line 137)
log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49)
log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3)
logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10)
getGERMANItems()()LcDateTy..._de_CH.js (line 2)
LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182)
  document.body.appendChild(element);


Any clue to what could be happening that when page is refreshed,
document.body returns null?

At first this error was appearing when uploading a file (hence posting and
refreshing window).

f(t)

Re: Understanding JS Error on Wicket-Framewor (Ajax + F5)

Posted by Francisco Diaz Trepat - gmail <fr...@gmail.com>.
WicketAjaxDebug.log(bla);

On Fri, Oct 24, 2008 at 2:25 PM, Matej Knopp <ma...@gmail.com> wrote:

> What is that supposed to be? Custom javascript?
>
> -Matej
>
> On Fri, Oct 24, 2008 at 6:02 PM, Francisco Diaz Trepat - gmail
> <fr...@gmail.com> wrote:
> > Hi all. I am getting the following error when refreshing (CTRL+R) my
> page.
> > I work entirely with ajax except for the first-time loading of the page.
> > After that it is all panel replacements.
> >
> > Everything kind of work but I have one formatting component that don't,
> and
> > as a hint I get this error (on firebug):
> >
> >
> > document.body is null
> > addElement()("<div style='width: 450px; display: none; position:
> absolute;
> > left: 200px; top: 300px; z-index: 1000000;' id='wicketAjaxDebugWindow'>
> <div
> > style='border: 1px solid black; padding: 1px; background-color: #eee'>
> <div
> > style='overflow: auto; width: 100%'> <div style='float: right; padding:
> > 0.2em; padding-right: 1em; color: black;'> <a
> > href='javascript:WicketAjaxDebug.switchScrollLock()'
> > id='wicketAjaxDebugScrollLock' style='color:blue'
> > onfocus='this.blur();'>scroll lock</a> | <a
> > href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'>clear</a>
> |
> > <a href='javascript:WicketAjaxDebug.hideDebugWindow()'
> > style='color:blue'>close</a> </div> <div
> > id='wicketAjaxDebugWindowDragHandle' style='padding: 0.2em;
> > background-color: gray; color: white; padding-left: 1em; margin-right:
> 14em;
> > cursor: move;'> Wicket Ajax Debug Window (drag me here) </div> <div
> > id='wicketAjaxDebugWindowLogId' style='width: 100%; height: 200px;
> > background-color: white; color: black; overflow: auto; white-space:
> nowrap'>
> > </div> <div style='height: 10px; margin:0px;
> padding:0px;overflow:hidden;'>
> > <div style='height: 10px; width: 10px; background-color: gray;
> margin:0px;
> > padding: 0px;overflow:hidden; float:right; cursor: nw-resize'
> > id='wicketAjaxDebugWindowResizeHandle'> </div> </div> </div>
> </div></div><a
> > id='wicketDebugLink' style='position:fixed; right: 10px; bottom: 10px;
> > z-index:1000000; padding-top: 0.3em; padding-bottom: 0.3em; line-height:
> > normal ; _padding-top: 0em; width: 12em; border: 1px solid black;
> > background-color: white; text-align: center; opacity: 0.7; color: blue;'
> > href='javascript:WicketAjaxDebug.showDebugWindow()'>WICKET AJAX
> > DEBUG</a>")wicket-a...-debug.js
> > (line 207)
> > init()()wicket-a...-debug.js (line 137)
> > log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49)
> > log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3)
> > logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10)
> > getGERMANItems()()LcDateTy..._de_CH.js (line 2)
> > LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182)
> >  document.body.appendChild(element);
> >
> >
> > Any clue to what could be happening that when page is refreshed,
> > document.body returns null?
> >
> > At first this error was appearing when uploading a file (hence posting
> and
> > refreshing window).
> >
> > f(t)
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Understanding JS Error on Wicket-Framewor (Ajax + F5)

Posted by Matej Knopp <ma...@gmail.com>.
What is that supposed to be? Custom javascript?

-Matej

On Fri, Oct 24, 2008 at 6:02 PM, Francisco Diaz Trepat - gmail
<fr...@gmail.com> wrote:
> Hi all. I am getting the following error when refreshing (CTRL+R) my page.
> I work entirely with ajax except for the first-time loading of the page.
> After that it is all panel replacements.
>
> Everything kind of work but I have one formatting component that don't, and
> as a hint I get this error (on firebug):
>
>
> document.body is null
> addElement()("<div style='width: 450px; display: none; position: absolute;
> left: 200px; top: 300px; z-index: 1000000;' id='wicketAjaxDebugWindow'> <div
> style='border: 1px solid black; padding: 1px; background-color: #eee'> <div
> style='overflow: auto; width: 100%'> <div style='float: right; padding:
> 0.2em; padding-right: 1em; color: black;'> <a
> href='javascript:WicketAjaxDebug.switchScrollLock()'
> id='wicketAjaxDebugScrollLock' style='color:blue'
> onfocus='this.blur();'>scroll lock</a> | <a
> href='javascript:WicketAjaxDebug.clearLog()' style='color:blue'>clear</a> |
> <a href='javascript:WicketAjaxDebug.hideDebugWindow()'
> style='color:blue'>close</a> </div> <div
> id='wicketAjaxDebugWindowDragHandle' style='padding: 0.2em;
> background-color: gray; color: white; padding-left: 1em; margin-right: 14em;
> cursor: move;'> Wicket Ajax Debug Window (drag me here) </div> <div
> id='wicketAjaxDebugWindowLogId' style='width: 100%; height: 200px;
> background-color: white; color: black; overflow: auto; white-space: nowrap'>
> </div> <div style='height: 10px; margin:0px; padding:0px;overflow:hidden;'>
> <div style='height: 10px; width: 10px; background-color: gray; margin:0px;
> padding: 0px;overflow:hidden; float:right; cursor: nw-resize'
> id='wicketAjaxDebugWindowResizeHandle'> </div> </div> </div> </div></div><a
> id='wicketDebugLink' style='position:fixed; right: 10px; bottom: 10px;
> z-index:1000000; padding-top: 0.3em; padding-bottom: 0.3em; line-height:
> normal ; _padding-top: 0em; width: 12em; border: 1px solid black;
> background-color: white; text-align: center; opacity: 0.7; color: blue;'
> href='javascript:WicketAjaxDebug.showDebugWindow()'>WICKET AJAX
> DEBUG</a>")wicket-a...-debug.js
> (line 207)
> init()()wicket-a...-debug.js (line 137)
> log()("getGERMANItems()", "INFO: ")wicket-a...-debug.js (line 49)
> log("getGERMANItems()", "INFO: ")LcUtils_de_CH.js (line 3)
> logInformation("getGERMANItems()")LcUtils_de_CH.js (line 10)
> getGERMANItems()()LcDateTy..._de_CH.js (line 2)
> LcDateTypesEnum_de_CH.js()()LcDateTy..._de_CH.js (line 182)
>  document.body.appendChild(element);
>
>
> Any clue to what could be happening that when page is refreshed,
> document.body returns null?
>
> At first this error was appearing when uploading a file (hence posting and
> refreshing window).
>
> f(t)
>

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