+ Start a Discussion
Bhola VishwakarmaBhola Vishwakarma 

Need simple MVC example....

Hiiiiii......

I am new in salesforce.com & I want one simple example which contain link between VFPage, Controller & Bean Class....

So please can you give me that....

Even though I went through the reference copy but I am nt getting any example...

I also got familiar with the fact of Test class too so nothing worry abt that & just need one example to start my skill here...

Please give me any example which is based on MVC architecture here...

kiranmutturukiranmutturu

your vfpage is based on MVC architecture..

JD2010JD2010

Your Visualforce page is your view, if you write an extension (or I guess you could also say whatever your standard object is) is your Controller.

 

http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller

 

One of the main ideas behind it is the separation of the view from the controller makes debugging simpler.

 

For example, if you're outputting an integer in your viewer, but the value of that integer is wrong, you know you need to go to your Controller because that's where the integer value is being calculated.