W3C home > Mailing lists > Public > www-forms@w3.org > November 2003

Re: Multiple bindings to UI Control

From: <ade@benue.com>
Date: Mon, 3 Nov 2003 19:54:35 -0500
To: www-forms@w3.org
Cc: tvraman@us.ibm.com
Message-ID: <OF1CE00491.66A9A873-ON85256DD4.000186A2-85256DD4.0004FF67@benue.com>
Does this point to the issue of the message transformations sometimes 
needed when designing XForms to work with existing services, where the 
messages for review and update are asymmetric?

In the scenario I have described below, I could have a layer (probably at 
the server) designed to transform back and forth between the 
ResponseMessage and a message suitable for use by the models in the 
XForms, say guiUpdateMessage.
guiUpdateMessage would pre-load the XForms screen, and  guiUpdateMessage 
also gets modified by any user updates made in the form. On submission, 
guiUpdateMessage gets transformed to the back-end expected UpdateMessage.

If UpdateMessage were close enough to what is needed in the user 
interface, only one transformation would be required from ReponseMessage 
to UpdateMessage.

I don't see how attribute replace="instance" on element <submission> can 
achieve the transformation that is evidently required when reviewing and 
sending updates via a service with asymmetrical review and update 
messages.

Thanks
-- Ade Lucas


--- "T. V. Raman" <tvraman@us.ibm.com> wrote:
> Date: Thu, 23 Oct 2003 19:27:22 -0700
> To: ade@benue.com
> CC: www-forms@w3.org
> Subject: Multiple bindings to UI Control
> From: "T. V. Raman" <tvraman@us.ibm.com>
> 
> 
> the use case is well motivated and supported by XForms, see
> attribute replace="instance" on element <submission>
> 
> You just happened to start the wrong way around by trying to bind
> the same UI control to multiple instance odes, which in the
> XForms model makes no sense.
> 
> 
> >>>>> "ade" == ade  <ade@benue.com> writes:
>     ade> I have a 3-tier web based application that would benefit
>     ade> from XForms. It basically queries for data from a web
>     ade> service and allows certain fields in the queried data to
>     ade> be modified and sent back as an update to the service.
>     ade> 
>     ade> 
>     ade> The user query yields data from the service via a
>     ade> particular XML message - ResponseMessage - , the updates
>     ade> are however dispatched using a similar but different XML
>     ade> message - UpdateMessage -.
>     ade> 
>     ade> XForms does not appear to support binding of one UI
>     ade> control to more than one instance.
>     ade> 
>     ade> How do I pre-load my form fields from the
>     ade> ResponseMessage message received from the back-end, and
>     ade> send user updates through the UpdateMessage message?
>     ade> 
>     ade> I don't see a way to bind one UI control to a
>     ade> ResponseMessage instance for pre-load with initial
>     ade> values, and at the same time bind the same UI control to
>     ade> an UpdateMessage instance for capturing the user's edits
>     ade> for dispatch to the back-end.
>     ade> 
>     ade> Thanks!  -- Ade Lucas
>     ade> 
>     ade> p.s. This is a re-statement of my previous posting.
>     ade> <br><font size=2 face="sans-serif">I have a 3-tier web
>     ade> based application that would benefit from XForms. It
>     ade> basically queries for data from a web service and allows
>     ade> certain fields in the queried data to be modified and
>     ade> sent back as an update to the service.</font><font
>     ade> size=3> <br> </font><font size=2 face="sans-serif"><br>
>     ade> The user query yields data from the service via a
>     ade> particular XML message - <b><i>ResponseMessage </i></b>-
>     ade> , the updates are however dispatched using a similar but
>     ade> different XML message - <b><i>UpdateMessage </i></b>-.
>     ade> </font><font size=3><br> </font><font size=2
>     ade> face="sans-serif"><br> XForms does not appear to support
>     ade> binding of one UI control to more than one
>     ade> instance. </font><font size=3><br> </font><font size=2
>     ade> face="sans-serif"><br> How do I pre-load my form fields
>     ade> from the <b><i>ResponseMessage </i></b>message received
>     ade> from the back-end, and send user updates through the
>     ade> <b><i>UpdateMessage </i></b>message?</font><font size=3>
>     ade> <br> </font><font size=2 face="sans-serif"><br> I don't
>     ade> see a way to bind one UI control to a
>     ade> <b><i>ResponseMessage </i></b>instance for pre-load with
>     ade> initial values, and at the same time bind the same UI
>     ade> control to an &nbsp;<b><i>UpdateMessage </i></b>instance
>     ade> for capturing the user's edits for dispatch to the
>     ade> back-end.</font><font size=3> <br> </font><font size=2
>     ade> face="sans-serif"><br> Thanks!</font><font size=3>
>     ade> </font><font size=2 face="sans-serif"><br> -- Ade
>     ade> Lucas</font> <br> <br><font size=2
>     ade> face="sans-serif">p.s. This is a re-statement of my
>     ade> previous
>     ade> posting.</font>
> 
> -- 
> Best Regards,
> --raman
> ------------------------------------------------------------
> T. V. Raman:  PhD (Cornell University)
> IBM Research: Human Language Technologies
> Architect:    Conversational And Multimodal WWW Standards
> Phone:        1 (408) 927 2608   T-Line 457-2608
> Fax:        1 (408) 927 3012     Cell: 1 650 799 5724
> Email:        tvraman@us.ibm.com
> WWW:      http://almaden.ibm.com/u/tvraman
> AIM:      TVRaman
> GPG: http://www.almaden.ibm.com/cs/people/tvraman/raman-almaden.asc
> Snail:        IBM Almaden Research Center,
>               650 Harry Road
>               San Jose 95120
> 
> 
Received on Monday, 3 November 2003 22:10:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:56 GMT