> -----Original Message----- > From: Derek Hohls [mailto:[email protected]] > Sent: vrijdag 13 februari 2009 9:03 > To: [email protected] > Subject: HTML Styling in displayed form widgets? > > Using Cocoon 2.1.8 > > Can anyone give me an idea how to retain HTML tags in a form widget : > > e.g.. in form template, widget is: > > <ft:widget id="message"> > > and in flowscript, its assigned a value: > > model.message = "<b>Hey!</b>"; > > but the output is presented exactly as this: > > <b>Hey!</b> > > (and not in bold). > > (Note The above is a trivial example; real app needs many > more tags than this... so CSS stylng will not help) >
The message content is a string and not XML although it looks like XML. It's returned as <b>Hey!</b> instead of <b>Hey!</b>. On [1] I found: "Messages are added using the addMessage method on this widget. The argument can be a string, but also any object implementing the XMLizable interface, for example org.apache.cocoon.forms.util.I18nMessage." [1] http://cocoon.apache.org/2.1/userdocs/widgets/widget_messages.html Jasha Joachimsthal [email protected] - [email protected] www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100 +1 (707) 773-4646 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
