BorderLayout

Table of Contents

Overview

Since 4.3

The ace:borderLayout component is a container with five different regions (north, south, east, west and center), which are collapsible, expandable, closable, and resizable, except for the center region. The center region is required to be defined for the component to function properly. The regions are defined by nesting ace:borderLayoutPane components in this component. Each BorderLayoutPane has its own ajax events. Moreover, ace:borderLayout's can be nested inside ace:borderLayoutPane's, thus allowing to build any sort of complex layout desired.

See the ICEfaces Showcase Live Demo of this component, complete with source code.

Getting Started

In its typical form, an ace:borderLayout component can be defined as follows.

        <h:form id="form">
            <ace:borderLayout>
                <ace:borderLayoutPane position="center" headerText="Center" footerText="(center footer)">
                    <h:outputText value="CENTER" />
                </ace:borderLayoutPane>
                <ace:borderLayoutPane position="north" headerText="North" footerText="(north footer)" resizable="true" closable="true" toggleable="true">
                    <h:outputText value="NORTH" />
                </ace:borderLayoutPane>
                <ace:borderLayoutPane position="south" headerText="South" footerText="(south footer)" resizable="true" closable="true" toggleable="true">
                    <h:outputText value="SOUTH" />
                </ace:borderLayoutPane>
                <ace:borderLayoutPane position="east" headerText="East" footerText="(east footer)" resizable="true" closable="true" toggleable="true">
                    <h:outputText value="EAST" />
                </ace:borderLayoutPane>
                <ace:borderLayoutPane position="west" headerText="West" footerText="(west footer)" resizable="true" closable="true" toggleable="true">
                    <h:outputText value="WEST" />
                </ace:borderLayoutPane>
            </ace:borderLayout>
        </h:form>

As mentioned before, only the center pane is required. The others are optional. Other ace:borderLayout's con be nested inside one or more of these panes, each with its own configuration and defined number of panes.

Attributes

TagLib Documentation
This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available here.

Most of the configuration is done on the ace:borderLayoutPane components. This container component only has two attributes.

style The style to apply to the main container of the layout."

styleClass The style class of the main container of the layout."

Client Behavior Events

The ajax events are defined on the ace:borderLayourPane component.

JavaScript APIs

ICEfaces 4+

The "widgetVar" attribute on the ACE components has been removed in ICEfaces 4 and in its place a new "ice.ace.instance()" client JavaScript object lookup API has been introduced. The reason for this change is to enable lazy-initialization of the ACE component JavaScript objects to improve runtime performance and reduce browser memory use.

var widget = ice.ace.instance('frm:componentId);
The ice.ace.instance function requires the full client id of the component to be specified, such as "j_idt77:componentId" instead of just "componentId". To reduce the complexity of working with complete IDs with this function it may be preferable in some cases to use prependId="false" in the enclosing form (e.g. <h:form prependId="false">).
This component doesn't have a client-side API made specifically to be used by application developers. However, the component's internal methods and variables can be accessed in this way, including the underlying jQuery object and objects from underlying Javascript libraries (if applicable), and can be used for whatever purpose a developer might have in mind.

Keyboard and ARIA Support

Not supported at the moment.

Known Issues

None at the momeny

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2018 ICEsoft Technologies Canada Corp.