Hello,
Some of our forms have a bunch of elements
that depend on the current selection of a dropdown box. As a simple example,
imagine a form that collects information about a widget. The widget has a type
and each type has 0..n attributes (eg a screw can have lenght, width, step and
so on, a UFO engine can have speed and cloaking capability and so
on).
the list of all widget types + associated elements
is very long (> 1000 types, each with around 10 attributes each) so loading
them in a model instance would cause severe performance problems.
I'm therefore looking for a decent way to use
to load the model instance containing the currently-displayed attributes
dynamically, based on the current widget type selected via a drop down box.
I'm using Orbeon in separate deployment mode, as an Xforms engine.
I looked at having an external instance
<xforms:instance src="http://server/.....getWidgetAttributes"> but I don't
know how to pass parameters to it. Is it possible?
Or are there alternatives to this? It must be a
pretty frequent usage pattern. It's identical in fact to calling a web service
(as in http://www.orbeon.com/ops/doc/integration-webservices),
but is it possible to do it at all from a separate deployment mode?? I don't
even need WS, as long as I can define a http request, I can provide a servlet
returning the required XML).
Thank you very much,
JL
-- 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 |
Check A. On Apr 28, 2008, at 11:12 PM, Jean Luc wrote:
-- 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 |
Hmm... AVTs can be used with certain attributes
only. Discounting the obviously unrelated ones (submission, show et al), can
<xforms:load>be used to load instances (or parts of them) on
demand?
----- Original Message -----
-- 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 |
Actually, I think you could use AVT in a submission/@resource in combination with xforms-value-changed event on the select control.
That event would:
1) write id of the selected widget into an element of some helper instance 2) submit a request to the back end to fetch the attributes for the selected widget ID. The submission/@replace value would be "instance" - the one your xforms widgets' attributes are bound to. Makes sense? If you need more detail please post your xform here so that we can add the code in. A. On Apr 29, 2008, at 5:31 PM, Jean Luc wrote:
-- 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 |
Administrator
|
In reply to this post by Jean Luc-2
No, you can't use xforms:load, but you can use xforms:submission with
replace="instance". That's exactly how most of our applications load and reload instance data. -Erik On Apr 29, 2008, at 8:31 AM, Jean Luc wrote: > Hmm... AVTs can be used with certain attributes only. Discounting > the obviously unrelated ones (submission, show et al), can > <xforms:load>be used to load instances (or parts of them) on demand? > > > ----- Original Message ----- > From: Alexander Zatko > To: [hidden email] > Sent: Tuesday, April 29, 2008 1:09 AM > Subject: [ops-users] Re: dynamically refreshed model instances > (calling WS from a separate deployment)? > > Check > > http://www.orbeon.com/ops/doc/reference-xforms-2 > > section 3.11. Attribute Value Templates > > A. > > > On Apr 28, 2008, at 11:12 PM, Jean Luc wrote: > >> Hello, >> >> Some of our forms have a bunch of elements that depend on the >> current selection of a dropdown box. As a simple example, imagine a >> form that collects information about a widget. The widget has a >> type and each type has 0..n attributes (eg a screw can have lenght, >> width, step and so on, a UFO engine can have speed and cloaking >> capability and so on). >> >> the list of all widget types + associated elements is very long (> >> 1000 types, each with around 10 attributes each) so loading them in >> a model instance would cause severe performance problems. >> >> I'm therefore looking for a! decent w el instance containing the >> currently-displayed attributes dynamically, based on the current >> widget type selected via a drop down box. I'm using Orbeon in >> separate deployment mode, as an Xforms engine. >> >> I looked at having an external instance <xforms:instance src="http://server/.....getWidgetAttributes >> "> but I don't know how to pass parameters to it. Is it possible? >> >> Or are there alternatives to this? It must be a pretty frequent >> usage pattern. It's identical in fact to calling a web service (as >> inhttp://www.orbeon.com/ops/doc/integration-webservices), but is it >> possible to do it at all from a separate deployment mode?? I don't >> even need WS, as long as I can de! fine a ht a servlet returning >> the required XML). >> >> Thank you very much, >> JL >> >> -- >> 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 > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |