2009-05-01

Getting the 'wicket:id' attribute to validate

Wicket is great. The "wicket:id" attribute is all that needs to be added to a tag to place it under program control.

If you have a finicky validator (or any validator), it may object to the attribute, which isn't part of (X)HTML.

The solution is to add a namespace declaration, like this:

<html xmlns:wicket="http://wicket.apache.org">

No comments: