get request attribute returning object and not string

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

get request attribute returning object and not string

Vedha
My xForm            

<xf:insert as="xs:string" ev:event="xforms-model-construct-done"
              context="." origin="xxf:set-request-attribute('firstname', instance('user-data'))"/>

Calling this from my servlet, and when i inspect the request parameter, it is coming as SAXStore object and not as String. Please tell me how to get the instance data as string.
Reply | Threaded
Open this post in threaded view
|

Re: get request attribute returning object and not string

Alessandro  Vernet
Administrator
Hi Vedha,

Instead of just storing instance('user-data'), try to store
saxon:serialize(instance('user-data'), 'xml').

Alex

On Fri, Apr 24, 2015 at 2:54 AM, Vedha <[hidden email]> wrote:

> My xForm
>
> <xf:insert as="xs:string" ev:event="xforms-model-construct-done"
>               context="." origin="xxf:set-request-attribute('firstname',
> instance('user-data'))"/>
>
> Calling this from my servlet, and when i inspect the request parameter, it
> is coming as SAXStore object and not as String. Please tell me how to get
> the instance data as string.
>
> --
> View this message in context: http://discuss.orbeon.com/get-request-attribute-returning-object-and-not-string-tp4659844.html
> Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet