Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How get configuration in angular widgets
Hi Guys, I Know how createa a Configuration and access it from portlet: My configuration:
@ExtendedObjectClassDefinition(scope = ExtendedObjectClassDefinition.Scope.SYSTEM, category="oauth2")
@Meta.OCD(id = "com.bv.lray.base.configuration.ShowPocAdminProperties", name = "Oauth 2 Connect")
public interface ShowPocAdminProperties {
@Meta.AD(required = false)
public String aplicationId();
@Meta.AD(required = false)
public String aplicationSecret();
@Meta.AD(required = false)
public String apigeeUrl();
@Meta.AD(required = false)
public String capiUrl();
}
My Portlet:
@Component(
configurationPid = "com.bv.lray.base.configuration.ShowPocAdminProperties",
immediate = true,
property = {
"com.liferay.portlet.display-category=category.sample",
"com.liferay.portlet.header-portlet-css=/css/main.css",
"com.liferay.portlet.instanceable=true",
"javax.portlet.display-name=ShowConfigAdminBv",
"javax.portlet.init-param.template-path=/",
"javax.portlet.init-param.view-template=/view.jsp",
"javax.portlet.name=" + ShowConfigAdminBvPortletKeys.SHOWCONFIGADMINBV,
"javax.portlet.resource-bundle=content.Language",
"javax.portlet.security-role-ref=power-user,user"
},
service = Portlet.class
)
public class ShowConfigAdminBvPortlet extends MVCPortlet {
...
}
But my problem is: How I get Configuration values from Angular widget?
Any help?
Regards.
Allan