My environment 8.1. I have the follwoing class attached to text widget in a CTD. The 'request' object coming as null in content console, but in AppConsole it is valid request object.
public class AAADefaultValueImpl implements IDefaultable {
public Object getDefaultValue(Map contextMap) throws ApplicationException {
HttpServletRequest request = (HttpServletRequest) contextMap.get(DefaultValueDef.CONTEXT_REQUEST);
return "test";
}
}
thanks
Srini