- TODO:  temporary comment-out velocity dependencies
This commit is contained in:
jdyer1
2023-10-30 12:26:59 -05:00
parent def5254a57
commit 1fc70af56b
2 changed files with 9 additions and 5 deletions
@@ -27,13 +27,15 @@ import jakarta.servlet.ServletContext;
import org.apache.tiles.request.ApplicationContext;
import org.apache.tiles.request.servlet.ServletUtil;
import org.apache.velocity.tools.view.JeeConfig;
// import org.apache.velocity.tools.view.JeeConfig;
/**
* Implements JeeConfig to use parameters set through
*/
public class ApplicationContextJeeConfig implements JeeConfig {
public class ApplicationContextJeeConfig /*implements JeeConfig*/ {
// TODO: Velocity-tools requires javax
/**
* The application context.
*/
@@ -36,7 +36,9 @@ import org.apache.velocity.tools.view.VelocityView;
* the response. To initialize it correctly, call #setParameter(String, String)
* for all the parameters that you want to set, and then call #commit().
*/
public class VelocityRenderer implements Renderer {
public class VelocityRenderer /*implements Renderer*/ {
// TODO: Velocity-tools requires javax
/**
* The VelocityView object to use.
@@ -52,7 +54,7 @@ public class VelocityRenderer implements Renderer {
this.velocityView = velocityView;
}
@Override
/* @Override
public void render(String path, Request request) throws IOException {
if (path == null) {
throw new CannotRenderException("Cannot dispatch a null path");
@@ -67,7 +69,7 @@ public class VelocityRenderer implements Renderer {
// merge the template and context into the writer
velocityView.merge(template, context, request.getWriter());
}
}*/
public boolean isRenderable(String path, Request request) {
return path != null && path.startsWith("/") && path.endsWith(".vm");