Removing "Namespace 'wicket' is not bound" warnings
Answered
We only recently transitioned from Eclipse to IDEA and it's getting really annoying having to deal with warnings all over our html files about wicket
"wicket:id" or "wicket:for" or other tags from wicket.
In addition to this we also get "Attribute wicket:id is not allowed here" messages all over our tags.
We have hundreds of files using these tags so adding a namespace declaration to everything is out of the question at this point.
Is there any way to tell the IDE to not warn us about these?
Please sign in to leave a comment.
Please try the WicketForge plugin - does it make things any better?
Hi Elena. Due to our project setup WicketForge complicates things quite a lot.
I did however solve this issue.
Solution:
Go to Settings > Editor > Inspections and deactivate the XML > Unbound XML namespace prefix. NOTICE that this deactivates this warning for all unbound namespaces, not just Wicket.
In addition, for the Wicket tags that were not recognized you can just hover over them and select "Add wicket:id to custom html attributes" which also takes care of that particular warning and underlining.
Thanks for your help :)