Hi, So I have an XML string I am getting from my servlet and I’d
like to dynamically populate the guts of my instance with it. The XML is
currently accessible with “request.getParameter(“configXml”).
What I tried to do is something like: <xforms:instance id="config-instance"> <%session.getAttribute("configXml");%> </xforms:instance> However, every time I do that, I get: “Required @src
attribute, @resource attribute, or inline content for instance: config-instance” Is there a way to do this that I’m missing? It needs
to run while the page is loading. I’d rather not have to use XPL if I
don’t really have to, and saving it to a file is not possible. Thanks, Stephanie -- 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 |
Did you check this page?
http://wiki.orbeon.com/forms/how-to/load-initial-form-data BTW I would not use a session attribute for this, but a request attribute instead. -Erik On Wed, Nov 18, 2009 at 2:23 PM, Stephanie Hall (TT) <[hidden email]> wrote: > Hi, > > > > So I have an XML string I am getting from my servlet and I’d like to > dynamically populate the guts of my instance with it. The XML is currently > accessible with “request.getParameter(“configXml”). What I tried to do is > something like: > > > > <xforms:instance id="config-instance"> > > <%session.getAttribute("configXml");%> > > </xforms:instance> > > > > However, every time I do that, I get: “Required @src attribute, @resource > attribute, or inline content for instance: config-instance” > > > > Is there a way to do this that I’m missing? It needs to run while the page > is loading. I’d rather not have to use XPL if I don’t really have to, and > saving it to a file is not possible. > > > > Thanks, > > Stephanie > > -- > 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 |
Hi Erik,
No, I hadn't seen that page, but it was exactly what I was looking for! Thanks! Stephanie -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] Sent: Wednesday, November 18, 2009 5:55 PM To: [hidden email] Subject: [ops-users] Re: Loading instance from Java request or session parameter Did you check this page? http://wiki.orbeon.com/forms/how-to/load-initial-form-data BTW I would not use a session attribute for this, but a request attribute instead. -Erik On Wed, Nov 18, 2009 at 2:23 PM, Stephanie Hall (TT) <[hidden email]> wrote: > Hi, > > > > So I have an XML string I am getting from my servlet and I'd like to > dynamically populate the guts of my instance with it. The XML is > currently accessible with "request.getParameter("configXml"). What I > tried to do is something like: > > > > <xforms:instance id="config-instance"> > > <%session.getAttribute("configXml");%> > > </xforms:instance> > > > > However, every time I do that, I get: "Required @src attribute, > @resource attribute, or inline content for instance: config-instance" > > > > Is there a way to do this that I'm missing? It needs to run while the > page is loading. I'd rather not have to use XPL if I don't really > have to, and saving it to a file is not possible. > > > > Thanks, > > Stephanie > > -- > 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 |
Free forum by Nabble | Edit this page |