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

  • Home
  • SEARCH
  • 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 7763519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:40:46+00:00 2026-06-01T14:40:46+00:00

My application needs to implement dynamic images, where a browse can get served a

  • 0

My application needs to implement dynamic images, where a browse can get served a JPG or PNG out of my data base.

I have been reading this thread and am not getting very far in learning from it. Can someone provide a link to a tutorial about how to implement a ResourceHandler.

Having looked through all the books Amazon offers on JSF 2.0, none of them seem to cover this topic. Thanks in advance.

UPDATE: This question is withdrawn since I took a different path to the solution, which was simply to implement a Servlet to serve up the images. What I was asking was how to get the JSF Facelets Servlet to response to a GET with a “image/png” media type. Although it seems that you can do that through the ResourceHandler facility, I found that implementing a Servlet is easier, and what’s more you have more flexibility with regard to the resource path name.

What I was also surprised about is that although the Servlet doesn’t have a FacesContext when it processes a Request, you CAN inject beans or resources that are CDI managed. This gave me the same access to the JPA back end as the rest of the application. So my issue is resolved.

  • 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-06-01T14:40:47+00:00Added an answer on June 1, 2026 at 2:40 pm

    Here are several links to different approaches :

    JSF graphicImage from database – Extending the Resource

    ImageServlet serving from database

    PrimeFaces – Dynamic Images with JSF

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

Sidebar

Related Questions

To implement data access code in our application we need some framework to wrap
we have implemented a web application in asp.net 4.0 and customer needs us to
I have a dynamic application that need to create a window interface with checkbox.
I have an application that needs to constantly (every 50ms), call to an MVC
I am making an android application that needs to add items to a dynamic
I have to implement a plugin architecture for my application. I have the main
can we implement dynamic tab controls in ASP.Net MVC. If so can any one
I'm working on an application which uses servlets to get and set data for
My application needs to constantly connect with remote server to download data. I want
My application needs to create a small ProgressBar programmatically. ProgressBar doesn't have a method

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.