Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tapestry provides quite a number of ways to vary what content is rendered, well beyond simple conditionals and loops. It is possible to "drag in" components from other pages when rendering a page (other FAQs will expand on this concept). The point is, that although a Tapestry page's structure is very rigid, the order in which the components of the page render does not have to be top to bottom.

Specific Errors

When I use an HTML entity, such as

...

  in my template, I get a SAXParseException

Tapestry uses a standard SAX parser to read your templates. This means that your templates must be well formed: open and close tags must balance, attribute values must be quoted, and entities must be declared. The easiest way to accomplish this is to add a DOCTYPE to your the top of your template:

...

Part of the DOCTYPE is the declaration of entities such as    .

Alternately, you can simply use the numeric version:   This is the exact same character and will render identically in the browser.

...