Files
alfresco-community-repo/source/test-resources/xforms/unit-tests/rendering-engine-test/form-data-functions-test.ftl
Ariel Backenroth 9c3197d467 most of the way through making the wcm tinymce extensions available from create html. still need to address:
- IE issues
- how to handle uploaded files from the create html context
- break out the filepicker backing code into its own bean (it's mingled into the XFormsBean at the moment)

also reorganizing and pruning the xforms unit test tree.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2007-05-03 21:26:41 +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('output-method-callout') 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>