Re: replace panel problems

2010-05-19 Thread Ivoneta
I have one question! I assume when inicialize de GenericDomReadyTailJavaScriptBehavior, the parameter should be a string with the JavaScript content, right? I could define the jQuery functions in a js file and call the function that I need from this AbstractBehavior class? I think, if you have

Re: replace panel problems

2010-05-18 Thread Martin Makundi
Where do you initialize the js? ** Martin 2010/5/18 Ivoneta ietaraz...@gmail.com: I have a web Page with a panel. When I click a ajax button, the panel is replace. In  the new panel the javaScripts functions doesn't work. Why that happened? What am I missing? Here is the code the webpage

Re: replace panel problems

2010-05-18 Thread Ivoneta
In the web Page head. Is the only place where I initialize the js. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221908.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: replace panel problems

2010-05-18 Thread Martin Makundi
So it must be initialized every time you replace... probably. Attach something like this onto your replace component: public class GenericDomReadyTailJavaScriptBehavior extends AbstractBehavior { private final String javaScript; /** * @param javaScript */ public

Re: replace panel problems

2010-05-18 Thread Ivoneta
Why do I inicialize the js every time? I don't understand that! it's so complicated! :( Is there another way to do it? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221923.html Sent from the Wicket - User mailing list archive at

Re: replace panel problems

2010-05-18 Thread Martin Makundi
Depends on your js what it does. You can do simpler things ,] ** Martin 2010/5/19 Ivoneta ietaraz...@gmail.com: Why do I inicialize the js every time? I don't understand that! it's so complicated! :( Is there another way to do it? -- View this message in context:

Re: replace panel problems

2010-05-18 Thread Ivoneta
I work with JQuery. I read in another post that the dom ready event isn't fired. it is right? I suspect I should do the js initializes every time! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-panel-problems-tp2221878p2221952.html Sent from the Wicket -

Re: replace panel problems

2010-05-18 Thread Martin Makundi
Wicket seems to handle automatically its own domready event so that it works both in ajax and non-ajax situations. 2010/5/19 Ivoneta ietaraz...@gmail.com: I work with JQuery. I read in another post that the dom ready event isn't fired. it is right? I suspect I should do the js initializes

Re: replace panel problems

2010-05-18 Thread Jeremy Thomerson
DOM ready will only be fired when the dom is ready - which is as the page is loading / rendering. When you do an AJAX replace, the DOM is not completely reinitialized - only part of it is replaced. You would not want a dom ready event to fire again because it would reinitialize everything in the

Re: replace panel problems

2010-05-18 Thread Martin Makundi
Jeremy, I know this is true with real domready event, but in my experience wicket domready is somehow more intelligent that it knows how to behave in ajax requests. At least in my experience using jquery domready $(document).ready will not work in ajax requests but wicket.event-based domready