JSF Templating without RAD

Posted by Jeffrey Knight on Stack Overflow See other posts from Stack Overflow or by Jeffrey Knight
Published on 2010-05-28T02:03:38Z Indexed on 2010/05/28 2:11 UTC
Read the original article Hit count: 307

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about jsf