hi,in ajax request, the html page is not re-rendered, and a GMD js module will not be served (and run) 2 times. that's why the javascript code that register event on the DOM node (which is replaced by another after ajax request) is not runone solution is using the "live" mode or event handler delegation feature of jQuery. You can register the event on the parent DOM that is not update after the ajax requestOr you can use JavascriptManager to add callback for the require statement
Pls look at my comment on jira for details_______________________________________________On Mon, May 20, 2013 at 10:16 PM, Viliam Rockai <vrockai@redhat.com> wrote:
Hi all,
I've got an issue with JQuery when the page is refreshed by AJAX - the
javascript defined in gatein-resources.xml does not initialize properly:
https://issues.jboss.org/browse/GTNPORTAL-2875
Is there any known way how to solve this?
Viliam
_______________________________________________
gatein-dev mailing list
gatein-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev
gatein-dev mailing list
gatein-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev