<pref:else> Tag

When you create a portlet with the WebLogic Workshop Portal Extensions Portlet Designer, you can add different preferences to it that help control the portlet's content and behavior (choose Insert-->New Preference). The portlet preferences JSP tags let you expose those preferences to end users, letting them view and set preferences.

The <pref:else> tag includes the body of the tag if the given portlet preference is not modifiable. If the preference is modifiable, the body of this tag is skipped. Use to display body content if the content in the <pref:ifModifiable> tag is skipped.

Syntax

<tagName attribute="value">
</tagName>

Attributes

None.

Example

<pref:ifModifiable name="showChannelDescription">
<input type="checkbox" name="showChannelDescription" value="true" <%=showChannelDescription ? "checked" : "" %> > Show Channel Description
<%somethingToEdit = true;%>
</pref:ifModifiable> <pref:else> Channel description is unavailable. </pref:else>

The Portal Samples contain examples of portlet preference JSP tags. In the Sample Portal, the RSS RSS News Feed Portlet uses the JSP tags, and the Tutorial Portal contains a Portlet Preferences page.

Related Topics

<pref:ifModifiable> Tag

<pref:getPreference> Tag

<pref:getPreferences> Tag

<pref:forEachPreference> Tag