views:

48

answers:

2

I'm using IntellIJ with Apache Wicket and IntelliJ is showing me that tags like <wicket:extend> and <wicket:container> and adding wicket:id to other html tags is not valid.

What steps do I need to take to make IntelliJ recognize the wicket tags?

I'm using IntelliJ Ultimate 9 with the wicketforge plugin.

+1  A: 

I use Eclipse, but to make validation errors go away, I just add the wicket namespace:

<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd" >
    ...
</html>
rcl
+2  A: 

You can't really do it, adding the wicket namespace as in the other answer will only work for wicket:id, there is no dtd that also includes the wicket:container|panel etc.

There is this really old schema from the contrib project: http://wicket-contrib.googlecode.com/files/wicket.xsd but that doesn't include xhtml, so you'd need to create a schema to merge that and xhtml, and i don't believe there is a way other then manual.

The best you can do it add them to idea's ignored tags;

slckin