This should not confuse you. The important part is that your XForms model, whether dynamic or not, is read as it should be before your page B is displayed.
The XForms pipeline cannot have an input named instance. The purpose of the pipeline is to generate an XForms model that contains an instance. That instance will be updated by XUpdate code in the controller. So in summary, the sequence of events is as follows:
1. User views page A. 2. User submits an action on page A. 3. The controller detects the action and possibly execute an action pipeline that you specified (this is still related to page A). 4. Your action result in the pipeline specifies that the target page is page B. Page B's dynamic XForms model's pipeline is executed and generates an XForms model with an instance. 5. Your XUpdate code in the controller updates this instance as you wish. It can replace it with page A's populated instance if that's what you want to achieve (e.g. the wizard scenario). 6. Page B's model and view are executed as usual to display page B.
Between 5 and 6 above, you will see a browser redirect. But this should be seen as an implementation detail. With a server-side forward instead, for example, you wouldn't see such a redirect happen.
-Erik
Peter Charles wrote:
> Erik, > > The part about having the xform of page B execute first is > confusing. I think I understand what is going on, but it does not > help me, as I need an element from page A to properly build the > instance for page B. > > It does seem potentially easier to allow the populated instance from > page A to be passed to page B as an input parameter on page B's > xform attribute. That is, if page B's xform attribute points to an > xpl file and that file has an input parameter named instance, it > would pass page A's (or the calling page's) instance to page B. > > I guess I'll just stick with the session for now. > > Any luck with the other issue? > > Thanks > > Peter
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
