Hi,
I am trying to use only the XFORMS engine of OPS and JSP's I am able to load the XForm (test.jsp). But when I submit the data I am calling another JSP (search.jsp) which again displays back a XFORM. I am not seeing the XFORM instead I am getting its source. Can someone please help me regarding this. Please find the test.jsp and search.jsp below. Thanks Raghu test.jsp <%@ page import="java.util.Random"%> <% // Set content type to XML. By default it will be HTML, and OPS will tidy it. response.setContentType("application/xhtml+xml"); %> <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"> <xhtml:head> <xhtml:title>Flickr Search</xhtml:title> <xforms:model> <xforms:instance id="testinst"> <testinst> <query1></query1> <query></query> </testinst> </xforms:instance> <xforms:submission id="do-query" method="post" ref="instance('testinst')" action="/xforms-jsp/test/search.jsp" xmlns:xforms="http://www.w3.org/2002/xforms"> </xforms:submission </xforms:model> </xhtml:head> <xhtml:body> <xhtml:div class="paragraph"> <xhtml:h1>Flickr Search</xhtml:h1> <xforms:group> <xforms:input ref="instance('testinst')/query"/> <xforms:input ref="instance('testinst')/query1"/> <xforms:trigger> <xforms:label>Flickr Search</xforms:label> </xforms:trigger> <xforms:send submission="do-query" ev:event="DOMActivate"/> </xforms:group> </xhtml:div> </xhtml:body> </xhtml:html> search.jsp <%@ page import="java.util.Random"%> <% // Set content type to XML. By default it will be HTML, and OPS will tidy it. response.setContentType("application/xhtml+xml"); %> <xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"> <xhtml:head> <xhtml:title>Data Submitted</xhtml:title> <xforms:model> <xforms:instance id="testinst"> <testinst> <query1></query1> <query></query> </testinst> </xforms:instance> </xforms:model> </xhtml:head> <xhtml:body> <xhtml:div class="paragraph"> <xhtml:h1>Data Submitted. Check details.</xhtml:h1> <xforms:group> <xforms:input ref="instance('testinst')/query"/> <xforms:input ref="instance('testinst')/query1"/> </xforms:group> </xhtml:div> </xhtml:body> </xhtml:html> Express yourself instantly with Windows Live Messenger -- 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 |
Could be an issue with the filter configuration, the search.jsp is probably not being intercepted by the filter.
On 7/1/06, Raghu Chowdary <[hidden email]> wrote:
-- 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
|
In reply to this post by Raghu Chowdary
On 6/30/06, Raghu Chowdary <[hidden email]> wrote:
> I am trying to use only the XFORMS engine of OPS and JSP's > I am able to load the XForm (test.jsp). But when I submit the data I am > calling another JSP (search.jsp) which again displays back a XFORM. > > I am not seeing the XFORM instead I am getting its source. Hi Raghu, I was able to reproduce this and created a bug entry in the tracker for this. Until we fix this, if you need to use the xforms:submission replace="all", I recommend you put your XForms files in the PresentationServer resources instead of using JSPs. [ #305661 ] When handling the xforms:submission replace="all" in the filter, XForms on the target page does not get filtered http://forge.objectweb.org/tracker/index.php?func=detail&aid=305661&group_id=168&atid=350207 Alex -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |