Hello, i have a HTML Form in a JSP-Page, which orbeon shouldn’t
touch. Orbeon keeps removing the <form> tag around this form, but this
special form must not be handled by orbeon, it’s a form to a external
search and should be treated like that. I have something like this : <form action=http://www.someadress.xyz/do/some/action
method=”post”> <input name=”param” type=”text”/> <input value=”Search” type=”submit”> </form> And Orebeon removes the enclosing <form> , so this is
the result: <input name=”param” type=”text”/> <input value=”Search” type=”submit”> How to stop orbeon from doing this ? Best regards Christian -- 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 |
Oky, I got more Information on this
problem, Orbeon seems to remove only the first Form
Tag in der Document … all following formtags remain unchanged, why is this
happening ? Best Regards Christian From: Christian Belka
[mailto:[hidden email]] Hello, i have a HTML Form in a JSP-Page, which orbeon shouldn’t
touch. Orbeon keeps removing the <form> tag around this form, but this
special form must not be handled by orbeon, it’s a form to a external search
and should be treated like that. I have something like this : <form action=http://www.someadress.xyz/do/some/action
method=”post”> <input name=”param” type=”text”/> <input value=”Search” type=”submit”> </form> And Orebeon removes the enclosing <form> , so this is
the result: <input name=”param” type=”text”/> <input value=”Search” type=”submit”> How to stop orbeon from doing this ? Best regards Christian -- 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 |
Can anybody help me with this Problem ? Please ????? From: Christian Belka
[mailto:[hidden email]] Oky, I got more Information on this
problem, Orbeon seems to remove only the first Form
Tag in der Document … all following formtags remain unchanged, why is this
happening ? Best Regards Christian From: Christian Belka [mailto:[hidden email]]
Hello, i have a HTML Form in a JSP-Page, which orbeon shouldn’t
touch. Orbeon keeps removing the <form> tag around this form, but this
special form must not be handled by orbeon, it’s a form to a external search
and should be treated like that. I have something like this : <form action=http://www.someadress.xyz/do/some/action
method=”post”> <input name=”param” type=”text”/> <input value=”Search” type=”submit”> </form> And Orebeon removes the enclosing <form> , so this is
the result: <input name=”param” type=”text”/> <input value=”Search” type=”submit”> How to stop orbeon from doing this ? Best regards Christian -- 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 |
Christian,
> Can anybody help me with this Problem ? sorry, i don't have a quick solution, but my first idea after reading your first post was "why not implementing that form in xforms, too?". Are there specific reasons for not refactoring the form into a xforms syntax? I think only four components are required for this: In the xhtml:head (xforms:model): - a xforms:instance to hold the form values; - a xforms:submission to post the instance to the target URI; In the xhtml:body: - some xforms:inputs bound to the instance to edit the values; - a xforms:submit to trigger the submission. Using that approach, you don't have to care about orbeon's handling of xhtml:form elements. HTH florian -- 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 ceebee
Christian,
Orbeon Forms doesn't remove your first form, or moves your second one after its own form. The browser (at least Firefox) does that, when presented with invalid markup. In fact Orbeon Forms doesn't touch your forms; it just adds its own form around everything. So the markup sent to the browser looks like: <form id="xforms-form"> <form id="your-first-form">...</form> ... <form id="your-second-form">...</form> </form> This of course is not valid, as you are not allowed to nest HTML forms. Orbeon Forms doesn't know how to deal with <form> elements inside the markup it receives. Maybe it should just fail if it finds a <form> element in the XForms you wrote. The only way I see out of this is to add your form after Orbeon Forms ran. If you have a JSP, since Orbeon Forms runs from a filter, maybe you can add your own filter after that. When deploying the XForms inside the Orbeon Forms war file (not using JSPs), for this we use the theme stylesheet, which runs after XForms. And you can in fact see this in action in the examples, as a search form is added to every page by the theme, adding with a small search text field at the top right of the screen, e.g.: http://www.orbeon.com/orbeon/xforms-controls/ Alex On Mon, Oct 18, 2010 at 2:56 AM, Christian Belka <[hidden email]> wrote: > Oky, I got more Information on this problem, > > > > Orbeon seems to remove only the first Form Tag in der Document … all > following formtags remain unchanged, why is this happening ? > > > > Best Regards > > > > Christian > > > > ________________________________ > > From: Christian Belka [mailto:[hidden email]] > Sent: Freitag, 15. Oktober 2010 11:07 > To: [hidden email] > Subject: [ops-users] getting Orbeon to ignore a specific Form Tag > > > > Hello, > > > > i have a HTML Form in a JSP-Page, which orbeon shouldn’t touch. Orbeon keeps > removing the <form> tag around this form, but this special form must not be > handled by orbeon, it’s a form to a external search and should be treated > like that. > > > > I have something like this : > > > > <form action=http://www.someadress.xyz/do/some/action method=”post”> > > <input name=”param” type=”text”/> > > <input value=”Search” type=”submit”> > > </form> > > > > And Orebeon removes the enclosing <form> , so this is the result: > > <input name=”param” type=”text”/> > > <input value=”Search” type=”submit”> > > > > How to stop orbeon from doing this ? > > > > Best regards > > > > Christian > > -- > 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, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |