asbachb commented on PR #6096: URL: https://github.com/apache/netbeans/pull/6096#issuecomment-1616806998
@matthiasblaesing see https://github.com/apache/netbeans/blob/master/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/FaceletsLibrarySupport.java#L332-L419 It does not generate code but information based on the bundled JSF RI jar. This code is base to generate the information used in `FaceletsLibrary` e.g. the namespace which is then used for stuff like auto import, code completion, etc. This part tries to find a jsf implementation for the project: 1) From some entry in web.xml 2) From the classpath 3) A bundled JSF implementation (based on glassfish reference implementation 2.3.9) So the two problems I currently see (there might be more): 1) Normally you develop only against the api so there's no JSF implementation on classpath so there's always a fallback to JSF 2.3 2) Even if you have a JSF 4.0 implementation on classpath the taglib xmls cannot be parsed (see https://github.com/apache/netbeans/blob/master/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/mojarra/ConfigManager.java#L1062-L1154) What I already tried: * Add Mojarra 4.0 Library -> Requires Java 11, currently not possible for enterprise cluster * Add ability to parse taglib.xml files with jakarta namespace -> Not possible when we want to to validation of the xml. The schema used for validation is bundled within the implementation which I cannot add So currently I don't see another option beside mapping the namespaces manually as supposed. It's a shame as I think if we could get a JSF RI (e.g. it could be downloaded via maven) for the used JSF implementation it might work out of the box. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
