OpenWGA 7.10 - OpenWGA Concepts and Features

Design and development » WebTML » Basic concepts

Warnings

WebTML warnings are messages put out by WebTML tags or related functionalities. They inform about potential issues in processing the functionality and therefor are a valuable resource to debug WebTML code.

The tag <tml:warnings> can be used to put out warnings directly on the rendered page. It generates a HTML Table showing the warning information, including the message, the tag that generated the warning, the document context of this tag etc. It however can only put out only warnings that occured in the time between the begin of the request and it's own rendering. So it should be placed at the end of a page.

There are two levels of WebTML warnings:

  • Simple warnings are introduced with a   . They inform about potentially problematic circumstances that nevertheless do not keep the tag from being processed. These circumstances may however provoke false behaviour.
  • Cancel warnings are introduced with a   . They inform about an error in tag processing that lets the tag cancel its functionallity.

It is up to the OpenWGA servers configuration if and how WebTML warnings are put out via <tml:warnings>. They can be put out as HTML table, like described above, as XML comment - visible only in source code - or not at all. Alternatively they may be put out to the application log. Of course those warnings should not be put out on productive websites, so you might want to configure your productive server to omit them. This will allow you to keep the <tml:warnings> tag in your WebTML code for your testing system.

On OpenWGA admin client, see menu "Configuration" > "Basic Settings" and there "Log and warnings" for possible settings.

A WebTML warning should not generally be interpreted as "something going wrong" by the designer, as it merely is just that: A warning about something that may but does not need to be a problem. If it really is or is actually the result of intended behaviour depends on the WebTML code and the intention behind it.