Skip to main content

Posts

Showing posts from June, 2010

ADF 11g panelgroup: Tournament Layout

This is a short post on layout. With the quarter finals of the world cup 2010 coming up, it is time to show a simple layout example. A layout to show all teams and groups, competing in the world cup. This layout is achieved by af:panelgrouplayout, af:panelbox, and af:forEach. I read all the group data from a database table, and use the af:forEach to create a panelbox for each group. After that I use another af:forEach to add a line for every team in a group. <af:panelGroupLayout id="pgl1" layout="horizontal" inlineStyle="width:654px;"> <af:forEach var="group" items="#{bindings.ExistingGroups.rangeSet}"> <af:panelGroupLayout layout="vertical" id="pgl3"> <af:panelBox id="pb1" showHeader="always" showDisclosure="false" > <af:forEach items="#{bindings.GroupDraw.rangeSet}" var=