A question from the business partner forum was asked how to access a components preference, the ones entered in the Advanced Preferences panel in the Composite Application Editor. I got this tip from Padraic Edwards on the XPages team. This should help anyone wanting to get an XPage component into a composite or an Eclipse based perspective.
I edited my XPage component to include a new property named BobsValue with a value of The Value is RED:
What you have to do in the XPage application is access it using the context APIs. First thing you need to do however is add a parameter with the same name in the component definition.
Now when you access the property in your XPage event or page you simply call the method as follows:
context.getComponentParameter("BobsValue");
Here I just printed the value to a dynamic label on the XPage component: