From 57b56b78bde105426e8997675bf8bb0149619e76 Mon Sep 17 00:00:00 2001 From: Nicola Isotta Date: Mon, 30 Nov 2026 22:10:39 +0100 Subject: [PATCH] JSF: Recognize id and binding attributes on ui:repeat and ui:debug Some Mojarra versions declare ui:repeat and ui:debug in their taglib as plain tag handlers, without the id and binding attributes. Register their handler classes as components so the attributes are added automatically. Fixes #9826 --- .../facelets/mojarra/FaceletsTaglibConfigProcessor.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/mojarra/FaceletsTaglibConfigProcessor.java b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/mojarra/FaceletsTaglibConfigProcessor.java index bf41a28cffa4..861258b73f42 100644 --- a/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/mojarra/FaceletsTaglibConfigProcessor.java +++ b/enterprise/web.jsf.editor/src/org/netbeans/modules/web/jsf/editor/facelets/mojarra/FaceletsTaglibConfigProcessor.java @@ -403,7 +403,13 @@ private void processHandlerClass(ServletContext sc, Node handlerClass, return ; //just ignre that entry } Class clazz = loadClass(sc, className, this, null); - if (clazz != null) { + // workaround for github issue 9826: + // some mojarra versions' taglibs miss id and binding attributes of ui:repeat and ui:debug; + // processing these tags as components automatically add the missing attributes + if ("com.sun.faces.facelets.tag.ui.RepeatHandler".equals(className) || + "com.sun.faces.facelets.tag.ui.UIDebug".equals(className)) { + taglibrary.putComponent(name, null, null, clazz); + } else if (clazz != null) { taglibrary.putTagHandler(name, clazz); } else { // fix for missing HandlerClass