This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201401020002) VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11 OS: Windows 7 User Comments: mkhramov: invoke code complete during edit JSF XHTML code fleka: worked with faceletes, not sure when it happened Stacktrace: java.lang.NullPointerException at org.netbeans.modules.web.jsfapi.api.NamespaceUtils.getForNs(NamespaceUtils.java:86) at org.netbeans.modules.web.jsf.editor.JsfHtmlExtension.completeAttributes(JsfHtmlExtension.java:323) at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.query(HtmlCompletionQuery.java:485) at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery$1.run(HtmlCompletionQuery.java:134) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391) at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.run(HtmlCompletionQuery.java:127)
Created attachment 143706 [details] stacktrace
Steps to reproduce: Have code <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:jsf="http://java.sun.com/jsf"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <select size="1" jsf:value="#{test.name}" > <f:selectItem </select> </h:body> </html> Press space after <f:selectItem Once I declared required namespace xmlns:f="http://java.sun.com/jsf/core" exception disappears
Reported thanks for the additional information which helped me to reproduce the issue. It's fixed in web-main #93554cffbc85. Now it will offer attributes of the element if used prefix equals default prefix of the library.
Integrated into 'main-silver', will be available in build *201401100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/93554cffbc85 User: Martin Fousek <marfous@netbeans.org> Log: #240116 - NullPointerException at org.netbeans.modules.web.jsfapi.api.NamespaceUtils.getForNs