[ https://issues.apache.org/jira/browse/SLING-10259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus resolved SLING-10259. ------------------------------------- Resolution: Duplicate > Default value support for ValueMapValue > --------------------------------------- > > Key: SLING-10259 > URL: https://issues.apache.org/jira/browse/SLING-10259 > Project: Sling > Issue Type: Improvement > Components: Sling Models > Reporter: noel > Priority: Major > > The current solution approach seems to be moving away from having multiple > annotations attached to a field more towards having the injectors support a > set of parameters that do the same job. > Currently, it is possible to combine the > {code:java} > @Default (values = "myvalue") > {code} > annotation with a > {code:java} > @ValueMapValue > {code} > It would be nice if the default value could be handled as a parameter of > ValueMapValue instead > So instead of: > {code:java} > @ValueMapValue > @Default (values = "myvalue") > String fieldname; > {code} > it would be nice to support: > {code:java} > @ValueMapValue(defaults = "myvalue") > String fieldname; > {code} > I think this would be in line with the solution approach taken for the > injector specific annotations -- This message was sent by Atlassian Jira (v8.3.4#803005)