Content Presenter Display Template Support Functions
Function getPropertyDisplayValueShowHTML

String getPropertyDisplayValueShowHTML(javax.servlet.http.HttpServletRequest request, com.bea.content.Node node, String propertyName)
Description

This will take the passed in property name and use it to create a String that will best show that property. If the property holds an image binary, a completed img tag will be returned that will display the image. If the property holds a binary whose MIME type starts with text/ then its text will be returned (this is convenient for returning HTML content). If the property holds any other kind of binary, a completed anchor (a) tag will be returned that will download the binary. Otherwise, the value of the property will be returned. This is to be used when you want to display a specific property but do not want to worry about how best to do it.

Examples

Here is an example of the function call within a c:set tag:

<c:set var="propHTML" value="${templates:getPropertyDisplayValueShowHTML(pageContext.request, node, property)}"/>


Function Information
Function Classcom.bea.content.ui.jsp.templates.utils.TemplateSupport
Function Signature String getPropertyDisplayValueShowHTML(javax.servlet.http.HttpServletRequest request, com.bea.content.Node node, String propertyName)
Display NameNone


Output Generated by Tag Library Documentation Generator.

Copyright © 2008, ${product.vendor} and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.