Good, that works. Thanks. Only that IntelliJ IDEA does not like it much. Another issue I have found though is with the composite components namespace. Before I could have:
xmlns:iv="http://java.sun.com/jsf/composite/mysuperlibrary/components" And now that does not seem to work. You can always move "components" to the "resources" folder, but I wonder if subfolders can be used there or if I am using a wrong namespace... Thanks, Bruno On 9 February 2012 18:13, Thomas Andraschko <zoi...@googlemail.com> wrote: > 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 <brunoara...@gmail.com> > > > 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 > > >