Re: Wicket and JavaFX applet

2010-04-17 Thread Marek Šabo
Thanks for answer,

however I dumped this way as that remote configuration takes awfully
long even in plain html page. So I ran it once and copied the generated
applet markup and inserted into wicket markup and it works (and loads
much faster).

Just for record I tested js and it works 100%, problem seems to be in
loading that remote js file. I once managed to load it succesfully and
js debugger threw this:

Error:
name: Error
message: Security violation
stacktrace:   Line 841 of linked script
http://localhost:8084/neobax/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
t.send(null);
  Line 817 of linked script
http://localhost:8084/neobax/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
return this.doGet();
  Line 1613 of linked script
http://localhost:8084/neobax/resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
req.get();   
  ...

Regards,

-- 

Marek Šabo



On 04/17/2010 06:47 AM, Jeremy Thomerson wrote:
> Use Firebug and add a breakpoint in your JS to see if it is getting
> executed.  If it's not, you may try adding a semi-colon after your
> "startApplet()" - because I don't remember if you need it when it's run in
> an eval.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Fri, Apr 16, 2010 at 7:25 PM, Marek Šabo  wrote:
>
>   
>> Hi all,
>>
>> I have problems with running javaFX applet inside wicket page. I call a
>> loading function from ajaxLink
>> (target.appendJavascript("startApplet()");) and in html:
>>
>>
>>http://dl.javafx.com/1.2/dtfx.js";
>> type="text/javascript">
>>
>>function startApplet() {
>>fxstring = javafxString({
>>archive: "/neobax/TrafficApplet.jar", //placed in
>> root next to WEB-INF
>>draggable: true,
>>width: 640,
>>height: 480,
>>code: "trafficapplet.Main",
>>name: "TrafficApplet"
>>});
>>document.getElementById('taContainer').innerHTML=fxstring;
>>}
>>
>>
>> 
>>
>> Last thing In ajax debug is:
>> INFO: Initiating Ajax GET request on http://dl.javafx.com/1.2/dtfx.js
>> INFO: Invoking pre-call handler(s)...
>>
>> Is there any way to know more about the process for better debugging?
>>
>> TIA,
>>
>> --
>> Marek Šabo
>>
>>
>>
>> 



Re: Wicket and JavaFX applet

2010-04-16 Thread Jeremy Thomerson
Use Firebug and add a breakpoint in your JS to see if it is getting
executed.  If it's not, you may try adding a semi-colon after your
"startApplet()" - because I don't remember if you need it when it's run in
an eval.

--
Jeremy Thomerson
http://www.wickettraining.com



On Fri, Apr 16, 2010 at 7:25 PM, Marek Šabo  wrote:

> Hi all,
>
> I have problems with running javaFX applet inside wicket page. I call a
> loading function from ajaxLink
> (target.appendJavascript("startApplet()");) and in html:
>
>
>http://dl.javafx.com/1.2/dtfx.js";
> type="text/javascript">
>
>function startApplet() {
>fxstring = javafxString({
>archive: "/neobax/TrafficApplet.jar", //placed in
> root next to WEB-INF
>draggable: true,
>width: 640,
>height: 480,
>code: "trafficapplet.Main",
>name: "TrafficApplet"
>});
>document.getElementById('taContainer').innerHTML=fxstring;
>}
>
>
> 
>
> Last thing In ajax debug is:
> INFO: Initiating Ajax GET request on http://dl.javafx.com/1.2/dtfx.js
> INFO: Invoking pre-call handler(s)...
>
> Is there any way to know more about the process for better debugging?
>
> TIA,
>
> --
> Marek Šabo
>
>
>


Wicket and JavaFX applet

2010-04-16 Thread Marek Šabo
Hi all,

I have problems with running javaFX applet inside wicket page. I call a
loading function from ajaxLink
(target.appendJavascript("startApplet()");) and in html:


http://dl.javafx.com/1.2/dtfx.js";
type="text/javascript">

function startApplet() {
fxstring = javafxString({
archive: "/neobax/TrafficApplet.jar", //placed in
root next to WEB-INF
draggable: true,
width: 640,
height: 480,
code: "trafficapplet.Main",
name: "TrafficApplet"
});
document.getElementById('taContainer').innerHTML=fxstring;
}




Last thing In ajax debug is:
INFO: Initiating Ajax GET request on http://dl.javafx.com/1.2/dtfx.js
INFO: Invoking pre-call handler(s)...

Is there any way to know more about the process for better debugging?

TIA,

-- 
Marek Šabo