Re: Why doesnt Xforms allow submission responses to target specified model.instance.node replacement?

Hi Jason,

This was indeed a glaring omission in XForms 1.0, but it was to a
large extent rectified in an erratum...there is now an attribute on
xf:submission to identify the instance to replace with the results, so
preserving your original request.

This still doesn't allow you to target a particular node to be
replaced, but when combined with the new @origin attribute on
xf:insert (in XForms 1.1) you can easily move things around in the
xforms-submit-done event handler.

The @instance attribute on xf:submission is described here:

  <http://skimstone.x-port.net/node/99>

The new xf:insert features are described here:

  <http://skimstone.x-port.net/node/339>

Regards,

Mark


On 23/06/06, Jason <jeacott@hardlight.com.au> wrote:
>
> Hi all,
>         I keep running into this and wishing that Xforms supported it.
> Is there any reason why as part of the xforms submission element there
> isn't or couldn't be the option for something like:
> <xf:submission id="dostuff" action="someaction" method="post"
> replace="instance('somethingotherelse')/response"
> ref="instance('myxmlservicesblock')//getsomething" />
>
> this bit:
>   replace="instance('somethingotherelse')/response"
>
> is what I'm interested in.
> would be mega handy for returning error messages and other info a user
> might be interested in without having to be sure to collect the the
> entire submitted instance + any extra stuff for every submission that
> might have extra info attached.
> It would also make using soap etc much easier because a bunch of
> preconfigured soap 'templates' could then be easilly used and reused.
> the only way I know to do this currently is to submit an instance
> containing a soap request with replace="instance" then do something with
> the result, at which point you cant resubmit if you want to because your
> request is gone.(or can you? is there a way?)
>
> maybe this would work - havent tried it and it sounds horrible.
> maybe when you want to do the submission again you could delete the
> instance root and then create a new one so that your original "default"
> xml gets rebuilt? would that work?
>
> just a question - it doesn't seem to me that this kind of addition would
> violate the xforms ethos at all.
>
> any thoughts?
> Regards
> Jason
>
>
>
>
>
>
>
>


-- 
Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/

Received on Friday, 23 June 2006 09:21:27 UTC