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

Custom attributes and custom controllers

When we are creating complex custom components, we need to use some other features to build custom components. Mainly, we have to use custom attributes and custom controllers for custom components. The attributes can be defined in <apex:component> for passing values from the Visualforce page (the page that used the component) to the custom component or to the component's controller.

We have implemented the example explained from the beginning of this chapter. The following is the component markup and it contains the attribute's and the component's definitions. We have two attributes to be passed, which are customer ID and the number of recent orders that we want to show in the page. These two parameters ...

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