Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/rendering-engine-test/form-data-functions-test.ftl
Ariel Backenroth 6e0afbf34c various minor bug fixes to create/edit form, parseXMLDocuments
- WCM-351 fixes to select workflow screen on IE (weird onchange behavior)
- WCM-468 fixes to remove rendering engine
- doing the jsp 2.0 thing
- WCM-427 fix to encoding issue with parseXMLDocuements
- fix for remove rendering engine templates in create form (wasn't clearing the list in init)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5630 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-04 21:02:05 +00:00

68 lines
2.1 KiB
Plaintext

<#ftl ns_prefixes={"alf", "http://www.alfresco.org"}>
<html>
<head>
<style type="text/css">
body
{
font-family: Tahoma, Arial, Helvetica, sans-serif;
background-color: white;
font-size: 11px;
}
.name
{
color: #003366;
font-weight: bold;
margin-right: 10px;
margin-top: 10px;
}
</style>
<title>Simple Test</title>
</head>
<body>
<div>Generated by output-method-callout.ftl</div>
<div class="name"><#noparse>${alf.avm_sandbox_url}</#noparse></div>
<span>${alf.avm_sandbox_url}</span>
<div class="name"><#noparse>${alf.form_instance_data_file_name}</#noparse></div>
<span>${alf.form_instance_data_file_name}</span>
<div class="name"><#noparse>${alf.rendition_file_name}</#noparse></div>
<span>${alf.rendition_file_name}</span>
<div class="name"><#noparse>${alf.parent_path}</#noparse></div>
<span>${alf.parent_path}</span>
<div class="name"><#noparse>${alf.request_context_path}</#noparse></div>
<span>${alf.request_context_path}</span>
<div class="name"><#noparse>${alf.request_context_path}${simple.uri}</#noparse></div>
<span>${alf.request_context_path}${simple.uri}</span>
<div class="name"><#noparse>${alf._getAVMPath('foo')}</#noparse></div>
<span>${alf._getAVMPath('foo')}</span>
<div class="name"><#noparse>${alf._getAVMPath('/foo')}</#noparse></div>
<span>${alf._getAVMPath('/foo')}</span>
<div class="name">My value accessed using <#noparse>${simple.string}</#noparse>:</div>
<span>${simple.string}</span>
<div class="name">My value accessed using <#noparse>$alf.parseXMLDocument(${alf.form_instance_data_file_name})</#noparse>:</div>
<span>${alf.parseXMLDocument(alf.form_instance_data_file_name).string}</span>
<div class="name">Values from xml files generated by in ${alf.parent_path}:</div>
<ul>
<#list alf.parseXMLDocuments('form-data-functions-test') as d>
<li>
<div class="name">
<#noparse>${d["@alf:file_name"]} = ${d.string}</#noparse>
</div>
<span>${d["@alf:file_name"]} = ${d.string}</span>
</li>
</#list>
</ul>
</body>
</html>