- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I tested emptyText in AEM 6.3, it works with datasource if you use Coral3 components.
granite/ui/components/coral/foundation/form/select
You might be using Coral2 components granite/ui/components/foundation/form/select
Yes, It is possible to pass value in datasource, just create a property in datasource node and assign any value.
In servlet get the request path and from request path get datasource node resource and adaptTo Node and get property value and use it in servlet.
e.g. I created dropdownSource property in datasource node and accessing using below code
resourcePath = request.getRequestPathInfo().getResourcePath();
resourcePath = resourcePath.replaceFirst("/.*(apps/)(.*$)", "/$1$2/");
logger.info(resourcePath);
Node itemNode = request.getResourceResolver().getResource(resourcePath).adaptTo(Node.class);
if(itemNode.hasProperty("dropdownSource")) {
// do something
}
Thanks
Arun