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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:39:36+00:00 2026-06-14T03:39:36+00:00

What is the best practice for populating dropdown lists in case of XPages application:

  • 0

What is the best practice for populating dropdown lists in case of XPages application:

  1. the list items managed in the administration menu and displayed using @DbColumn/@DbLookup
  2. the list items stored in property files and retrieved using SSJS

For better performance which can be the preferred solution in case of:

  1. n. of list items<10
  2. n. of list items<100
  3. n. of list items<1000
  4. n. of list items<10000
  • 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-14T03:39:37+00:00Added an answer on June 14, 2026 at 3:39 am

    Neither nor!
    A VERY smart way is to have one (or two) beans that hold all the properties you would be eventually looking for. If that are global values an applicationScope is the right place. For user specific ones it is the sessionScope. Your value population will be easy in the XPage: AppSetup.departments (that is EL code, not SSJS!) where AppSetup is the managed bean name and departments translates into .getDepartments();

    You can start with a simple lookup inside the bean and later add caching and alternate storage (e.g. a MIMEDoc) as you deem fit. Since your “contract” are the public methods you can optimize internally to your hearts desire.

    Here is a SSJS version of the caching lookup, but you want to go for the bean since it allows you to use EL which adds a little extra speed.

    One remark: you know that a kitten must die every time a dropdown list has more than 100 entries. That so NOT suitable for UX. For large values use a grid with search capabilities or other UX elements.

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

Sidebar

Related Questions

I've a best practice question on CouchDB (actually I'm using TouchDB a CouchDB port
the best practice to post youtube videos on website is through using iframes or
Please best practice and 'how to' for using enum with jpa as a data
I'm after some best practice advice here. I have always preferred to store dropdown
What's the best practice for Rails testing for mocking objects vs. using factory objects.
Which is best practice, which results in better performance? using closure or dojo.lang.hitch ?
Which is best practice (in this case): bool Foo::operator==(const Foo& other) { return bar
I was wondering what the best practice is when populating commonly used dropdownlists in
What would be the best practice to sort a list containing date and a
What is the best practice for changing an interface in an application. If the

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.