JSF Templating without RAD
- by Jeffrey Knight
I have a set of jsp's based off a jtpl template. The template (jtpl file) looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%-- tpl:metadata --%>
<%-- jsf:codeBehind language="java" location="/JavaSource/pagecode/my.java" --%>
<%-- /jsf:codeBehind --%>
<%-- /tpl:metadata --%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<HTML>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<f:view>
<HEAD> ...
Without using RAD, how can I change the jtpl (template) and regenerate jsp? I'm looking for a command line solution.
Related question: is the jsp intended to be rendered from the template design-time in the IDE, or runtime on the server?