Hi! Now that I would like to do something with AddResource I though I take the change to simply its interface. Currently we have a punch of methods to implement, but only a handful of them are in use.
Also that we now know that we can add scripts all around in the html file we can get rid of the most of the positionInfos. Also the css stuff can ONLY by added to the header. Here I think it makes no sense to provide a method to add the style at the current position in html, even if it works, it is not required, is it? So I think the interface can be something like that: addStyleSheet(context, uri) addStyleSheet(context, ResourceHandler) adds the stylesheet to the header addInlineStyleSheet(context, uri) adds the style to the header addJavaScript(context, uri) addJavaScript(context, ResourceHandler) inserts the java script - depending on the used AddResource implementation to the header (current behaviour) or delegates to addJavaScriptHere addJavaScriptHere(context, uri) inserts the java script - depending on the used AddResource implementation With the methods above it is not possible to simulate Position.BODY_END, but no one uses it. Please let me know if you think its still required to have the above methods with "Class myfacesCustomComponent" - no one uses it, so why keep it? In fact I didnt find a usage of the ResourceHandler, so if you ask me I'll remove it too. I hope this is not too radical, its just a question to make my work simpler ;-) Ciao, Mario
