Hi
In my XForm I load a certain list (results of a three-combo dropdown) as follows: Somebody suggested using something like below: The idea was to load the list into an instance each time a submission is called. <xforms:submission id="titles-get" serialize="false" method="get" action="oxf:/California/lists.xml". What is the meaning of the term "oxf" here. How can decide what kind of 'submit' to use? Eventually I would like to submit the results to Orbeon and print out a PDF. |
Administrator
|
<quote author="someperson">
In my XForm I load a certain list (results of a three-combo dropdown) as follows: Somebody suggested using something like below: The idea was to load the list into an instance each time a submission is called. <xforms:submission id="titles-get" serialize="false" method="get" action="oxf:/California/lists.xml". What is the meaning of the term "oxf" here. How can decide what kind of 'submit' to use? </quote> The oxf:/ scheme is a way for you to reference "resources", i.e. files in the WEB-INF/resources directory. Since the file California/lists.xml does not change, is there a reason why you wouldn't load it with: <xforms:instance id="my-instance-name" src="oxf:/California/lists.xml"/> I guess one reason could be that depending on what gets selected by users on the form you want to load other files, such as oxf:/Nevada/lists.xml. In that case, yes, it makes sense to use a submission this way, and this should work. Alex |
My first concern therefore would be to create the right folder in the right place to come up with oxf://California/lists.xml; This I assume is a folder structure in the WEB-INF/resources directory under the orbeon war structure.
This oxf: scheme is in regards to the WEB-INF/resources directory, if I am right in understanding you? lists.xml would be one xml structure that would represent a combined selection on 3 dropdowns and content inside this would be updated, removed, added, etc depending on the user changing his mind or because he is entering fresh data. The idea is to update an eXist database with this XML, but it looks like we do not have access to eXist from our configuration yet. So in order to construct a meaningful URL say, "oxf:/California/lists.xml" <quote author="Alessandro Vernet">
|
Administrator
|
In reply to this post by Alessandro Vernet
See also this FAQ entry about the "oxf:" prefix:
http://www.orbeon.com/ops/doc/home-faq#xpl-oxf-prefix -Erik On Feb 14, 2008, at 5:43 PM, Alessandro Vernet wrote: > > > someperson wrote: >> >> In my XForm I load a certain list (results of a three-combo >> dropdown) as >> follows: >> Somebody suggested using something like below: The idea was to load >> the >> list into an instance each time a submission is called. >> >> <xforms:submission id="titles-get" serialize="false" method="get" >> action="oxf:/California/lists.xml". >> >> What is the meaning of the term "oxf" here. How can decide what >> kind of >> 'submit' to use? >> > > The oxf:/ scheme is a way for you to reference "resources", i.e. > files in > the WEB-INF/resources directory. Since the file California/lists.xml > does > not change, is there a reason why you wouldn't load it with: > > <xforms:instance id="my-instance-name" src="oxf:/California/ > lists.xml"/> > > I guess one reason could be that depending on what gets selected by > users on > the form you want to load other files, such as oxf:/Nevada/ > lists.xml. In > that case, yes, it makes sense to use a submission this way, and > this should > work. > > Alex > > ----- > Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise > http://www.orbeon.com/ > > -- > View this message in context: http://www.nabble.com/meaning-of-%22action%3D%22oxf%3A-......-lists.xml--%22-tp15486800p15493411.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.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 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 |
Free forum by Nabble | Edit this page |