December 2013
Intermediate to advanced
448 pages
13h 44m
English
This subsection provides the code for a sample implementation of the Skills Matrix. It includes the controller, the page, and controller test cases.
Listing 6.20 contains a sample implementation of the Skills Matrix controller class. The controller has four variables, each with a getter method for access by the Visualforce page. The selectedContactId variable contains the unique identifier of the contact selected for editing or viewing. isEditable is a flag used by the page to enable or disable the Save button and to determine whether to render skills as text fields or editable drop-down lists. The selectedContact variable contains several fields from the Contact object needed throughout the ...