• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting all possible values of a property in Personalization Server

 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a single-valued restricted property which has a number of pre-defined values. I want to be able to get hold of all of these values to use to populate a drop-down list in my portlet. Does anyone know how to achieve this?
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
for anyone who's interested I finally got a solution to this from a very nice man at BEA. Here it is:
The key is that you have to use the SchemaManager to get a Schema which will allow you to get get PropertyMetaData.
See the javadoc for more information.
Here you go:

I had finally come up with a solution of my own which (nearly) did the same thing, but this is a much more efficient way of doing it.
[This message has been edited by Angela Poynton (edited November 30, 2000).]
reply
    Bookmark Topic Watch Topic
  • New Topic