コード例 #1
0
 protected String generateViewSource(GrailsWebRequest webRequest, GrailsDomainClass domainClass) {
   StringWriter sw = new StringWriter();
   templateGenerator.generateView(domainClass, webRequest.getActionName(), sw);
   return sw.toString();
 }
コード例 #2
0
 protected String generateViewSource(String viewName, GrailsDomainClass domainClass)
     throws IOException {
   Writer sw = new FastStringWriter();
   templateGenerator.generateView(domainClass, viewName, sw);
   return sw.toString();
 }