Visualforce Announced at Dreamforce 2007
Benioff and three co-founders started Salesforce.
The company hopes to make $1 billion in sales this year. It has 35,000 customers, 900,000 subscribers. Big customers include Cisco, whose chairman John Chambers, is on hand for a speech, Dell, and the Japan Post. There are 24 Japanese ISVs on AppExchange, the company’
Benioff ticks off more stats. The Salesforce.
Last year, it was the back-end business logic via Apex Code. This year, it’
That remains to be seen, but there was no denying that the company has managed to put together the essential ingredients of a hosted developer environment: database, business logic, and now, the user interface, all in one place. The two key advantages of Visualforce touted at the conference are onscreen flexibility and support for multiple devices. You can produce onscreen forms with far more control over the look and feel, including things like blogs and wizards that would have been difficult or impossible to do before. And you can port applications to devices. Benioff mentioned tablets, kiosks and mobile phones, and showed off a demo running on an iPhone. As with Apex Code itself, Visualforce remains a work in progress, with programmer feedback awaited. But one of the biggest advantages of SaaS is that feature upgrades can be continual, as long as they are backwards compatible.
Benioff said that the impetus for the platform is the ever-widening span of Salesforce.
Of course it’
Speaking at a “deep dive” breakout session, senior product manager Andrew Waite talked about some of the history leading up to Visualforce. He said that Salesforce has already given administrators and other non-technical people the ability to customize the interface, adding basic field elements, controlling whether a given field required, and specifying its data type. “That got us really far, but we realized we needed more. So we introduced technology Web integration links which let you embed hyperlinks on a page. The point of that was to link your Salesforce system with some external system that lets you augment the user interface, which in term might intercept the request and process it with a Web service.”
S-controls came later. Essentially mechanisms for defining and storing custom control, s-controls create and display custom data forms using components like custom links, Web tabs, and buttons. “S-controls allow you to do some of that processing in the browser, itself.” But while s-controls have become a staple of Salesforce.
With Visualforce, Salesforce claims it has created the first on-demand implementation of a model-view-controller (MVC) architecture, a widely used way of separating the visual interface from data manipulation. In an MVC structure, the model represents the data, the view represents the presentation of that data, and the controller represents the business logic that manipulates the data. In Visualforce, the model is provided by custom objects?a staple of the Salesforce.
- Pages specify the look of an application’
s AppExchange server.
- Controllers represent the logic of an interface, as well as connecting the screen presentation with the underlying data. A given page interacts with a given controller through components, which bring data in and send it out for storage. Salesforce did the obvious and implemented controllers with Apex Code, providing a common language for the interface and the business logic. Code features include full database access, as well as Web services for calling other systems, accessing internal databases functions, and more. Controllers can maintain the state across page interactions, which is useful for constructing a wizard?in which logic is carried through multiple page steps. As with the pre-built components, Salesforce provides pre-built standard controllers for such standard chores as view, edit and save, again, without any additional coding required.
Salesforce now makes a distinction between standard and custom presentations and behaviors. A standard look and feel requires neither Apex Code nor Visualforce, and can already be done simply by using the application framework. This molecular component of the framework is a tab, which can be automatically created from any data object. But for developers who want different behaviors and presentations, Apex Code and, now, Visualforce, come into play?separately or together. The emphasis here is on incremental change. For example, you can create a custom look and feel coupled with standard behavior by leveraging one of the standard controllers. Or you can do both by using a page and custom controller. Pages can be used just to extend the look and feel of the default interface, altering, for example, the standard header and footer areas, as well as binding it to a specific tab. Or you can override elements of the user interface, for example, altering the screens linked with one tab, but not the others. At the other side of the spectrum, you can create pages and behaviors that don’
Ron Hess: Developer Evangelist
At the Dreamforce Developer’
- Where exactly does Visualforce fit into the platform?
- With Visualforce we now have a presentation layer that completes our platform. We have code and logic running on our servers and now we have a user interface, delivered as a service from our servers.
- How much control did developers have over the user interface before Visualforce?
ve already built ? little pieces of the Salesforce interface like page blocks and input fields that allow you to build your page quickly and easily, without understanding or developing your own AJAX-type library. So you can have AJAX behaviors and interact with Salesforce elements without coding your own AJAX interface.
- How far along is support for portable devices?
- The Apple guys are here and you can see Visualforce running on an iPhone. The idea is straightforward: with just a few style sheets, you can take an ordinary page and makes it available for any device. The style sheets are just regular Web style sheets. Before, you had to go into our stylesheets and learn them. Now, using our components, you can leverage those styles and you don’
t have to do anything extra. Or, you can discard all of those stylesheets and create your own stylesheets as we’ ve done for the iPhone demo.
- So when a new device comes out, who is responsible for creating the stylesheet?
- Whoever is going to deliver the application. We’
re not writing every application in the world. Our developers and our partners are. So the partner who want to command the lead for that device can go out and build that application, write those style sheets and deliver that app.
- It took a long time previously if you wanted to add elements to an existing page. Is that right?
- Yes. It was tedious and error-prone and could only be done by an expert who understood stylesheets and HTML.
- What was the hurdle?
- You could do that with an s-control. Today, now, with a single tag from our component library you can include that entire page block. And our server delivers a completely finished HTML page with the Salesforce style in it.
- The implication seems to be the s-controls are becoming obsolete?
- One of the design goals was to do s-controls better. The design goal was to do everything an s-control does and more, and do it on the server where possible. We want to deliver the data and the experience, and by combining the data with the page on the server, delivery is much quicker. The page is delivered as a whole ? there’
s no going back to the server, fetching another bit of data and coming back.
- You are encouraging developers to get going by including 50 pre-built components.
- Yes, and that number will increase. Not only will we increase the number of components available, partners and customers will be able to build components in the future?not today?and then those will grow. I can imagine writing a library of components for the iPhone.
- Is this the on-demand version of a building block solution?
- We think so. It was very complex to build a beautiful application before. If all you had to work with was s-controls, when you look at what Visualforce offers, it’
s really compelling. We think it is the finishing block on our platform as a service.