Re: [Xsltforms-support] server-based select loading
Brought to you by:
alain-couthures
From: ac <ac...@hy...> - 2011-02-24 16:21:50
|
Hi Alain, This sounds just great. It seems that my main issue is getting access to so XSLTForms examples and documentation. Unfortunately I have not found much. Do you know better? For example, how would the server return a loaded xf:select? as part of the model? in a separate model? The separate model sounds just fine. How should I address each model? This is obviously basic usage stuff. There must some documentation somewhere. I checked the spec, the wiki, XForms. I get some ideas but I need to get operational quick here. Just a few appropriate examples would surely do the trick. Where could I find them? I am sorry to waste your time with this. Thank you. Andre > Hi André, > > XForms instances are basically used to store input values entered by > the user but can also be used to dynamically construct and update > controls such as xf:select1 or others. Instances can be initialized > internally or externally and submissions permit to replace data into > them. This can appear on every possible event so a sub-control can be > populated dynamically. > > Defining different models allows to limit refresh operations. I'm also > considering the always read only constraint for performance. > > Mixing HTML controls with XForms controls is possible with XSLTForms > but not recommended because it requires complex use of Javascript. > > Do you have other questions? > > -Alain > > Le 23/02/2011 16:38, ac a écrit : >> Hi Alain, >> >> This seems like a trivial question, but looking around, I have not >> found an answer yet, so I am turning to you. >> >> Along with a main model, some XSLTForms have to display a selector >> (e.g. xf:select1) where the options are typically provided by a >> server, typically on return from a previous form submission. What is >> the best practice for managing this? Should the options be part of >> the model and some script in the form loads them to the selector? >> can the pre-loaded selector be part of the model? is there a better >> way of doing this? In this case, although it seems preferable, there >> is no requirement for the selector to be xForm, as it could be html, >> other than it needs to be transmitted and received together with the >> (main) XSLTForms model. The number and exact nature of the selector >> options do vary according to context, previous selections, and >> submitted model content. Also there is typically more than one >> selector involved, along with other guizmos like checkboxes etc. >> >> Thank you. >> >> Regards, >> Andre >> >> >> > > |