The ICEfaces component library also includes a set of panels that support a wide range of user interface layouts. Let's look at a few of these panel components to gain a better appreciation of the power of ICEfaces' layout capabilities.
Swing/AWT programmers will be familiar with the BorderLayout
class. This class provides an interesting layout manager for the Java GUI toolkit that subdivides a panel into five distinct regions. These regions are known as the North, South, East, West, and Center regions.
The<ice:panelBorder>
tag supports the BorderLayout
layout algorithm within a JSF application. Each region is represented by a facet with the same name as shown in the following example.
<ice:panelBorder cellspacing="2" cellpadding="2" align="center" height="200px" width="400px"> <f:facet name="north"> <ice:outputText value="North" /> </f:facet> <f:facet name="west"> <ice:outputText value...