Re: Dynamically setting item appearances
Re: Dynamically setting item appearances
- Subject: Re: Dynamically setting item appearances
- From: Art Isbell <email@hidden>
- Date: Thu, 20 Feb 2003 14:04:27 -1000
On Thursday, February 20, 2003, at 01:23 PM, Ray Ackland wrote:
I expect there is an (easy?) way to be able to dynamically alter the
appearance of text in a web application. The example is using a
WORepetition on a table, where some elements of the table are going to
be bold.
Do you mean a WOConditional? With a WOConditional, you can change the
appearance of text based on the value of the conditional expression.
Or you can bind the WOString "value" key to a Java function that
returns text modified by HTML tags based on some criterion. There are
many ways to modify the appearance of text using WO.
I tried just adding the <B></B> tags to the string being displayed,
but not unsurprisingly, WO allowed for this to make it appear
literally in the page, rather than interpreted as html code.
HTML in a string will be interpreted if you set the "escapeHTML"
binding to "false". Note that this can be a security issue if users
are allowed to enter arbitrary HTML that will be interpreted.
Art
http://homepage.mac.com/aisbell/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.