Hello Uwe,
Uwe Maurer wrote:
>
> How / where can I define the global Variables type_header_text and
> type_header_footer used in the templates of the JavaBasic Catridge? I
> didn't really find documentation about this, just some hints in the oaw
> forum. So I tried this within my workflow:
>
> <workflow>
> ...
> <component id="generator" class="oaw.xpand2.Generator"
> skipOnErrors="true">
>
> <globalVarDef name="type_header_text" value="// header"/>
> <globalVarDef name="type_footer_text" value="// footer"/>
> ...
> </compontent>
> </workflow>
>
> But all I got is an ERROR when the generator component is executed:
>
> ERROR - line 1:1: unexpected token: /
>
>
yes you are right, this feature is not well documented.
You have two options to define header and footer texts:
1. in the workflow.properties
type.header.text = '//header'
type.footer.text = '//footer'
2. in the workflow.oaw:
<component id="generator" class="oaw.xpand2.Generator" skipOnErrors="true">
<globalVarDef name="type_header_text" value="'// header'"/>
<globalVarDef name="type_footer_text" value="'// footer'"/>
...
</compontent>
Please note the single quotes around the values.
You only miss them :(
The values of globalVars in oaw can be references, so you must add single
quotes around simple strings.
Thorsten
--
View this message in context:
http://www.nabble.com/JavaBasic-Cartridge%3A-How-to-define-GLOBALVAR-type_header_text-tf4248224s17564.html#a12095848
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer