Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JavaScriptSupport scripts when messages arrive #10

Closed
uklance opened this issue Jun 18, 2012 · 2 comments
Closed

Support JavaScriptSupport scripts when messages arrive #10

uklance opened this issue Jun 18, 2012 · 2 comments

Comments

@uklance
Copy link
Owner

uklance commented Jun 18, 2012

Currently, only the html content is sent from the component event.
Investigate running any javascript (added via JavascriptSupport) at the same time.

@see PushManagerImpl.java:75

Also see

Tapestry.loadScriptsInReply: function (reply, callback) {
   ...
}

Related to #23

@uklance
Copy link
Owner Author

uklance commented Jul 11, 2012

JavaScriptSupport is not set on the Environment, perhaps ComponentRequestHandler is too far down the chain. I might need to use AjaxPartialResponseRendererImpl instead. Need to put a breakpoint in JavaScriptSupportImpl's constructor to see when it is instanciated for a normal ajax call.

Need to investigate the DocumentLinker too (for js and css includes).

@see http://tapestry.1045711.n5.nabble.com/Async-process-ComponentRequestHandler-and-JavaScriptSupport-td5714401.html

@uklance
Copy link
Owner Author

uklance commented Jul 12, 2012

Fixed but you need to use AjaxResponseRenderer instead of JavaScriptSupport directly.

https://github.com/uklance/tapestry-cometd/wiki/Pushing-javascript-to-the-client

@uklance uklance closed this as completed Jul 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant