Child pages
  • component
Skip to end of metadata
Go to start of metadata

Description

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

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.IndexOutOfBoundsException: Index: 20, Size: 20

Examples

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
  • No labels

2 Comments

  1. Unknown User (behrang)

    The velocity tag is:
    #wwcomponent("template=/my/custom/component.vm" )
    #wwparam( "name=key1" "value=value1" )
    #wwparam( "name=key2" "value=value2" )
    #end

  2. Unknown User (behrang)

    We can also use:
    #wwcomponent("template=/my/custom/component.vm" "key=value1" "key2=value2" )
    #end