Hi,
I would like to do a submit in a new window. Eg: <f:submission id="search-submission" ref="instance('query-instance')" action="/spil-edit/secure/run-search" validate="true" method="post" replace="instance" instance="result-instance"> </f:submission> How do I accomplish that? gts, Ronny -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Ronny,
What do you mean exactly by "submit in a new window"? -Erik [hidden email] wrote: > Hi, > > I would like to do a submit in a new window. Eg: > <f:submission id="search-submission" ref="instance('query-instance')" > action="/spil-edit/secure/run-search" validate="true" method="post" > replace="instance" instance="result-instance"> > </f:submission> > > How do I accomplish that? > > gts, > Ronny 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Ronthe
Erik,
Same principle as putting a target-attribute on a link, but then applied to a form. Gts, Ronny -----Oorspronkelijk bericht----- Van: Erik Bruchez [mailto:[hidden email]] Namens Erik Bruchez Verzonden: Friday, February 02, 2007 3:54 PM Aan: [hidden email] Onderwerp: Re: [ops-users] submission in new window Ronny, What do you mean exactly by "submit in a new window"? -Erik [hidden email] wrote: > Hi, > > I would like to do a submit in a new window. Eg: > <f:submission id="search-submission" ref="instance('query-instance')" > action="/spil-edit/secure/run-search" validate="true" method="post" > replace="instance" instance="result-instance"> > </f:submission> > > How do I accomplish that? > > gts, > Ronny 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Ronny,
Ok, so my understanding is that you want: 1. The result of the submission to be an HTML page 2. That HTML page to display in a different window To achieve #1, you have to use replace="all", as replace="instance" does not return a new page but returns XML used to replace an XForms instance. You also have to make sure that your URL /spil-edit/secure/run-search actually produces an HTML page. To achieve #2, it looks like at a low level what we want is produce something like this: <form action="..." method="post" target="_blank"> However, Orbeon Forms is not yet able to specify a target this way. I have added an RFE for this: http://forge.objectweb.org/tracker/index.php?func=detail&aid=306625&group_id=168&atid=350207 Note that xforms:load does support an attribute called xxforms:target, which does something similar. If your search query can run with the GET method and URL parameters, then you may be able to just use xforms:load, something like: <xforms:load xxforms:target="_blank" resource="/my/path?{build your URL params here}"/> -Erik Ronny Theunissen wrote: > Erik, > > Same principle as putting a target-attribute on a link, but then applied > to a form. > > Gts, > Ronny > > -----Oorspronkelijk bericht----- > Van: Erik Bruchez [mailto:[hidden email]] Namens Erik Bruchez > Verzonden: Friday, February 02, 2007 3:54 PM > Aan: [hidden email] > Onderwerp: Re: [ops-users] submission in new window > > Ronny, > > What do you mean exactly by "submit in a new window"? > > -Erik > > [hidden email] wrote: >> Hi, >> >> I would like to do a submit in a new window. Eg: >> <f:submission id="search-submission" ref="instance('query-instance')" >> action="/spil-edit/secure/run-search" validate="true" method="post" >> replace="instance" instance="result-instance"> >> </f:submission> >> >> How do I accomplish that? >> >> gts, >> Ronny > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Ronthe
Erik,
Thank you, I will use the load-option. Gts, Ronny -----Oorspronkelijk bericht----- Van: Erik Bruchez [mailto:[hidden email]] Namens Erik Bruchez Verzonden: Monday, February 05, 2007 12:18 PM Aan: [hidden email] Onderwerp: Re: [ops-users] submission in new window Ronny, Ok, so my understanding is that you want: 1. The result of the submission to be an HTML page 2. That HTML page to display in a different window To achieve #1, you have to use replace="all", as replace="instance" does not return a new page but returns XML used to replace an XForms instance. You also have to make sure that your URL /spil-edit/secure/run-search actually produces an HTML page. To achieve #2, it looks like at a low level what we want is produce something like this: <form action="..." method="post" target="_blank"> However, Orbeon Forms is not yet able to specify a target this way. I have added an RFE for this: http://forge.objectweb.org/tracker/index.php?func=detail&aid=306625&grou p_id=168&atid=350207 Note that xforms:load does support an attribute called xxforms:target, which does something similar. If your search query can run with the GET method and URL parameters, then you may be able to just use xforms:load, something like: <xforms:load xxforms:target="_blank" resource="/my/path?{build your URL params here}"/> -Erik Ronny Theunissen wrote: > Erik, > > Same principle as putting a target-attribute on a link, but then applied > to a form. > > Gts, > Ronny > > -----Oorspronkelijk bericht----- > Van: Erik Bruchez [mailto:[hidden email]] Namens Erik Bruchez > Verzonden: Friday, February 02, 2007 3:54 PM > Aan: [hidden email] > Onderwerp: Re: [ops-users] submission in new window > > Ronny, > > What do you mean exactly by "submit in a new window"? > > -Erik > > [hidden email] wrote: >> Hi, >> >> I would like to do a submit in a new window. Eg: >> <f:submission id="search-submission" ref="instance('query-instance')" >> action="/spil-edit/secure/run-search" validate="true" method="post" >> replace="instance" instance="result-instance"> >> </f:submission> >> >> How do I accomplish that? >> >> gts, >> Ronny > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |