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 974513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:26:56+00:00 2026-05-16T03:26:56+00:00

My requirement is to display tables from database in Graph format and I am

  • 0

My requirement is to display tables from database in Graph format and I am using fiji for the same. And on doing so I am encountering and exception,
My jsp page is as follows.

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:fiji="http://exadel.com/fiji">
    <fiji:columnChart id="columnChartOne" value="#{GraphBean.monthMap}" title="One-series Column Chart" barCaption="none"
                      barColors="#{GraphBean.colors}" captionX="Months" captionY="Amount" toolTipValue="{y} {name} are sold in {x}"
                      subtitle="Hardware sales per month" width="400" height="400">
        <fiji:chartData type="name" value="#{GraphBean.names}" />
    </fiji:columnChart>
</ui:composition>

My bean is as follows :

import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Random;


public class GraphBean {

    private Integer data;
    private  Map<String, Integer> monthMap = new LinkedHashMap<String,Integer>();
    private ArrayList<String> names = new ArrayList<String>();
    private ArrayList<String> colors = new ArrayList<String>();
    Random rnd = new Random(new Date().getTime());

    public GraphBean() {
        super();
        generateData();
    }

    private void generateData() {
        monthMap.put("January", getData());
        monthMap.put("February", getData());
        monthMap.put("March", getData());
    }

    public Map<String, Integer> getMonthMap() {
        return monthMap;
    }

    public ArrayList<String> getNames(){
        names.add("Motherboards");
        return names;
    } 

    public ArrayList<String> getColors(){
        colors.add("#5db2c2");
        return colors;
    } 

    public Integer getData() {
        data = rnd.nextInt(50);
        return data;
    }
}

I have made entry for the bean in the faces-config.xml.

  • 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-16T03:26:56+00:00Added an answer on May 16, 2026 at 3:26 am

    In JSF, you could render the page either with facelet or with JSP (although not recommended)
    As far as I see, you are trying to load JSP page, while adding a facelet tag:

    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:fiji="http://exadel.com/fiji">
    ...
    </ui:composition>
    

    . If you would like to use the pages with facelet, you can download an example that is using facelet here . As you can see, the name of the pages are postfixed with .xhtml and not with .jsp.

    If you would like to use JSP your page has to be:

        <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
        <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
        <%@ taglib uri="http://exadel.com/fiji" prefix="fiji" %>
    
        <html>
         <head>
          <title>enter your name page</title>
         </head>
         <body>
    <f:view>
                <fiji:columnChart id="columnChartOne" value="#{GraphBean.monthMap}" title="One-series Column Chart" barCaption="none"
                                  barColors="#{GraphBean.colors}" captionX="Months" captionY="Amount" toolTipValue="{y} {name} are sold in {x}"
                                  subtitle="Hardware sales per month" width="400" height="400">
                    <fiji:chartData type="name" value="#{GraphBean.names}" />
                </fiji:columnChart>
           </f:view> 
        </body>
        </html>
    

    Again, I would recommend to you to use facelet, if it’s a new project.

    See a tutorial here

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

Sidebar

Related Questions

My requirement is just to display a set of values retrieved from database on
I have a client that has a requirement to display PDFs directly within a
I have a requirement to read and display the owner of a file (for
My requirement is to develop a page with 4 sections, which cannot have a
We have a requirement to increase the functionality of a grid we are using
I am working on a database application in C#. I had a requirement to
I have an ASP ListView, and have a very simple requirement to display numbers
i have a requirement where i need to display a video at the center
I have a requirement in my app which requires me to display some message
I want to display the value from the array displayed below, how to write

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.