Storing settings in servoy.properties

Hi,

I noticed that when you create a serverside plugin with the option to set properties on the Servoy Admin page, that they get strored in the Servoy.properties with the name that you give them.

I see a possible conflict if multiple people start to create plugins with this feature and they would name the properties the same (for example: licensekey).

Whouldn’t it be handy to store the properties in the servoy.properties with the name of the plugin in front of them? That way the mixing up of properties can be prevented.

I know we could include the name of the plugin as prefix to the name of the setting, but that looks very strange on the admin page

Just thinking hypothetical here… :D

Paul

The documentation of the method reads:
For use in server-admin page, should be the same properties as set in preference panel. Key must be the properties name (prefix with plugin name! to prevent collisions), the value some description/information to dhow to user about this property

It’s been a while since your response, Jan, but I’m running into this again.

I get what your saying, but I was wondering if you could change the logic a bit, so that the entry int eh Servoy.properties automatically get’s prefixed with the plugin name, and that in the Preference Panel and on the Admin webpage, I do not have to prefix the name of the property.

The name of the property, together with the prefix (pluginname) can become quite long and, at least on the Admin page, all properties for a certain plugin are allready grouped together by plugin with as title the pluginname.

So, in conclusion, the Admin page becomes a bit messy currently (according to my opinion) if you have to prefix all properties with their plugin name.

Hope you see what I mean…

Paul

Whould it helpo if we make the font smaller on the admin page, we prefer to show the full name so it is clear for all servoy server admins and servoy developers what the name of the property is.

Tha could help, or place the name of the property above the textfield with the value.

But I’m stubborn :D

I think it’s pretty clear if the block of properties belonging to one plugin have the pluginname as header (as it currently allready has) and that the underlying properties are only shown with their property name (exluding the pluginname), while in the servoy.properties the two (Pluginname and propertyname) are concatenated.

But hey, that’s just me.

Paul

Actually we wish to leave it up to the user to name their plugin properties to whatever they want. This is especially useful if you have multiple plugins that use a base of common properties, or if you want to name them in some way which represents their functional grouping instead of which plugin they happen to be from.

An example are mail.* properties which you could use for configuring mail stuff, such as the mail.smtp.host property, etc.

Greetings,
Sebastiaan

wow, that reply is a bit late… :lol:

I think there have been quite a few changes to the Admin pages since I brought this issue up.

It aint an issue anymore. The layout is a lot better now.

Paul