[ 
https://issues.apache.org/jira/browse/FELIX-4710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14225514#comment-14225514
 ] 

Stefan Seifert commented on FELIX-4710:
---------------------------------------

p.s. is it really required to be still compliant to JDK 1.4 with the current 
webconsole version?

this is very cumbersome to code. raising at least to JDK 1.5 as it is the case 
for the trunk of http://svn.apache.org/repos/asf/felix/trunk/framework would be 
helpful and greatly simplify the code of this patch.

> Web Console: Display templated name hint for factory configuration entries
> --------------------------------------------------------------------------
>
>                 Key: FELIX-4710
>                 URL: https://issues.apache.org/jira/browse/FELIX-4710
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>    Affects Versions: webconsole-4.2.2
>            Reporter: Stefan Seifert
>         Attachments: 141126_FELIX-4710_webconsole_namehint.patch, 
> factoryconfig.gif, factoryconfig_namehint.gif
>
>
> currently for each factory configuration entry in the web console only a very 
> cryptic name is displayed, consisting of the factory PID and a GUID. this is 
> very inconvenient esp. if there are a lot of entries and the user want to 
> edit a specific one:
> !factoryconfig.gif!
> proposal: the author of the OSGi service with factory configuration should be 
> able to provide a "nameHint" template to display a nice human-readable name, 
> and display the pid+gui only as tooltip:
> !factoryconfig_namehint.gif!
> attached is a patch with draft implementation of this based on an optional 
> service property {{webconsole.configurationFactory.nameHint}} which can be 
> set on the service which can reference other property names with 
> placeholders. the web console then displays this name hint with the 
> configured values replaced.
> example (using SCR annotation):
> {code:java}
> @Property(name = "webconsole.configurationFactory.nameHint", value = 
> "{serviceName}: {ribbonHosts}")
> {code}
> this will help on a lot of services, e.g. factory configurations for log 
> configuration an others.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to