{"action":"opened","issue":{"url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2296","labels_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2296/labels{/name}","comments_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2296/comments","events_url":"https://api.github.com/repos/orbeon/orbeon-forms/issues/2296/events","html_url":"https://github.com/orbeon/orbeon-forms/issues/2296","id":94104954,"number":2296,"title":"Dynamic loading of subforms","user":{"login":"ebruchez","id":105769,"avatar_url":"https://avatars.githubusercontent.com/u/105769?v=3","gravatar_id":"","url":"https://api.github.com/users/ebruchez","html_url":"https://github.com/ebruchez","followers_url":"https://api.github.com/users/ebruchez/followers","following_url":"https://api.github.com/users/ebruchez/following{/other_user}","gists_url":"https://api.github.com/users/ebruchez/gists{/gist_id}","starred_url":"https://api.github.com/users/ebruchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebruchez/subscriptions","organizations_url":"https://api.github.com/users/ebruchez/orgs","repos_url":"https://api.github.com/users/ebruchez/repos","events_url":"https://api.github.com/users/ebruchez/events{/privacy}","received_events_url":"https://api.github.com/users/ebruchez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orbeon/orbeon-forms/labels/1%20Point","name":"1 Point","color":"0052cc"},{"url":"https://api.github.com/repos/orbeon/orbeon-forms/labels/RFE","name":"RFE","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-09T17:14:57Z","updated_at":"2015-07-09T17:14:57Z","closed_at":null,"body":"Extracted from #1248.\r\n\r\nThis is mostly implemented for Form Builder 4.0, see [Dynamic XForms](http://wiki.orbeon.com/forms/projects/core/dynamic-xforms).\r\n\r\nThis is a further improvement whereby new content can be somehow inserted into a form.\r\nE.g.:\r\n\r\n```xml\r\n<fr:subform .../>\r\n```\r\n\r\nAn action can allow loading the subform (e.g. `xf:load` or other).\r\n\r\nRough ideas for implementation:\r\n\r\n- `<fr:subform/>` could itself be visible to the XForms engine as an XBL component, and - its content prefixed by its id\r\n- the content of the subform can be seen as an XBL component itself\r\n- this means that it has a shadow tree created\r\n- shadow tree is created dynamically at runtime, using lazy loading of XBL bindings mechanism"}}