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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:54:54+00:00 2026-05-21T03:54:54+00:00

I have to work with some ids of some components in my backing bean

  • 0

I have to work with some ids of some components in my backing bean so I’ve declared them as constants and I want to use them also in jsf (instead of hardcoding them there).

public final static String SMALL_PACKAGE_QUANTITY_OPT1 = "smallPackageQuantityOpt1";

Please note that I’ve added a getter for it, for jsf to be able to read this property:

public static String getSMALL_PACKAGE_QUANTITY_OPT1() {
    return SMALL_PACKAGE_QUANTITY_OPT1;
}

and in jsf:

 <ice:selectOneMenu id="#{vdcOrderBean.SMALL_PACKAGE_QUANTITY_OPT1}"
 .../>

What is strange is that it says that it cannot find this property:

Property ‘SMALL_PACKAGE_QUANTITY_OPT1’ not found on type beans.VDCOrderBean

Do you guys see any issue in the code?

Thanks.

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

    I think it’s because of the static keyword in front of the getter method. This makes the method part of the class and not of an instance of the class. A bean is an instance of a class so this method is not part of the bean.

    TrueDub’s suggestion is also a good one.

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

Sidebar

Related Questions

I want to add banner to my project. I have done some work in
I'm doing some administrative work with Informix IDS. I have to create some dbspaces,
I have a List of objects that some of them have the same Ids,
I am a C# programmer but I have to work with some VB.Net code
I do some work for a company and we have an idea. What we'd
I have a Winforms application that schedules some work using a service. The service
I have been using an API to do some work. This is how I
I have a work around for this problem, but I've been noticing some peculiar
I have a thread that does the following: 1) Do some work 2) Wait
I am doing some work with Web.Routing, using it to have friendly urls and

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.