Re: inserting javascript from java to html file

2008-10-29 Thread Igor Vaynberg
what you pasted looks ok, but its incomplete. go ahead and create a quickstart and a jira issue and i will take a look. -igor On Wed, Oct 29, 2008 at 2:07 AM, eyalbenamram <[EMAIL PROTECTED]> wrote: > > OK. I used the IHeader contributor and the problem still exist! > > The error: > > http-6789-2

RE: inserting javascript from java to html file

2008-10-29 Thread Hoover, William
o:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 2:45 PM To: users@wicket.apache.org Subject: Re: inserting javascript from java to html file OK. What if I want all the JS to be inline (no .js file to be made)? I saw that wicket created a .js file... igor.vaynberg wrote: > > response.renderOnLo

Re: inserting javascript from java to html file

2008-10-29 Thread eyalbenamram
OK. I used the IHeader contributor and the problem still exist! The error: http-6789-2 ERROR html.WebPage - ^ http-6789-2 ERROR html.WebPage - You probably forgot to add a or tag to your markup since no Hea

Re: inserting javascript from java to html file

2008-10-28 Thread Igor Vaynberg
huh? it did not create the fileyour javascript will be inlined! you are using the onloadjavascript which needs support for the onload event, which is why the wicket-event.js is included before your javascript. all this is apparent just by looking at the output code, you can see your code bein

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
OK. What if I want all the JS to be inline (no .js file to be made)? I saw that wicket created a .js file... igor.vaynberg wrote: > > response.renderOnLoadJavascript() takes just the javascript - like the > javadoc says. no need for you to output the script tags. > > -igor > > On Tue, Oct 28,

Re: inserting javascript from java to html file

2008-10-28 Thread Igor Vaynberg
response.renderOnLoadJavascript() takes just the javascript - like the javadoc says. no need for you to output the script tags. -igor On Tue, Oct 28, 2008 at 11:33 AM, eyalbenamram <[EMAIL PROTECTED]> wrote: > >public void renderHead(IHeaderResponse response) { > > >String

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
public void renderHead(IHeaderResponse response) { StringBuffer config = new StringBuffer(); config.append("\n"); config.append("function removeBlur(checked) {\n"); config.append("if(checked) {\n"); config.a

Re: inserting javascript from java to html file

2008-10-28 Thread Igor Vaynberg
what is your code look like? -igor On Tue, Oct 28, 2008 at 11:28 AM, eyalbenamram <[EMAIL PROTECTED]> wrote: > > Hi again, > > I used IHeaderContributer, and the javascript code is now garbled and not > working. > Here is what I got: > > src="resources/org.apache.wicket.markup.html.WicketEventRe

Re: inserting javascript from java to html file

2008-10-28 Thread eyalbenamram
Hi again, I used IHeaderContributer, and the javascript code is now garbled and not working. Here is what I got: