Author: nbelaevski
Date: 2008-01-09 09:05:00 -0500 (Wed, 09 Jan 2008)
New Revision: 5217
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/std/ObjectTemplateElement.java
Log:
Inner classes support for c:object
Modified:
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/std/ObjectTemplateElement.java
===================================================================
---
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/std/ObjectTemplateElement.java 2008-01-09
14:01:01 UTC (rev 5216)
+++
trunk/cdk/generator/src/main/java/org/ajax4jsf/templatecompiler/elements/std/ObjectTemplateElement.java 2008-01-09
14:05:00 UTC (rev 5217)
@@ -21,13 +21,11 @@
package org.ajax4jsf.templatecompiler.elements.std;
-import org.ajax4jsf.builder.generator.GeneratorException;
import org.ajax4jsf.templatecompiler.builder.CompilationContext;
import org.ajax4jsf.templatecompiler.builder.CompilationException;
import org.ajax4jsf.templatecompiler.el.ELParser;
import org.ajax4jsf.templatecompiler.elements.A4JRendererElementsFactory;
import org.ajax4jsf.templatecompiler.elements.TemplateElementBase;
-import org.apache.tools.ant.BuildException;
import org.apache.velocity.VelocityContext;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
@@ -89,7 +87,7 @@
VelocityContext context = new VelocityContext();
context.put("variable", this.strThisVariable);
context.put("expression", this.strExpression);
- context.put("type", this.strType);
+ context.put("type", this.strType != null ? this.strType.replace('$',
'.') : null);
return this.getComponentBean().processTemplate(getTemplateName(), context);
Show replies by date