Re: Volunteer for Java Development
On 12/26/2011 7:53 PM, Tom Anderson wrote:
On Sat, 24 Dec 2011, Arved Sandstrom wrote:
On 11-12-24 12:54 AM, Roedy Green wrote:
On Fri, 23 Dec 2011 09:15:13 -0800 (PST), Lew <lewbloch@gmail.com>
wrote, quoted or indirectly quoted someone who said :
Struts is obsolete. Use JSF.
I was told JSF has hugely more overhead.
What kind of overhead?
4) API complexity?
All of the web framework APIs are large
No. Stripes is pretty small.
I've never used JSF, so i have no first-hand evidence. By way of
second-hand evidence, i see a lot of questions on forums from people who
are struggling with some aspect of JSF. I very rarely see questions like
that for action-style frameworks like Struts or Stripes, despite the
fact that such frameworks are very widely used.
JSF is a true JCP product for good and bad.
It can be a bit complex to learn to use properly.
JSF + no will to spend time learning the tool = disaster
But when one has done the necessary studies, then it is not
difficult to use.
Also, correct me if i'm wrong, but doesn't JSF (like other
component-style frameworks) make it harder to precisely control the HTML
than action-style frameworks? The last project i did used an
action-style framework. Our web designers sat down and cranked out
finely-tuned HTML for the site, taking care to make it lean, semantic,
portable across browsers, SEO-friendly, etc. We programmers could pick
up their static mockups and made minimal changes to make the appropriate
bits dynamic - replacing a hardcoded value with a ${}, an <input> with a
<webframework:input>, and so on. Can you do that with JSF?
I would say that it depends on the JSF components you decide to use.
If you use the simple 1:1 JSF component-HTML tags, then you can
design the HTML as you want.
An using facelets can actually make the XHTML files be valid and
editable by HTML people XHTML.
If you use some more high level JSF components (incl. extra non
standard components), then you loose control over the HTML (but
may be able to get something done faster).
Your choice.
Arne