Hi, why you can't use the directory in the name attribute?
<h:outputScript library="javascript" name="mysuperlibrary/mysuperscript.js" /> Regards, Thomas 2012/2/9 Bruno Aranda <[email protected]> > Hi, > > I can see there are some improvements related to the resource handling and > to fix a security problem in MyFaces 2.1.6. However, now the behaviour for > h:outputScript seems to have changed and subfolders are not allowed in the > "library" attribute. > > Before I could do things like: > > <h:outputScript library= "javascript/mysuperlibrary" > name="mysuperscript.js" /> > > And now the resource handler complains with a warning: > > 09-Feb-2012 18:04:21 org.apache.myfaces.renderkit.html.HtmlScriptRenderer > encodeEnd > WARNING: Resource referenced by resourceName mysuperscript.js and > libraryName javascript/mysuperlibrary not found in call to > ResourceHandler.createResource. It will be silenty ignored. > > Am I doing something wrong? Do I need my own ResourceHandler if I want to > have all my resources in their subfolders, resulting in a more tidy > project? > > Cheers, > > Bruno >

