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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:29:10+00:00 2026-06-15T21:29:10+00:00

I am trying to implement the sample bubble chart into my code as a

  • 0

I am trying to implement the sample bubble chart into my code as a test before I later on connect it with the database involved. The following is my chartBean.java code:

package jsf;


import java.io.Serializable;
import javax.enterprise.context.Dependent;
import javax.faces.bean.ManagedBean;
import org.primefaces.model.chart.BubbleChartModel;
import org.primefaces.model.chart.BubbleChartSeries;

/**
 *
 * @author AOL
 */
@ManagedBean(name = "chartBean")
@Dependent

public class ChartBean implements Serializable { 

    private BubbleChartModel bubbleModel;

    public ChartBean() {
        createBubbleModel();
    }

    private void createBubbleModel() {
        bubbleModel = new BubbleChartModel();

        bubbleModel.add(new BubbleChartSeries("Acura", 70, 183,55));
        bubbleModel.add(new BubbleChartSeries("Alfa Romeo", 45, 92, 36));
        bubbleModel.add(new BubbleChartSeries("AM General", 24, 104, 40));
        bubbleModel.add(new BubbleChartSeries("Bugatti", 50, 123, 60));
        bubbleModel.add(new BubbleChartSeries("BMW", 15, 89, 25));
        bubbleModel.add(new BubbleChartSeries("Audi", 40, 180, 80));
        bubbleModel.add(new BubbleChartSeries("Aston Martin", 70, 70, 48));
    }
}

I then have some standard database stuff that works fine, lets me do the usual CRUD stuff.

This is the code included in the webpage to try and create the bubble chart:

<h:form>
    <p:bubbleChart id="sample" value="#{chartBean.bubbleModel}" xaxisLabel="Price" yaxisLabel="Labels"
                title="Sample Bubble Chart" style="width:400px;height:300px" />
</h:form>

When I try to access the page without that code it works fine, however, when I add in that line it returns the following error:

/template.xhtml @45,84 value=”#{chartBean.bubbleModel}”: The class ‘jsf.ChartBean’ does not have the property ‘bubbleModel’.

  • 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-15T21:29:11+00:00Added an answer on June 15, 2026 at 9:29 pm

    You have to implement a method that returns the field “bubbleModel”.
    public BubbleChartModel getBubbleModel(){ return bubbleModel; }

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

Sidebar

Related Questions

I am just trying to implement the following code sample on our SQL Server
This is the sample code for web services which am trying to implement .
I have following sample application, where i am trying to implement paging functionality for
I'm trying to implement a sample application to test Callable and ExecutorService interfaces. In
I'm trying to implement the sample code to this article from 2002 (I know..),
I'm trying to implement Tasks in my Application. Here's the sample code: There's one
I am trying to implement some custom security code into SSRS 2008 (not R2)
I was trying to implement Multiple DB connected Fluent NHibernate sample Application . My
I was trying to implement Spring AOP in web app. Unfortunately all the sample
I'm trying to implement OpenGL brush for mac os. Using GLPaint as sample. Main

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.