forumPost - Forum Post

Displays data as a forum post.

Category

Extension Library

Syntax

<xp:forumPost attributes>content</xp:forumPost>
Table 1. Essential properties
Property Description
id Defaults to forumPost1, forumPost2, and so on.
Table 2. All properties (viewPanel)
Category Properties
basics binding, id, loaded, rendered, rendererType
styling disableTheme, rowStyle, rowStyleClass, style, styleClass, themeId
Table 3. Facets
Key Description
authorAvatar Inserts an image representing the author. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
authorMeta Specifies text with information about the author. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
authorName Specifies text with the author's name. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
postActions Specifies actions to be taken such as a link to be followed. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
postDetails Specifies text for display as the detail of a post. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
postMeta Specifies text with information about the post. Properties: attrs, binding, facetName, id, loaded, rendered, rendererType, disableTheme, themeId.
postTitle Specifies text for display as a title. Properties: binding, id, loaded, rendered, rendererType, disableTheme, style, styleClass, themeId.

Usage

Use this control in conjunction with the Forum View control to display data from main and response documents in a hierarchy that looks like a forum.

Examples

This example displays documents as forum posts.
<xp:this.data>
	<xp:dominoView var="view1" viewName="AllThreads"></xp:dominoView>
</xp:this.data>
<xe:forumView rows="10" id="forumView1"
	collapsibleDetail="false" showItemsFlat="false" var="viewEntry"
	pageName="/Test_ExtLib_forumViewPostA.xsp">
	<xe:this.summaryColumn>
		<xe:viewSummaryColumn columnName="Title"
			columnTitle="Title">
		</xe:viewSummaryColumn>
	</xe:this.summaryColumn>
	<xe:this.data>
		<xp:dominoView viewName="AllThreads"
			var="dataEntry">
		</xp:dominoView>
	</xe:this.data>
	<xp:this.facets>
		<xe:pagerDetail id="pagerDetail1"
			xp:key="pagerTop" for="forumView1">
		</xe:pagerDetail>
		<xp:panel id="panel9" xp:key="detail">
			<xe:forumPost id="forumPost1">
				<xp:this.facets>
					<xp:image
						xp:key="authorAvatar" url="/xpPostRead.gif" id="image1"
						height="45" width="45">
					</xp:image>
					<xp:text
						xp:key="authorName" escape="true" id="computedField12">
						<xp:this.value><![CDATA[#{viewEntry["Author"]}]]></xp:this.value>
					</xp:text>
					<xp:text
						xp:key="authorMeta" escape="true" id="computedField13">
						<xp:this.value><![CDATA[#{viewEntry["Author"]}]]></xp:this.value>
					</xp:text>
					<xp:text escape="true"
						xp:key="postTitle" style="margin:0" id="computedField8"
						tagName="h4">
						<xp:this.value><![CDATA[#{viewEntry["Title"]}]]></xp:this.value>
					</xp:text>
					<xp:text
						xp:key="postDetails" escape="true" id="computedField7">
						<xp:this.value><![CDATA[#{viewEntry["Abstract"]}]]></xp:this.value>
					</xp:text>
					<xp:text
						xp:key="postMeta" escape="true" id="computedField11">
						<xp:this.value>
							<![CDATA[#{javascript:return "Created on "+viewEntry.getColumnValue("Date")}]]>
						</xp:this.value>
					</xp:text>
					<xp:div xp:key="postActions">
						<xp:link
							escape="true" text="Close" id="link1"
							value="/Test_ExtLib_forumView1.xsp">
						</xp:link>
					</xp:div>
				</xp:this.facets>
			</xe:forumPost>
		</xp:panel>
		<xe:pagerSaveState id="pagerSaveState1"
			xp:key="pagerBottomRight" for="forumView1">
		</xe:pagerSaveState>
		<xe:pagerSizes id="pagerSizes1"
			xp:key="pagerBottom" for="forumView1">
		</xe:pagerSizes>
		<xe:pagerAddRows id="pagerAddRows1"
			xp:key="pagerBottomLeft" for="forumView1">
		</xe:pagerAddRows>
		<xe:pagerExpand id="pagerExpand1"
			xp:key="pagerTopLeft" for="forumView1">
		</xe:pagerExpand>
	</xp:this.facets>
</xe:forumView>