Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: This seems to be a common Newbie mistake

...

This is due to a hard to fix issue. As long as that issue is open, people should avoid setting id attributes on tags that are coupled to components that use rely on the markup id (setOutputMarkupId true). See http://issues.apache.org/jira/browse/WICKET-694 – Eelco

Avoid using open-close tags (i.e. <textarea />)

Wicket will not automatically expand an open-close tag during the rendering phase. You should always include open and close tags in your markup when you want Wicket to include content in the tag body.

Don't do this:
Code Block

<textarea wicket:id="mytext" />
Do this instead:
Code Block

<textarea wicket:id="mytext">Content to be replaced by Wicket</textarea>

--Jay