Adolfo Eloy wrote:
Tim Holloway wrote:I've seen far too many Views that were full of bindings and other stuff. I think it's because while JSF was being developed that was originally about the only way to do it, and the examples outlived their usefulness. The Internet is, alas, very good at that. I rarely use bindings. The whole point of JSF is to provide a simple interface to POJOs, but some people can't seem to tolerate simple. Well, I've been accused of that myself, buy when it comes to GUIs, I'd rather not go overboard.
In short, the ultimate "Helper" for JSF Views is JSF itself. All else is just icing.
Tim,
do you think that people are using JSF like the way I said before because most of them are used with action based frameworks like Struts that have the ActionForm interface? Because a class to have only the components of the view seems to be an ActionForm...
What do you think about it?
Thanks in advance.
I think that it's a mixture of "cleverness" and ignorance. As I've said, there's some old, stale docs out there that do things the hard way. But I've also seen where people tried to make a brain-dead coded-by-monkeys framework out of JSF as well. A third possibility, which I'd forgotten is that some of the vendor-supplied packages seem to go this route, apparently to make it easier for their automated frameworks to get the job done (which is just another version of the brain-dead coded-by-monkeys approach).
I'm a big fan of
Alan Kay's rule: "Simple things should be Simple, and Complex things should be Possible", paired with Einstein's "Everything should be as simple as possible, but no simpler". JSF works very well in that regard. However, people seem to be uncomfortable with too much simplicity -- as was parodied in the inventions of Rube Goldeberg.
I can get carried away sometimes myself, but I prefer to do it in more obscure areas and leave the basic UI stuff to be basic.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.