jahiaHtml
Tag windowStates


Displays the GUI interface for window state changes, as well as the currently selected state.

Use this tag to display the associated portlet menu to enable various operations such as Maximizing, Minimizing or Closing a portlet (supported operations are dependant on each the portlet). It will also highlight the icon/label which represents the current selected state.

This tag is typically used in conjunction with jahiaHtml:PortletModes.

Example : Displays all the webapps in webappsContainerList along with their associated menus.

<content:containerList name='<%="webappsContainer" + id%>' id="webappsContainerList" parentContainerName="boxContainer">
   <content:container>
     <content:applicationField name='<%="webapp" + id%>' id="webapp" display="false" />
     <bean:define id="portletWindowBean" name="webapp" property="object" />
     <jahia-htmlwindowStates name="portletWindowBean" />
     <jahia-htmlportletModes name="portletWindowBean" />
     <br/>
<bean:write name="webapp" property="value" filter="false" />
     <content:updateContainerURL id="updateWebappsContainerURL" display="false"/>
     <content:deleteContainerURL id="deleteWebappsContainerURL" display="false"/>
     <logic:present name="updateWebappsContainerURL">
       <a href="<bean:write name='updateWebappsContainerURL'/>"><%=updateButton%></a>
       <a href="<bean:write name='deleteWebappsContainerURL'/>"><%=deleteButton%></a>
     </logic:present>
   </content:container>
   <logic:equal name="webappsContainerList" property="size" value="0">
     <content:addContainerURL id="addWebappsContainerURL" display="false"/>
     <logic:present name="addWebappsContainerURL">
        <br/><a href="<bean:write name='addWebappsContainerURL'/>"><%=addButton%> <jahia:resourceBundle
resourceBundle="jahiatemplates.Corporate_portal_templates"
        resourceName="addWebapps"/></a>
     </logic:present>
   </logic:equal>
</content:containerList>

Introduced as from Jahia version 4.5


Tag Information
Tag Classorg.jahia.taglibs.html.portlets.WindowStatesTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
nametruetruejava.lang.Stringname of the pageContext attribute holding the PortletWindowBean

namePostFixfalsetruejava.lang.StringString to append to portlet name's resource bundle key

This corresponds to the following code in HTMLToolbox.drawWindowStateList() :
getResource(resourceBundle,"org.jahia.taglibs.html.portlets.windowstates." + curWindowStateBean.getName() + ".label" + namePostFix)

Default is "".

resourceBundlefalsetruejava.lang.Stringresource bundle to use to find portlet status labels.

Default is 'JahiaEnginesResources'.

listCSSClassfalsetruejava.lang.StringCSS class to use to display portlet status labels.

Default is 'windowStates'.

currentCSSClassfalsetruejava.lang.StringCSS class to use to display the currently selected portlet status label.

Default is 'current'.


Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.