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:
Here I just printed the value to a dynamic label on the XPage component:
If you are one of the low level Eclipse/Java people out there and you want to create Eclipse components for Lotus Notes 8.5 you might want to check out the new article on the CA Wiki. There is an extension in the CAE that allows you to contribute your own configuration tab (user interface) to the Advanced Properties dialog for your component. This would make configuring your component as custom as you would like.
If you use the OpenSpan container for native applications you can see the extent to which they customized this dialog. You can check out their demo which shows how to integrate a native application into Lotus Notes.
This is a commonly used piece of function if you are writing SWT based components that use Property Broker for declarative communication. The SWTHelper class does a few things that can make you code easier to follow. If you have any other suggestions around this space get with me or post feedback on the wiki.