You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Bohnert <ab...@online.de> on 2004/02/04 17:10:50 UTC

strange things happen with palette component

hi,

I have a page with an palette component. the first time the page shows 
up, there is no java script code inside the html source!
When I refresh the page everything is allright - the javascript is there.

I had a look at palette::runScript an put some logs in it:

if the page gets loaded the first time
_script == null, so the script gets loaded, but the javascript don't get 
to the html page

the second time
_script != null, the script don't have to be reloaded and everything is 
ok (html contains javascript and the arrow keys are disabled..)

I tried this with 3.03b and 3.04b, with jboss 3.2.3. I have with both ie 
and firebird the same experience.

but the strange thing is:

if I try the palette example from the workbench.war  example (with the 
very same jboss 3.2.3) it works well from the beginning.
i extracted the palette example from the workbench example and put it 
into my application. I used the same java code, same html template/page 
file,
same css but now I get my troubles again (no javascript in the html page 
at the first page load).

there is one difference: the workbench example is a war file and I use 
an ear file. but I don't think this is a classloader problem

so there is something strange within my application:(
I fight with this 2 days now, and still don't have a glue.

thanks for any help!!
andreas






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