When a piece of xforms looks like this:
<xforms:select ref="fruits/fruit"> <xforms:item><xforms:label>Banana</xforms:label><xforms:value>banana</xf orms:value></xforms:item> <xforms:item><xforms:label>Pear </xforms:label><xforms:value>pear </xforms:value></xforms:item> <xforms:item><xforms:label>Apple </xforms:label><xforms:value>apple </xforms:value></xforms:item> </xforms:select> The resulting data when all 3 are selected looks like this: <fruits><fruit>banana pear apple</fruit></fruits> What I'd like to see is: <fruits><fruit>banana</fruit><fruit>pear</fruit><fruit>apple</fruit></fr uits> How would one accomplish this? Kind regards, Teun van Eijsden -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |
select/itemset/copy will work; select/itemset/value or select/item/value
will only do the leaf node. I haven't tried this in Orbeon but it ought to work. Leigh. -----Original Message----- From: Teun van Eijsden [mailto:[hidden email]] Sent: Wednesday, February 06, 2008 5:14 AM To: [hidden email] Subject: [ops-users] multiple select values in separate nodes When a piece of xforms looks like this: <xforms:select ref="fruits/fruit"> <xforms:item><xforms:label>Banana</xforms:label><xforms:value>banana</xf orms:value></xforms:item> <xforms:item><xforms:label>Pear </xforms:label><xforms:value>pear </xforms:value></xforms:item> <xforms:item><xforms:label>Apple </xforms:label><xforms:value>apple </xforms:value></xforms:item> </xforms:select> The resulting data when all 3 are selected looks like this: <fruits><fruit>banana pear apple</fruit></fruits> What I'd like to see is: <fruits><fruit>banana</fruit><fruit>pear</fruit><fruit>apple</fruit></fr uits> How would one accomplish this? Kind regards, Teun van Eijsden -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 select-copy-van-eijsden.xhtml (2K) Download Attachment |
Administrator
|
In reply to this post by Teun van Eijsden
XForms as an xforms:copy element which can be used instead of
xforms:value, and this would allow to implement your use case. However, this is not yet supported by Orbeon. We've been wanting to support this for years, here is the RFE: http://forge.objectweb.org/tracker/index.php?func=detail&aid=305615&group_id=168&atid=350207 If anybody wants to help implement this, we would be very happy! In the meanwhile, you would have to work around this. You could store the value into a separate instance, and upon xforms-value-change perform the appropriate xforms:insert / xforms:delete to copy around the elements and values. -Erik On Feb 6, 2008, at 5:13 AM, Teun van Eijsden wrote: > When a piece of xforms looks like this: > > <xforms:select ref="fruits/fruit"> > > <xforms:item><xforms:label>Banana</ > xforms:label><xforms:value>banana</xf > orms:value></xforms:item> > <xforms:item><xforms:label>Pear </xforms:label><xforms:value>pear > </xforms:value></xforms:item> > <xforms:item><xforms:label>Apple </xforms:label><xforms:value>apple > </xforms:value></xforms:item> > </xforms:select> > > > The resulting data when all 3 are selected looks like this: > <fruits><fruit>banana pear apple</fruit></fruits> > > What I'd like to see is: > <fruits><fruit>banana</fruit><fruit>pear</fruit><fruit>apple</ > fruit></fr > uits> > > > How would one accomplish this? > > Kind regards, Teun van Eijsden > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > The information contained in this communication and any attachments > is confidential and may be privileged, and is for the sole use of > the intended recipient(s). Any unauthorized review, use, disclosure > or distribution is prohibited. Unless explicitly stated otherwise > in the body of this communication or the attachment thereto (if > any), the information is provided on an AS-IS basis without any > express or implied warranties or liabilities. To the extent you are > relying on this information, you are doing so at your own risk. If > you are not the intended recipient, please notify the sender > immediately by replying to this message and destroy all copies of > this message and any attachments. ASML is neither liable for the > proper and complete transmission of the information contained in > this communication, nor for any delay in its receipt. > > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
How do you retrieve the selected (multiple) values from fruitselect?
Teun > Erik Bruchez said: > ... > In the meanwhile, you would have to work around this. You > could store the value into a separate instance, and upon > xforms-value-change perform the appropriate xforms:insert / > xforms:delete to copy around the elements and values. > > -Erik > > On Feb 6, 2008, at 5:13 AM, Teun van Eijsden wrote: > > > When a piece of xforms looks like this: > > > > <xforms:select ref="fruits/fruit" id="fruitselect"> > > > > <xforms:item><xforms:label>Banana</ > > xforms:label><xforms:value>banana</xf > > orms:value></xforms:item> > > <xforms:item><xforms:label>Pear > </xforms:label><xforms:value>pear > > </xforms:value></xforms:item> > > <xforms:item><xforms:label>Apple > </xforms:label><xforms:value>apple > > </xforms:value></xforms:item> > > </xforms:select> > > > > > > The resulting data when all 3 are selected looks like this: > > <fruits><fruit>banana pear apple</fruit></fruits> > > > > What I'd like to see is: > > <fruits><fruit>banana</fruit><fruit>pear</fruit><fruit>apple</ > > fruit></fr > > uits> > > > > > > How would one accomplish this? > > > > Kind regards, Teun van Eijsden > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > The information contained in this communication and any > attachments > > is confidential and may be privileged, and is for the sole use of > > the intended recipient(s). Any unauthorized review, use, > disclosure > > or distribution is prohibited. Unless explicitly stated otherwise > > in the body of this communication or the attachment thereto (if > > any), the information is provided on an AS-IS basis without any > > express or implied warranties or liabilities. To the > extent you are > > relying on this information, you are doing so at your own > risk. If > > you are not the intended recipient, please notify the sender > > immediately by replying to this message and destroy all copies of > > this message and any attachments. ASML is neither liable for the > > proper and complete transmission of the information contained in > > this communication, nor for any delay in its receipt. > > > > > > -- > > 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 > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 can use the tokenize() XPath function.
tokenize(fruits/fruit,' ')[2] ...will retrieve the 2nd item... A. On Feb 7, 2008, at 3:42 PM, Teun van Eijsden wrote: > How do you retrieve the selected (multiple) values from fruitselect? > > Teun > >> Erik Bruchez said: >> ... >> In the meanwhile, you would have to work around this. You >> could store the value into a separate instance, and upon >> xforms-value-change perform the appropriate xforms:insert / >> xforms:delete to copy around the elements and values. >> >> -Erik >> >> On Feb 6, 2008, at 5:13 AM, Teun van Eijsden wrote: >> >>> When a piece of xforms looks like this: >>> >>> <xforms:select ref="fruits/fruit" id="fruitselect"> >>> >>> <xforms:item><xforms:label>Banana</ >>> xforms:label><xforms:value>banana</xf >>> orms:value></xforms:item> >>> <xforms:item><xforms:label>Pear >> </xforms:label><xforms:value>pear >>> </xforms:value></xforms:item> >>> <xforms:item><xforms:label>Apple >> </xforms:label><xforms:value>apple >>> </xforms:value></xforms:item> >>> </xforms:select> >>> >>> >>> The resulting data when all 3 are selected looks like this: >>> <fruits><fruit>banana pear apple</fruit></fruits> >>> >>> What I'd like to see is: >>> <fruits><fruit>banana</fruit><fruit>pear</fruit><fruit>apple</ >>> fruit></fr >>> uits> >>> >>> >>> How would one accomplish this? >>> >>> Kind regards, Teun van Eijsden >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> The information contained in this communication and any >> attachments >>> is confidential and may be privileged, and is for the sole use of >>> the intended recipient(s). Any unauthorized review, use, >> disclosure >>> or distribution is prohibited. Unless explicitly stated otherwise >>> in the body of this communication or the attachment thereto (if >>> any), the information is provided on an AS-IS basis without any >>> express or implied warranties or liabilities. To the >> extent you are >>> relying on this information, you are doing so at your own >> risk. If >>> you are not the intended recipient, please notify the sender >>> immediately by replying to this message and destroy all copies of >>> this message and any attachments. ASML is neither liable for the >>> proper and complete transmission of the information contained in >>> this communication, nor for any delay in its receipt. >>> >>> >>> -- >>> 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 >> >> -- >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way >> http://www.orbeon.com/ >> >> > > -- > The information contained in this communication and any attachments > is confidential and may be privileged, and is for the sole use of > the intended recipient(s). Any unauthorized review, use, disclosure > or distribution is prohibited. Unless explicitly stated otherwise > in the body of this communication or the attachment thereto (if > any), the information is provided on an AS-IS basis without any > express or implied warranties or liabilities. To the extent you are > relying on this information, you are doing so at your own risk. If > you are not the intended recipient, please notify the sender > immediately by replying to this message and destroy all copies of > this message and any attachments. ASML is neither liable for the > proper and complete transmission of the information contained in > this communication, nor for any delay in its receipt. > > > -- > 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 |
In reply to this post by Leigh L. Klotz, Jr.
Thanks for your suggestion. When I run your example I get this error:
xforms:itemset element must contain one xforms:value or one xforms:copy element. Running on Orbeon Forms 3.6.0.200712061930 When I replace copy by value it runs without errors. It's strange because the text in the error suggests it should work with copy. Teun > -----Original Message----- > From: Klotz, Leigh [mailto:[hidden email]] > select/itemset/copy will work; select/itemset/value or > select/item/value will only do the leaf node. > I haven't tried this in Orbeon but it ought to work. > > Leigh. > > -----Original Message----- > From: Teun van Eijsden [mailto:[hidden email]] > When a piece of xforms looks like this: > > <xforms:select ref="fruits/fruit"> > > <xforms:item><xforms:label>Banana</xforms:label><xforms:value> > banana</xf > orms:value></xforms:item> > <xforms:item><xforms:label>Pear > </xforms:label><xforms:value>pear </xforms:value></xforms:item> > <xforms:item><xforms:label>Apple > </xforms:label><xforms:value>apple > </xforms:value></xforms:item> > </xforms:select> > > > The resulting data when all 3 are selected looks like this: > <fruits><fruit>banana pear apple</fruit></fruits> > > What I'd like to see is: > <fruits><fruit>banana</fruit><fruit>pear</fruit><fruit>apple</ > uits> > > > How would one accomplish this? > > Kind regards, Teun van Eijsden -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |
I don't think Orbeon supports xforms:copy at this time. Instead you can
used ev:event="xforms-value-changed". -----Original Message----- From: Teun van Eijsden [mailto:[hidden email]] Sent: Friday, February 08, 2008 7:42 AM To: [hidden email]; [hidden email] Subject: [ops-users] RE: RE: multiple select values in separate nodes Thanks for your suggestion. When I run your example I get this error: xforms:itemset element must contain one xforms:value or one xforms:copy element. Running on Orbeon Forms 3.6.0.200712061930 When I replace copy by value it runs without errors. It's strange because the text in the error suggests it should work with copy. Teun > -----Original Message----- > From: Klotz, Leigh [mailto:[hidden email]] > select/itemset/copy will work; select/itemset/value or > select/item/value will only do the leaf node. > I haven't tried this in Orbeon but it ought to work. > > Leigh. > > -----Original Message----- > From: Teun van Eijsden [mailto:[hidden email]] > When a piece of xforms looks like this: > > <xforms:select ref="fruits/fruit"> > > <xforms:item><xforms:label>Banana</xforms:label><xforms:value> > banana</xf > orms:value></xforms:item> > <xforms:item><xforms:label>Pear > </xforms:label><xforms:value>pear </xforms:value></xforms:item> > <xforms:item><xforms:label>Apple > </xforms:label><xforms:value>apple > </xforms:value></xforms:item> > </xforms:select> > > > The resulting data when all 3 are selected looks like this: > <fruits><fruit>banana pear apple</fruit></fruits> > > What I'd like to see is: > <fruits><fruit>banana</fruit><fruit>pear</fruit><fruit>apple</ > uits> > > > How would one accomplish this? > > Kind regards, Teun van Eijsden -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |
From an earlier email:
At 9:44 AM -0500 2/8/08, Park, Michael wrote: >I don't think Orbeon supports xforms:copy at this time. Instead you can >used ev:event="xforms-value-changed". Does anyone have a specific example of exactly what this workaround would look like? For example, here is a copy from a select box and an action to go with it: <xforms:select1 id="roster" ref="instance('away-roster-doc')/statistic/team/player" appearance="minimal"> <xforms:label>Players</xforms:label> <xforms:item> <xforms:label>Add Player</xforms:label> <xforms:value /> </xforms:item> <xforms:itemset id="roster-node" nodeset="instance('away-roster-doc')/statistic/team/player"> <xforms:label ref="player-metadata/name/@last" /> <xforms:copy ref="./*" /> </xforms:itemset> </xforms:select1> <xforms:trigger> <xforms:label>Add Player</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:insert nodeset="sports-event/team[team-metadata/@alignment='away']/player" at="1" position="after" origin="instance('stats-template')" /> <xforms:setvalue ref="sports-event/team[team-metadata/@alignment='away']/player/player-metadata/@player-key" value="instance('away-roster-doc')/statistic/team/player/player-metadata/@player-key" /> </xforms:action> </xforms:trigger> This inserts a new player node and copies the selected player-key into it. Forgive me for being thick, but how would this be done with ev:event="xforms-value-changed". Thank You -- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com -- 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 |
Administrator
|
Paul,
On Feb 15, 2008, at 3:12 PM, Paul Kelly wrote: > Does anyone have a specific example of exactly what this workaround > would look like? For example, here is a copy from a select box and > an action to go with it: [...] I just checked in an example, as part of the XForms sandbox, which shows how you can use xforms:delete and xforms:insert to do what xforms:copy does. You will find this example attached here. Note that this example uses the context() function, which has only been implemented a few days ago. You can use a nightly build (http://tinyurl.com/239lvp - this link will expire) or replace context()/@value by instance('main-instance')/@value in the code. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ -- 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 xforms-copy.xhtml (2K) Download Attachment |
At 5:28 PM -0800 2/15/08, Alessandro Vernet wrote:
>I just checked in an example, as part of the XForms sandbox, which shows how you can use xforms:delete and xforms:insert to do what xforms:copy does. You will find this example attached here. Note that this example uses the context() function, which has only been implemented a few days ago. You can use a nightly build (http://tinyurl.com/239lvp - this link will expire) or replace context()/@value by instance('main-instance')/@value in the code. Thanks Alex, that worked swell. I have another general question about inserts. I know xforms only considers homogenous collections so if you wnat to insert <c/> into the following: <list> <a/> <b/> </list> it will alway be intersted first no matter what "postion" and "at" are set to? eg: <list> <c/> <a/> <b/> </list> I think that's just an xforms thing, right? Was just wondering if orbeon had some extention that would place <c/> at the end (as our schema requires). Otherwise I guess an xsl post-process would have to do it. -- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com -- 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 |
Administrator
|
Paul,
On Feb 18, 2008, at 9:35 AM, Paul Kelly wrote: > I think that's just an xforms thing, right? Was just wondering if > orbeon had some extention that would place <c/> at the end (as our > schema requires). Otherwise I guess an xsl post-process would have > to do it. No need for an extension. If you are using nodeset="/list/*", your new element will be added after the last element in <list/>. And don't worry too much about that "homogenous collections" restriction in the XForms specification. That restriction should be relaxed in the specification and we largely do not enforce it as doing so is often just awkward for those writing XForms, and it doesn't make implementing XForms much easier. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ -- 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. Is it possible for webapp built in, say, php to draw on orbeon for just it's forms? Use orbeon as a forms service?
-- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com -- 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 |
At 2:13 PM -0500 2/18/08, Paul Kelly wrote:
>Hi. Is it possible for webapp built in, say, php to draw on orbeon for just it's forms? Use orbeon as a forms service? Sorry for the faqqing faq: http://www.orbeon.com/ops/doc/home-faq#just-xforms If there's any php documentation that would be grea to hand to my php dev. Thanks. -- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com -- 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 |
Administrator
|
On Feb 18, 2008, at 12:57 PM, Paul Kelly wrote:
> Sorry for the faqqing faq: > > http://www.orbeon.com/ops/doc/home-faq#just-xforms > > If there's any php documentation that would be grea to hand to my > php dev. Thanks. You can easily have XForms served by Orbeon Forms, and then call other services written in the language of your choice. If you want to generate XForms on the server side with Java or PHP, things get a little more tricky as you need to have Orbeon Forms process what you generate before it is sent to the client. For Java, we provide a filter, which makes this very easy. But we don't have a off-the-shelf solution for PHP. If you don't really need to have the XForms produced in PHP, then you might want to put your XForms in Orbeon Forms. Otherwise, you might to research if there is in PHP something similar to filters on the Java side. Or you can write a service in Orbeon Forms that does the XForms processing, and call it from PHP in every page. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ -- 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 |
Administrator
|
In reply to this post by Paul Kelly-5
On Feb 18, 2008, at 9:35 AM, Paul Kelly wrote:
> Thanks Alex, that worked swell. I have another general question > about inserts. I know xforms only considers homogenous collections > so if you wnat to insert <c/> into the following: Just a note on this: in XForms 1.1, the notion of homogenous collection is entirely gone. It was simply an unneeded restriction, and we never implemented it as it was easier not to! -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
In reply to this post by Alessandro Vernet
At 1:05 PM -0800 2/18/08, Alessandro Vernet wrote:
>If you don't really need to have the XForms produced in PHP, then you might want to put your XForms in Orbeon Forms. Otherwise, you might to research if there is in PHP something similar to filters on the Java side. Or you can write a service in Orbeon Forms that does the XForms processing, and call it from PHP in every page. In our model, the php grabs the form from Orbeon and sends data/events back to orbeon. Sounds like that's the easy option? -- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com -- 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 |
Administrator
|
On Feb 18, 2008, at 1:15 PM, Paul Kelly wrote:
> In our model, the php grabs the form from Orbeon and sends data/ > events back to orbeon. Sounds like that's the easy option? Let me see if I understand this correctly. You are saying that the XForms is deployed in Orbeon Forms, and that PHP code is getting the page from Orbeon Forms and includes it in the page it sends to the browser. Then Ajax request from the browser go directly to Orbeon Forms. Is this correct? Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ -- 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 |
At 2:20 PM -0800 2/18/08, Alessandro Vernet wrote:
>On Feb 18, 2008, at 1:15 PM, Paul Kelly wrote: > >>In our model, the php grabs the form from Orbeon and sends data/events back to orbeon. Sounds like that's the easy option? > > >Let me see if I understand this correctly. You are saying that the XForms is deployed in Orbeon Forms, and that PHP code is getting the page from Orbeon Forms and includes it in the page it sends to the browser. Then Ajax request from the browser go directly to Orbeon Forms. Is this correct? Correct. -- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com -- 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 |
Administrator
|
On Feb 18, 2008, at 2:25 PM, Paul Kelly wrote:
>> Let me see if I understand this correctly. You are saying that the >> XForms is deployed in Orbeon Forms, and that PHP code is getting >> the page from Orbeon Forms and includes it in the page it sends to >> the browser. Then Ajax request from the browser go directly to >> Orbeon Forms. Is this correct? > > Correct. Yes, sounds good. Here just a couple of things you will need to keep in mind when doing this: * When you get the page from Orbeon Forms in PHP, you will need to forward cookies to the browser appropriately, so when an Ajax request comes back to Orbeon Forms, Orbeon Forms can retrieve information from the session for that user. * For the browser to send back the session cookie to Orbeon Forms in the Ajax requets, the path and host needs to be set appropriately on the cookie. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ -- 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 |
Thanks Alex. We were wondering about how to configure the links to the css and js files. This seems hardcoded somewhere, eg.
<link rel="stylesheet" href="/orbeon/xforms-server/xforms-min.css" > <script type="text/javascript" src="/orbeon/xforms-server/xforms-min.js" p0:url-norewrite="true"> Is the solution to disregard these, move the files somewhere else and link to them? At 3:31 PM -0800 2/18/08, Alessandro Vernet wrote: >On Feb 18, 2008, at 2:25 PM, Paul Kelly wrote: >>>Let me see if I understand this correctly. You are saying that the XForms is deployed in Orbeon Forms, and that PHP code is getting the page from Orbeon Forms and includes it in the page it sends to the browser. Then Ajax request from the browser go directly to Orbeon Forms. Is this correct? >> >>Correct. > >Yes, sounds good. Here just a couple of things you will need to keep in mind when doing this: > >* When you get the page from Orbeon Forms in PHP, you will need to forward cookies to the browser appropriately, so when an Ajax request comes back to Orbeon Forms, Orbeon Forms can retrieve information from the session for that user. >* For the browser to send back the session cookie to Orbeon Forms in the Ajax requets, the path and host needs to be set appropriately on the cookie. -- --paul Paul Kelly Dir. of Operations XML Team: http://xmlteam.com -- 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 |