How to Render the Controls Dynamically??

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to Render the Controls Dynamically??

Sathish K Mittapelli

 Hi All,

This is my Model

<xforms:model>
<xforms:instance id="control types">
    <controlTypes>
          <textBox/>
          <radio/>
    </controlTypes>
</xforms:instance>

<xforms:instance id="control types">
    <controlCode>
          <textBoxCode> <xforms:input ref="instance('controlTypes')/textBox"/></textBoxCode>
          <radioCode><xforms:select1 ref="instance('controlTypes')/radio"/></radioCode>
    </controlCode>
</xforms:instance>
<xforms:model>

In body i am trying to get the controls dynamically by calling like this

<xforms:output ref="instance('controlCode)/textBoxCode"/>
<xforms:output ref="instance('controlCode)/radioCode"/>

But always i am getting the output as shown below insted of the Expected output.

<xforms:input ref="instance('controlTypes')/textBox"/>
<xforms:select1 ref="instance('controlTypes')/radio"/>


Can anybody help me how to render that control code as Controls



THANKS & REGARDS
SATHISH K MITTAPELLI  



Forgot the famous last words? Access your message archive online. Click here.

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws