问题 I am using JSF 2.0, and am looking for a means to include all the javascripts from a given folder on a page, i.e. do something like <h:outputScript library="javascript" name="*.js" target="head" /> Is this kind of thing even possible? Should I write a custom component using java code to achieve this? Thanks for your help, Sébastien Tromp 回答1: Nice idea. This is not supported by the JSF API, but it's in theory possible with a custom script renderer. I played somewhat around it and it's indeed