...
To make most HTML editors not complain about using wicket tags and attributes, you need to declare the namespace. The namespace is different per Wicket version:
Code Block | html | html
---|
No Format |
<html xmlns:wicket="Wicket 1.4: http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd Wicket 1.3: http://wicket.apache.org/">/dtds.data/wicket-xhtml1.3-strict.dtd Wicket 1.2 and earlier: http://wicket.sourceforge.net/ |
A more complete example:
Code Block | ||||
---|---|---|---|---|
| ||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd" xml:lang="da" lang="da"> |
In Wicket 1.2 and earlier:
Code Block | ||
---|---|---|
html | html |
<html xmlns:wicket="http://wicket.sourceforge.net/">
|
By the way. This is as well how you may change the namespace Wicket will apply for this file. E.g. xmlns:wcn="http://wicket.apache.org/" will change it to "wcn" for this markup file only. Without any xmlns declaration the default is "wicket". xmlns:wicket and xmlns:wcn will work as well, as long as you don't have any additional namespace declarations.
What you can not do (but is possible with XHTML) that you change the namespace within the very same markup file per tag. Wicket does allow it only with the html tag.
If your IDE needs a DTD, you can find one in svn: http://svn.apache.org/repos/asf/wicket/trunk/wicket/wicket-xhtml1-strict.dtdfor Wicket 1.3 and later the namespace is also the URL where the DTD can be retrieved.
Wicket Attributes
Attribute wicket:id
...