xforms-ready

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

xforms-ready

Alexandru Ionita



Hello, 

I'm trying to initialize the xml model dynamic at the run time. For this purpose I've placed the following code in the <xf:model> section:


                <xf:action ev:event="xforms-ready">
<xf:setvalue ref="/user-request/userAction">get_initial_data</xf:setvalue>
<xf:refresh/>
<xf:insert nodeset="instance('formCheckMessages')"
origin="xxforms:call-xpl(
'some_xpl_processor', 
'formData', 
instance('userRequest'), 'userServiceResponse')"/>
<xf:refresh/>
</xf:action>


The problem is that in the [some_xpl_processor] the /user-request/userAction that is placed as input for this xpl through (instance('userRequest')) is coming empty! The value get_initial_data is not set for this field. Is something wrong with my statement? I tried also without the <xf:refresh> command.

Thank you.
Alexandru


--
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
Reply | Threaded
Open this post in threaded view
|

Re: xforms-ready

Louis Ratzesberger

Hi Alexandru,

Doesn't the ref="" also need an instance?  I think ref may
default to the first instance of the first model,  but is that what
you want?  Ref is a single node binding -- it selects a single node.

Have you tried the inspector?

<fr:xforms-inspector/>

to help you debug these situations?

Regards,
Hank

Quoting Alexandru Ionita <[hidden email]>:

> Hello,
>
> I'm trying to initialize the xml model dynamic at the run time. For this
> purpose I've placed the following code in the <xf:model> section:
>
>
>                 <xf:action ev:event="xforms-ready">
> <xf:setvalue ref="/user-request/userAction">get_initial_data</xf:setvalue>
>  <xf:refresh/>
> <xf:insert nodeset="instance('formCheckMessages')"
>  origin="xxforms:call-xpl(
> 'some_xpl_processor',
> 'formData',
>  instance('userRequest'), 'userServiceResponse')"/>
> <xf:refresh/>
>  </xf:action>
>
>
> The problem is that in the [some_xpl_processor] the /user-request/userAction
> that is placed as input for this xpl through (instance('userRequest')) is
> coming empty! The value get_initial_data is not set for this field. Is
> something wrong with my statement? I tried also without the <xf:refresh>
> command.
>
> Thank you.
> Alexandru
>

 

--
Hank Ratzesberger
[hidden email]



--
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