I just bought this template.
1. first i see in forum that there is the demo project, but where is it?
2. i followed the steps, (import poseidon layout, template, add dependency to local mvn rep). But i have the following issue :
Code: Select all
public static ArrayList<String> filterStylesheets(FacesContext context, ArrayList<ResourceInfo> resourceInfos) {
if (resourceInfos == null || resourceInfos.isEmpty()) {
return null;
}
ResourceHandler resourceHandler = context.getApplication().getResourceHandler();
ArrayList<String> stylesheets = new ArrayList<String>();
for (ResourceInfo resourceInfo : resourceInfos) {
if (isStylesheet(resourceInfo.getResource())) {
Resource resource;
if (ComponentUtils.isValueBlank(resourceInfo.getLibrary())) {
resource = resourceHandler.createResource(resourceInfo.getName());
}
else {
resource = resourceHandler.createResource(resourceInfo.getName(), resourceInfo.getLibrary());
}
stylesheets.add(resource.getRequestPath());
}
}
return stylesheets;
}
Code: Select all
Caused by: java.lang.NullPointerException: Cannot invoke "javax.faces.application.Resource.getRequestPath()" because "resource" is null
Your help would be greatly appreciated!