Hi Erik,
It is another Orbeon form within Liferay, with two controls of calculated
value. I try to catch the header value in two ways with
xxf:get-request-header:
<xh:html xmlns:xh="
http://www.w3.org/1999/xhtml"
xmlns:xxi="
http://orbeon.org/oxf/xml/xinclude"
xmlns:ev="
http://www.w3.org/2001/xml-events"
xmlns:xi="
http://www.w3.org/2001/XInclude"
xmlns:saxon="
http://saxon.sf.net/"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:xxf="
http://orbeon.org/oxf/xml/xforms"
xmlns:fb="
http://orbeon.org/oxf/xml/form-builder"
xmlns:sql="
http://orbeon.org/oxf/xml/sql"
xmlns:fr="
http://orbeon.org/oxf/xml/form-runner"
xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xf="
http://www.w3.org/2002/xforms"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:exf="
http://www.exforms.org/exf/1-0">
<xh:head>
<xh:title>Untitled Form</xh:title>
<xf:model id="fr-form-model" xxf:expose-xpath-types="true">
<xf:instance id="fr-form-instance"
xxf:exclude-result-prefixes="#all" xxf:index="id">
<form>
<section-1>
<result1/>
<result2/>
</section-1>
</form>
</xf:instance>
<xf:bind id="fr-form-binds" ref="instance('fr-form-instance')">
<xf:bind id="section-1-bind" name="section-1"
ref="section-1">
<xf:bind id="result1-bind" ref="result1" name="result1"
calculate="xxf:get-request-header('myheader')"/>
<xf:bind id="result2-bind" ref="result2"
name="result2"/>
</xf:bind>
</xf:bind>
<xf:instance xxf:readonly="true" id="fr-form-metadata"
xxf:exclude-result-prefixes="#all">
<metadata>
<application-name>test2</application-name>
<form-name>test2</form-name>
<title xml:lang="en">Untitled Form</title>
<description xml:lang="en"/>
</metadata>
</xf:instance>
<xf:instance id="fr-form-attachments"
xxf:exclude-result-prefixes="#all">
<attachments>
<css mediatype="text/css" filename="" size=""/>
<pdf mediatype="application/pdf" filename="" size=""/>
</attachments>
</xf:instance>
<xf:instance xxf:readonly="true" id="fr-form-resources"
xxf:exclude-result-prefixes="#all">
<resources>
<resource xml:lang="en">
<section-1>
<label>Untitled Section</label>
</section-1>
<result1>
<label>Result 1</label>
<hint/>
</result1>
<result2>
<label>Result 2</label>
<hint/>
</result2>
</resource>
</resources>
</xf:instance>
<xf:instance id="fr-service-request-instance"
xxf:exclude-result-prefixes="#all">
<request/>
</xf:instance>
<xf:instance id="fr-service-response-instance"
xxf:exclude-result-prefixes="#all">
<response/>
</xf:instance>
<xf:action event="xforms-model-construct">
<xf:setvalue
ref="instance('fr-form-instance')/section-1/result2"
value="xxf:get-request-header('myheader')"/>
</xf:action>
</xf:model>
</xh:head>
<xh:body>
<fr:view>
<fr:body xmlns:p="
http://www.orbeon.com/oxf/pipeline"
xmlns:xbl="
http://www.w3.org/ns/xbl"
xmlns:oxf="
http://www.orbeon.com/oxf/processors">
<fr:section id="section-1-control" bind="section-1-bind">
<xf:label ref="$form-resources/section-1/label"/>
<fr:grid>
<xh:tr>
<xh:td>
<xf:output id="result1-control"
bind="result1-bind">
<xf:label
ref="$form-resources/result1/label"/>
<xf:hint
ref="$form-resources/result1/hint"/>
<xf:alert
ref="$fr-resources/detail/labels/alert"/>
</xf:output>
</xh:td>
<xh:td>
<xf:output id="result2-control"
bind="result2-bind">
<xf:label
ref="$form-resources/result2/label"/>
<xf:hint
ref="$form-resources/result2/hint"/>
<xf:alert
ref="$fr-resources/detail/labels/alert"/>
</xf:output>
</xh:td>
</xh:tr>
</fr:grid>
</fr:section>
</fr:body>
</fr:view>
</xh:body>
</xh:html>