Problem with OPS 3.6 (xforms:submission element)

Posted by Senthilvel on
URL: https://discuss.orbeon.com/Problem-with-OPS-3-6-xforms-submission-element-tp25204.html

Hi,
  We are using liferay 4.2.1 and Ops Xforms 3.6. The portlet application behaves as web application when we use   <xforms:submission..../> element
 
when we directly specify the path using <xhtml:a....> it behaves as a portlet application.
 
Here we need only portlet application. I have attached screenshot along with this mail for your reference as well as my sample code. Please help me.   
 
1. Screen shots :
 
  1.1  It is the view in which we have a hyperlink1(To llist.xhtml page),combo box(Language),submitone(a submit button), hyperlink2(comes from epliogue-portle.xpl)
 
        
        
 
 
   1.2 If i click on hyperlink1(To llist.xhtml page) I am getting portlet application, if i select Language or submitone button i get web application
        ie., From my knowledge hyperlink1 uses epilogue-portlet.xpl whereas Laguage or submitone uses epilogue-servlet.xpl. I confirmed this by finding that
 
                       (Hyperlink2) Back To Portlet Home which comes from epligue-portlet.xpl (portlet application) whereas absent in
                        epligue-servlet.xpl (web application).
 
    Note:  Same application works fine with OPS 3.5 ,Liferay 4.2.1 or 4.2.2
 
 
 
2. page-flow.xml
 
 <config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate"
  instance-passing="forward">
 
   <page id="test-page"   path-info="/"
   view="list-records-view.xhtml">
     </page>
 
 <page id="test-laxmi"   path-info="/main_Config/myaction"   
    view="llist.xhtml">
 </page>
 
 
 <epilogue url="oxf:/config/epilogue.xpl"/>
    </config>
 
 
3. list-records-view.xhtml
<xsl:stylesheet version="2.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:xforms="http://www.w3.org/2002/xforms"
        xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
        xmlns:f="http://orbeon.org/oxf/xml/formatting"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:xi="http://www.w3.org/2001/XInclude"
        xmlns:ev="http://www.w3.org/2001/xml-events"
        xmlns:xhtml="http://www.w3.org/1999/xhtml"
 xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
        xmlns:widget="http://orbeon.org/oxf/xml/widget"
        xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
  <xsl:template match="/">
 

 <xhtml:html>
   
 <xhtml:head>
       
 <xhtml:title>InputForm</xhtml:title>
 
 <xforms:model>
 
 <xforms:instance id="main-instance">                                
  <instance> 
   <language/>
  </instance>
         </xforms:instance>
 
 <xforms:submission id="list-submission" ref="instance('main-instance')"  method="post"  action="/main_Config/myaction"/>

</xforms:model>       
 
    </xhtml:head>
        <xhtml:body>
 
 <xhtml:a href="/main_Config/myaction">Back to portlet home</xhtml:a>
 
    <xforms:trigger>
      <xforms:label>Submitone</xforms:label>
      <xforms:action ev:event="DOMActivate">
      <xforms:send submission="list-submission"/>
      </xforms:action>
    </xforms:trigger>
 
    <br/>
   
    <xforms:select1 ref="instance('main-instance')/language">
     <xforms:label>Language</xforms:label>
     <xforms:item>
      <xforms:label>Choose one...</xforms:label>
      <xforms:value/>
     </xforms:item>
     <xforms:item>
      <xforms:label>English</xforms:label>
      <xforms:value>en</xforms:value>
     </xforms:item>
     <xforms:item>
      <xforms:label>French</xforms:label>
      <xforms:value>fr</xforms:value>
     </xforms:item>
     <xforms:item>
      <xforms:label>Spanish</xforms:label>
      <xforms:value>es</xforms:value>
     </xforms:item>
 
     <xforms:action  ev:event="xforms-value-changed"  >
     <xforms:send submission="list-submission" />
    </xforms:action>

    </xforms:select1>

 </xhtml:body>
 </xhtml:html>
 

</xsl:template>
 </xsl:stylesheet>
 
4. llist.xhtml
 
<xsl:stylesheet version="2.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:xforms="http://www.w3.org/2002/xforms"
        xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
        xmlns:f="http://orbeon.org/oxf/xml/formatting"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:xi="http://www.w3.org/2001/XInclude"
        xmlns:ev="http://www.w3.org/2001/xml-events"
        xmlns:xhtml="http://www.w3.org/1999/xhtml"
 xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
        xmlns:widget="http://orbeon.org/oxf/xml/widget"
        xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
 <xsl:template match="/">
 

 <xhtml:html>   
  <xhtml:head>
       
                   <xhtml:title>Display Page</xhtml:title>
 
  </xhtml:head>
   <xhtml:body>
 
                                    <xhtml:h1>DISPLAYPAGE</xhtml:h1><br/>
 
                                     This is second page

                                     <br/>
   
  </xhtml:body>
 </xhtml:html>

 </xsl:template>
 </xsl:stylesheet>
 
 
 
 
 
 
Thanks and Regards
Senthilvel.A [ Software Developer ]


--
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

main_Config.zip (3K) Download Attachment