Yes, the writejavascript lines are indeed in the inlinepage constructor. 
In my example the code isn't inside InnerPage.html but inside
InnerPage.java. My mistake.
Thanks !

igor.vaynberg wrote:
> 
> where are those writejavascript lines? in inlinepage constructor?
> 
> -igor
> 
> 
> On 6/21/07, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello,
>>
>> I could reproduce in a very simple example..
>> Could you check it for me? I don't see any exception..
>>
>> MainPage.java
>> -------------
>> add(new InlineFrame("myIframe", PageMap.forName("innerframe"),
>> InnerPage.class));
>> add(new Form("form"));
>>
>> MainPage.html
>> -------------
>> <form wicket:id="form"></form>
>> <iframe wicket:id="myIframe"></iframe>
>>
>> InnerPage.html
>> --------------
>> JavascriptUtils.writeJavascript(this.getResponse(), "var test =
>> 'hello'");
>> JavascriptUtils.writeJavascriptUrl(this.getResponse(), "test.js");
>>
>> None if the javascript is written in te innerpage..
>> When deleting the from from MainPage, the javascript is written.
>> Strange behaviour.
>>
>> Thanks in advance !
>>
>> > you sure you dont have an exception somewhere...check the console/logs
>> for a
>> > stacktrace
>> >
>> > -igor **** DISCLAIMER ****
>>
>> http://www.tvh.be/newen/pages/emaildisclaimer.html
>>
>> "This message is delivered to all addressees subject to the conditions
>> set forth in the attached disclaimer, which is an integral part of this
>> message."
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Write-javascript-to-inlineframe-tf3951997.html#a11281977
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to