Description
Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException
templateDir and theme attribute
The final path to the template will be built using the templateDir and template attributes, like ${templateDir}/${theme}/${template}. If for example your component is under /components/html/option.jsp, you would have to set templateDir="components", theme="html" and template="options.jsp".
For any Struts tag that you use in your component, make sure that you set its templateDir="template"
Parameters
Error formatting macro: snippet: java.lang.NullPointerException
Examples
Error formatting macro: snippet: java.lang.NullPointerException
2 Comments
Unknown User (behrang)
The velocity tag is:
#wwcomponent("template=/my/custom/component.vm" )
#wwparam( "name=key1" "value=value1" )
#wwparam( "name=key2" "value=value2" )
#end
Unknown User (behrang)
We can also use:
#wwcomponent("template=/my/custom/component.vm" "key=value1" "key2=value2" )
#end