On Sunday, May 8, 2011 1:27:00 PM UTC-4, Iceberg wrote: > > Hi Anthony, > > I have to say, your proposal is logically correct. Good hint! > Furthermore, I find a more appropriate place to add those code. That > place is generic.load. > > However, my complicated action "index" contains multi components, some > are even duplicated. Then after I deploy the new generic.load, the > "index" page's appearance or behavior is not 100% correct. I guess > that is caused by duplicated and/or improper location of those > component css&js files.
Oops, now that I think about it, I suppose this won't work for css files, as I believe they must be linked within the <head> of the document. Instead of linking, you might be able to import the css files using @import inside a <style> tag -- technically I don't think it's valid HTML to have a <style> tag inside the <body>, but supposedly it works in most browsers. Anthony