Alexandru,
Something like this should work:
ref="instance('aggregate')" action="/service/dispatchRequest.do">
<xf:submission id="postResponse" method="post"
<xforms:action ev:event="xforms-submit">
<xf:delete nodeset="instance('aggregate')/*"/>
<xf:insert context="instance('aggregate')" nodeset="*"
origin="instance('userResponse')"/>
<xf:insert context="instance('aggregate')" nodeset="*"
origin="instance('initialData')"/>
</xforms:action>
</xf:submission>
<xf:instance id="aggregate">
<response/>
</xf:instance>
Re. question 2, yes it's possible. You can do this with 2 submissions:
* 1st one submits data to your service implemented in XPL and
retrieves the result
* Upon 1st submission's xforms-submit-done, send 2nd submission
-Erik
On Mon, Dec 7, 2009 at 9:46 AM, Alexandru Ionita
<[hidden email]> wrote:
>
>
> Hello guys,
>
> I have two questions:
>
> 1. How can I submit multiple instances to a J2EE servlet? now I do it like
> this:
>
> <xf:submission id="postResponse" method="post"
> ref="instance('userResponse')" action="/service/dispatchRequest.do"/>
>
> <xf:action ev:event="DOMActivate">
> <xf:setvalue ref="/user-response/userAction">accept</xf:setvalue>
> <xf:send submission="postResponse"/>
> </xf:action>
>
> but I want to merge the instance of userResponse with another instance
> available in my model. Something similar to aggregate("response",
> instance('userResponse'), instance('initialData')) (this is not working
> unfortunately).
>
> and the 2nd question: is there possible to submit this model to a pipe line
> processor, apply some rules on it and then post the final response to the
> particular J2EE servlet.
>
>
> 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
>
>
--
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
Free forum by Nabble | Edit this page |