myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: performance comparison between 1.1.5 and 1.2.2?
Date Wed, 30 Jan 2008 16:44:01 GMT
I would vote on the personal preference for this. Unless the JSF component
is really adding value then plain HTML is much faster. graphicImage is nice
as it adds the servlet context to the URL, but for other HTML elements, it
probably isn't worth it (notice that jsf has no <a name=""/> support). But I
would say stop this thread before it becomes a passion war.

As for the original post, facelets should still be faster than JSF 1.2 since
it bypasses all the JSP tag code, but this is by no means conclusive, just
my hunch.

-Andrew

On Jan 30, 2008 9:34 AM, Alonso Isidoro Roman <alonsoir@gmail.com> wrote:

> hi people,
>
> i think its better to use jsf components when you dont have html
> equivalent component,  it means that If the application server has a small
> tree of objects, its performance would be better  that another application
> with more components.
>
>
>
> 2008/1/30, Mario Ivankovits <mario@ops.co.at>:
>
> > Hi!
> > >> Is it better to use plain html tags (if possible) instead of jsf-tags
> > >> e.g. for images, divs etc when no EL expressions are used ?
> > >>
> > >
> > > Yes, definitely. This is just a block of "verbatim" text, which is
> > written out very efficiently. Using a component to write the same text is
> > much slower and gains nothing.
> > >
> > > And it looks nicer too..
> > >
> > I would not have answered if you would not have used the word
> > "definitely" ;-)
> >
> > I'd prefer to use components only. With one exception, static texts -
> > but how many static texts do you have in an i18n enabled application :-)
> >
> > Using components is just the base idea of JSF and in the long run I
> > think you are on the safe side using them.
> > For example, would you really write <img
> > src="#{context.contextPath}/to/my/image.png" /> ?
> > Looks really like in g'ol days with JSP, no?
> >
> > Having <h:graphicImage src="/to/my/image.png" /> is not that much
> > longer, and saves you from the internals of the used servlet
> > environment.
> >
> >
> > In the end it is all about personal preferences :-)
> >
> >
> > Ciao,
> > Mario
> >
> >
>
>
> --
> Alonso Isidoro Roman.

Mime
View raw message