![]() Operating systems: i5/OS, Linux,Windows |
The <portal-logic/> tags are used to provide tags for conditional logic.
<portal-logic:if loggedIn="yes" screen="Home"> <!-- content area --> </portal-logic:if>
Attributes of the <portal-logic:if/> tag
indicates whether the client supports the specified capability. capability can be one of the following values:
|
|
Indicates whether the locale of the client is that of the specified locale (or subtype of the specified locale). You can specify a comma-separated list, such as en, en_US .
<%-- login button --%> <portal-logic:if loggedIn="no" notScreen="Login"> <td class="wpsToolBar" valign="middle" nowrap> <a class="wpsToolBarLink" href='<portal-navigation:url home="public" screen="Login" ssl="false"/>'> <portal-fmt:text key="link.login" bundle="nls.engine"/> </a> </td> </portal-logic:if>
Indicates if a navigation is available.
Indicates if the portlet is rendered in a separate browser window or iFrame from the portal (HTML only).
Checks whether a page is selected. This means that the page is in the selected path by the user of which the content is shown.
Checks if a subsequent set of pages are available to be accessed from the navigation.
Checks if a previous set of pages are available to be access from the navigation. For example, this tag could be used in combination with a <portal-navigation:navigationShift> to render a scroll icon when the number of user-defined pages exceeds the number of displayed page tabs. This condition behaves contrary to the pageAvailableNext attribute.
<portal-logic:if pageCompletelyActive="no"> <p align="center" class="wpsFieldErrorText"><b><br> >>> <portal-fmt:text key="info.pagenotcompletelyactive" bundle="nls.engine"/> <<< <br></b></p> </portal-logic:if>
<portal-logic:if pageBookmarkable="true"> <option value='<portal:url command="AddBookmark" alias="Favorites"/>' > <portal-fmt:text key='link.favorites.add' bundle='nls.engine'/> </portal-logic:if>
Renders its contents if the portlet is maximized. This call can only be used inside of a skin JSP.
<portal-logic:if portletState="Normal,Maximized"> <% tableHeight = "height=\"100%\""; %> </portal-logic:if>
<portal-logic:if portletSolo="no"> <%@ include file="./topNav.jspf" %> <%@ include file="./sideNav.jspf" %> </portal-logic:if>
Used in the Login.jsp screen to write the content of the tag if the value of this attribute is equal to the setting of the persistent.session.level key in the ConfigService.
Used in the Login.jsp screen to write the content of the tag if the value of this attribute is equal to the setting of the persistent.session.option key in the ConfigService.
<portal-logic:if navigationAvailable="yes" screen="Home,LoggedIn,LoggedOut"> .... </portal-logic:if>
<portal-logic:if selection="ibm.portal.Home"> You are on Home </portal-logic:if>
<portal-logic:if showTools="no"> <% if (firstButton) { firstButton = false; } else { %> | <% } %> <a href='<portal-navigation:url command="ShowTools"/>'> <img border="0" align="absmiddle" width="16" height="19" src='<portal-logic:urlFindInTheme file="show_tools_off.gif"/>' alt='<portal-fmt:text key="link.show.tools" bundle="nls.engine"/>' title='<portal-fmt:text key="link.show.tools" bundle="nls.engine"/>' </a> </portal-logic:if> <portal-logic:if showTools="yes"> <% if (firstButton) { firstButton = false; } else { %> | <% } %> <a href='<portal-navigation:url command="ShowTools"/>'> <img border="0" align="absmiddle" width="16" height="19" src='<portal-logic:urlFindInTheme file="show_tools_on.gif"/>' alt='<portal-fmt:text key="link.hide.tools" bundle="nls.engine"/>' title='<portal-fmt:text key="link.hide.tools" bundle="nls.engine"/>'</a> </portal-logic:if>
For either condition, the <portal-navigation:url command="ShowTools"/> command is used to change the value of showTools, allowing the icon on the portal page to be used as a toggle. This condition is also checked in ShowTools.jsp to determine whether to render the move and delete portlet icons in the portlet title bar.
<portal-logic:pageMetaData varname="pageMetaData"> <table> <tr><th>Name</th><th>Value</th></tr> <c:forEach var="metaItem" items="${pageMetaData}"> <tr><td>${metaItem.key}</td><td>${metaItem.value}</td></tr> </c:forEach> </table> </portal-logic:pageMetaData>
This attribute is required
See the Aggregation topic for more information about how the portal server locates resources. The allowRelativeURL attribute indicates whether a fully-qualified or relative URL is generated.
When id is specified, the tag initializes a scripting variable with the value normally written out and nothing is written to the output stream. The value of the id attribute is the name of the scripting variable.
Attribute:When id is specified, the tag initializes a scripting variable with the value normally written out and nothing is written to the output stream. The value of the id attribute is the name of the scripting variable.
Attribute: