Thanks for the tip, it worked perfectly. Now can I do the same thing for a link?

I have the following snippets:

markup: <div class="result_title"><a class="result_link"></a></div>
cutpoint: {id: "title", selector: ".result_link"},
object tree: {ID: "title", linktext: result.title, target: result.unescapedUrl},

Again the renderer is XML escaping the "result.title" value when I want it to use the value as HTML directly. I tried the 'markup' trick and while that places the markup in the <a> it ends up ignoring the target and the href attribute is never set.

-Eric

On 12/18/10 1:23 AM, Antranig Basman wrote:
Hi Eric -

Use the "UIVerbatim" component by attaching the material you want to render to the member of the component named "markup" rather than the one named "value" from UIBound (in Javascript we use "duck typing").

http://rsf.fluidproject.org/wiki/Wiki.jsp?page=PrimitiveComponents

I would direct you to the relevant page on the Fluid wiki but it all appears to be down at present. The naming and semantic of Fluid renderer components are identical to those in RSF where they are supported (some like UIInternalLink are currently not, since we are yet to return to the server-side)


On 17/12/2010 22:35, Eric Dalquist wrote:
I have some JSON data coming back that contains markup. I have the Fluid Renderer generating output just fine but it appears to be XML escaping everything so instead of a bold section of text showing I see "<b>search term</b>". How can I tell the renderer to not do XML escaping on my input?

Thanks,
-Eric



_______________________________________________________
fluid-work mailing list - [email protected]
To unsubscribe, change settings or access archives,
see http://fluidproject.org/mailman/listinfo/fluid-work

_______________________________________________________
fluid-work mailing list - [email protected]
To unsubscribe, change settings or access archives,
see http://fluidproject.org/mailman/listinfo/fluid-work

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________________
fluid-work mailing list - [email protected]
To unsubscribe, change settings or access archives,
see http://fluidproject.org/mailman/listinfo/fluid-work

Reply via email to