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
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
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.
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
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
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:
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 -
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
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
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
10 matches
Mail list logo