Code completion in Netbeans

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Code completion in Netbeans

rizel
hey everyone

is it possible to use code completion of the th: tags in Netbeans (7.1.2)?
right now it doesn't show any suggestions and I get the following warning on the lines with th tags:
"content is being hidden from the validator based on namespace filtering"

thanks in advance
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Code completion in Netbeans

Zemi
Administrator
> I get the following warning on the lines with th tags:
> "content is being hidden from the validator based on namespace filtering"

You could hide the waring disabling the hint. Go to Tools --> Options --> Editor --> Hints --> Uncheck "All other"
    http://netbeans.org/bugzilla/show_bug.cgi?id=202959


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Code completion in Netbeans

rizel
thanks :) now I only need to solve the code completion somehow
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Code completion in Netbeans

Emanuel
Administrator
If you're using XHTML you can insert one of the Thymeleaf DTDs into your XHTML pages, which I think should give Netbeans enough of a hint to do code completion for th: attributes (see chapter 12 of the Using Thymeleaf PDF).  That chapter also shows how you can put an XML namespace declaration for the th: stuff so that you won't get warnings in your IDE (not 100% sure if it'll work given the bug posted above).

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:th="http://www.thymeleaf.org">
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Code completion in Netbeans

Seti
Hello, does code completion work in Netbeans for somebody?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Code completion in Netbeans

ArturWisniewski
Old post but i had some time and created plugin in nb 8.2.
https://github.com/ArturWisniewski/NB-Thymeleaf-Code-Completion/releases
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Code completion in Netbeans

Seti
It looks awesome, thanks for sharing!
Loading...