-
1. Re: Resource loading in Seam - ideas
smokingapipe Feb 5, 2007 11:05 PM (in response to pmuir)There are three classes of problem that come up.
1. Independent external resources: Something like an image. This isn't part of anything else and can be generated and served all by itself.
2. A piece that needs to go into some other external file. Like I might need to insert a little piece into a CSS file or a JavaScript file. I need to be able to register a callback that says, "hey when you're generating that JS file, don't forget me."
3. Non-local modifications to the HTML output. If I have a button that requires some JS, that JS needs to modify the header of the HTML output to either have the code embedded or have a reference to the external resource. Same with CSS. Right now I know that JS gets embedded all over the place but this is not correct.
Each of these problems may have different solutions.