I have an OSGi service that needs to access values stored by a component in it's design dialog.
Since I don't have access to the currentStyle value. I've attempted to access that Style object by instantiating it myself, with little luck.
My current code to access it from the the ServletRequest is
SlingHttpServletRequest resource = (SlingHttpServletRequest)request;
ComponentContext componentContext = WCMUtils.getComponentContext(resource);
Page page = componentContext.getPage();
Design design = page.adaptTo(Design.class);
return design.getStyle(componentContext.getCell())
At this point there is a style object, but no values get returned from it.