|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
new feature: loading subformsWe have integrated a new feature into Chiba that i consider
interesting to all XForms power users. In our current Chiba 3 branch we have integrated support for loading subforms into already running forms by using an extension to the standard XForms <load> action e.g. <xf:load show="embed" target="targetIdRef"> <xf:resource value="'mysubform.xml'"/> </xf:load> will load the resource 'mysubform.xml', initialize it and embed it into the current form by replacing the element denoted by @target. All lifecycle events that normally occur for a form will be fired during init of the subform to allow proper setup. We've also implemented a variant of the load action that allows unloading of the form. We're still evaluating the best syntactical alignment with the XLink standard to express all use cases but the actual (un)loading code works quite fine and stable. Motivation: we have a project that has to support a very complex schema that allows hundreds to thousands of combinations of certain structures. These can even be nested into arbitrary depths. It wouldn't have been possible to code all those combinations into one form in a static manner. This would have resulted in forms with ten thousands lines of markup - not very pratical from a memory usage and parsing time point of view. There's still some polishing to do until it's ready for final rollout but the new load/@show="embed" will be definitely part of the final Chiba 3 release and IMO improve the scalability and maintainability a lot. Comments welcome. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Chiba-users mailing list Chiba-users@... https://lists.sourceforge.net/lists/listinfo/chiba-users |
|
|
Re: new feature: loading subformsA nice move. I had considered putting that sort of capability in via my
own code. Adam Joern Turner wrote: > We have integrated a new feature into Chiba that i consider > interesting to all XForms power users. In our current Chiba 3 branch > we have integrated support for loading subforms into already running > forms by using an extension to the standard XForms <load> action e.g. > > <xf:load show="embed" target="targetIdRef"> > <xf:resource value="'mysubform.xml'"/> > </xf:load> > > will load the resource 'mysubform.xml', initialize it and embed it > into the current form by replacing the element denoted by @target. All > lifecycle events that normally occur for a form will be fired during > init of the subform to allow proper setup. We've also implemented a > variant of the load action that allows unloading of the form. We're > still evaluating the best syntactical alignment with the XLink > standard to express all use cases but the actual (un)loading code > works quite fine and stable. > > Motivation: > we have a project that has to support a very complex schema that > allows hundreds to thousands of combinations of certain structures. > These can even be nested into arbitrary depths. It wouldn't have been > possible to code all those combinations into one form in a static > manner. This would have resulted in forms with ten thousands lines of > markup - not very pratical from a memory usage and parsing time point > of view. > > There's still some polishing to do until it's ready for final rollout > but the new load/@show="embed" will be definitely part of the final > Chiba 3 release and IMO improve the scalability and maintainability a > lot. > > Comments welcome. > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Chiba-users mailing list > Chiba-users@... > https://lists.sourceforge.net/lists/listinfo/chiba-users > > ******************************************************************************************************************** This message may contain confidential information. If you are not the intended recipient please inform the sender that you have received the message in error before deleting it. Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Thank you for your co-operation. NHSmail is the secure email and directory service available for all NHS staff in England and Scotland NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSI recipients NHSmail provides an email address for your career in the NHS and can be accessed anywhere For more information and to find out how you can switch, visit www.connectingforhealth.nhs.uk/nhsmail ******************************************************************************************************************** ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Chiba-users mailing list Chiba-users@... https://lists.sourceforge.net/lists/listinfo/chiba-users |
| Free embeddable forum powered by Nabble | Forum Help |