Oracle Fusion Middleware JSP Tag Java API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.2)
E14256-03

Content Presenter Display Template Support Functions
Function getPropertyDisplayValueShowHTML

String getPropertyDisplayValueShowHTML(javax.servlet.http.HttpServletRequest request, com.bea.content.Node node, com.bea.content.Property property)
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, com.bea.content.Property property)
Display NameNone


Oracle Fusion Middleware JSP Tag Java API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.2)
E14256-03

Copyright © 2010, Oracle. All rights reserved.