*/
public static final int CONTENT_DEFAULT = CONTENT_TEXT;
+ /** Array of content mode names that are rendered in UIDL as mode attribute. */
+ private static final String[] CONTENT_MODE_NAME = {"text","pre","uidl","xhtml","xml","raw"};
+
private Property dataSource;
private int contentMode = CONTENT_DEFAULT;
* if the Paint Operation fails.
*/
public void paintContent(PaintTarget target) throws PaintException {
+ if (contentMode != CONTENT_TEXT)
+ target.addAttribute("mode", CONTENT_MODE_NAME[contentMode]);
if (contentMode == CONTENT_TEXT)
target.addText(toString());
else if (contentMode == CONTENT_UIDL)