Apache Wicket Support?

Hello all,

we try to create our first JEE project using the Apache wicket framework (http://wicket.apache.org/).

Now I have problems to get the XHTML editor of IDEA 7.0.3 correctly validate e.g. this piece of code (see attachment for properly formatted version):

]]>

IDEA will complain about attribute wicket:id "not being allowed here" and "element form doesn't have required attribute action". How to get green validation lights in the IDEA editor?

Thanks so much!



Attachment(s):
wicket.txt
10 comments
Comment actions Permalink

Go the the wicket:id, press alt+enter, and IntelliJ will give you a suggestion (add it the list of ignored prefixes or something)

0
Comment actions Permalink

Hi Erik,

thanks for your answer. When pressing Alt-Enter, I get a menu with

- Remove Attribute wicket:id
- Collapse Empty Tag
- Split Tag

There is nothing that deals with ignoring attributes, or similar.

Are there any wicket programmers out there that have solved the editor validation issues?

Thanks so much,
Benjamin

0
Comment actions Permalink

We've configured wicket to not require wicket:id attributes but to take
ordinary id attributes. Now we can use any HTML editor without problems.

Tom

0
Comment actions Permalink

Well, I checked again for you, and I don't know how I did it, but I added the wicket:id, wicket:child, etc to the list of "Unknown HTML tag"s and the "Unknown HTML tag attribute". It can be found in the inspections (Errors -> HTML Inspections)

0
Comment actions Permalink

Hi Erik,

thanks much for your reply. I tried to reproduce what you did: Going to Settings / Project Settings / Errors, and turning off (unchecking) ALL inspections (IDE Profiles-Default and Project Profiles-Project Default).

Still, I get the mentioned errors being displayed: form tag and wicket:id tag are still red...

This is crazy...

I am using an xhtml file, BTW. It seems also to matter if you write your xhtml code inside a .jsp or a .xhtml. I get other warnings about xmlns:wicket="http://wicket.apache.org/" not being allowed, when writing a .jsp...

Erik, so you say, my attached code will display in your IDEA 7.0.3 with a green validation marker? Do you use a .html, .xhtml or .jsp file?

Cheers,
Benjamin

0
Comment actions Permalink

I double checked: Inserting the SAME code into a .jsp or .html works. No warnings at all.

Just when creating a .xhtml file (which this actually is....) I still get the warnings.

Is this a bug or feature? :)

Cheers,
Benjamin

0
Comment actions Permalink

Hi Benjamin,

I just tried both versions: a html version and a xhtml version: the HTML version doesn't give any problems (and that's what I use), the xHTML version gives loads of errors. I can imagine the wicket attributes etc are not in the DTD causing IntelliJ to mark it as red. No idea if it's a feature or a bug, but I do encounter the same behaviour.

Erik

0
Comment actions Permalink

Thanks, Erik! I'll go ahead with .html for the moment, and all should be fine then...

0
Comment actions Permalink

Closing this one

0
Comment actions Permalink

Design feature (xhtml should be valid according to schema :).

Benjamin Lorenz wrote:

I double checked: Inserting the SAME code into a .jsp or .html works. No warnings at all.

Just when creating a .xhtml file (which this actually is....) I still get the warnings.

Is this a bug or feature? :)

Cheers,
Benjamin



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.