O'Reilly logo

Visualforce Developer's Guide by W.A.Chamil Madusanka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Referencing Apex Maps and Lists

Apex Maps and Lists can be dynamically refered in a Visualforce page. Apex Lists are vastly used with the <apex:pageBlockTable> and <apex:repeat> tags. In our preceding example (under the Using Dynamic references with Standard objects and custom object section) we have already seen the dynamic references of Apex List. The following example shows the dynamic reference of an Apex Map. This is the markup of the DynamicExampleListMap page:

<apex:page controller="DynamicBindingsMapListExample"> <apex:form > <apex:actionFunction name="reDisplayCustomers" rerender="cust" /> <apex:pageBlock title="Criteria"> <apex:outputLabel value="Starting Letter"/> <apex:selectList value="{!selectedKey}" size="1" onchange="reDisplayCustomers()"> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required