Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:22:59+00:00 2026-05-29T17:22:59+00:00

It doesn’t make much of a difference, I know, but in JSF 2 I

  • 0

It doesn’t make much of a difference, I know, but in JSF 2 I can output a resource (for instance css), in 1 of two ways:

a) Using the standard html <link> component and an absolute path to the component. This is treated as text and is therefore not built into a component.

b) Using the jsf <h:stylesheet> and setting its name and library.

Now, if I am writing the main template site, something that won’t change (fixed), am I better off using plain text and giving absolute paths to the resources? Is there any change in performance, even if insignificant, between using that and the jsf component?

Does JSF optimize the access to this so that it doesn’t have to locate the resource every time the page is rendered?

The same goes for all types of resources, images and javascript.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:23:00+00:00Added an answer on May 29, 2026 at 5:23 pm

    The optimization is actually dependent on the JSF implementation used but yes, both Mojarra and MyFaces have highly optimized the performance of resource handling. Every single possibility of server side and client side caching is been accounted. The most accessed resources are cached in server’s memory, the I/O transfer goes through channels, the proper ETag and Last-Modified response headers are been set, etc. In case of Mojarra, a good starting point to check how it’s all handled is the com.sun.faces.application.resource.ResourceHandlerImpl#handleResourceRequest() method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It doesn't look like basic javascript but nor can I use JQuery commands like
Why doesn't this work? I have bypassed this before but i can't remember how
C# doesn't require you to specify a generic type parameter if the compiler can
There doesn't seem to be a dictionary.AddRange() method. Does anyone know a better way
Doesn't matter what I do, I simply can't get this to play a sound
It doesn't seem possible, but I was hoping someone may be aware of a
It doesn't look like it has that attribute, but it'd be really useful to
Doesn't work with other modules, but to give an example. I installed Text::CSV_XS with
Why doesn't the first example output a warning? #!/usr/bin/env perl use warnings; use 5.012;
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.