aspose file tools
The moose likes JSF and the fly likes In JSF - what is the MVC? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "In JSF - what is the MVC?" Watch "In JSF - what is the MVC?" New topic
Author

In JSF - what is the MVC?

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

In the JSF framework , what is the MVC?

I dont understand why the backbean are cosider as the model they couple to the view.
change in them will required change in the view.

Thank you
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35224
    
    7
Some good explanations of the MVC principle, and how it relates to Java web apps, can be found at http://faq.javaranch.com/java/Model1Model2MVC and http://www.javaranch.com/journal/200603/Journal200603.jsp#a5


Android appsImageJ pluginsJava web charts
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

Originally posted by avihai marchiano:

change in them will required change in the view.


That's pretty much true anyway. After all, the View is a display of the Model.

JSF is about the purest implementation of MVC you'll find for J2EE. No web-based application can be 100% pure MVC, since in true MVC, changes in the model should be postable back to the view, and HTTP protocols don't allow a server to send unsolicited data, though you can fake it with AJAX or timed page refresh.

But aside from that limitation, JSF backing beans contain only a small amount of Controller code, if any. The Controller is almost entirely in JSF tags and in the JSF infrastructure.

So it's pretty close.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: In JSF - what is the MVC?
 
Similar Threads
View in MVC
Homepage contains data fetch by database
Im New to JSF Please help to understand basic concept
Is there any similar to Spring themes in JSF?
Spring MVC 3 and JSF2 Integration