Problem with OPS 3.6 (xforms:submission element)

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with OPS 3.6 (xforms:submission element)

by Senthilvel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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 ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

main_Config.zip (3K) Download Attachment

Re: Problem with OPS 3.6 (xforms:submission element)

by Alessandro Vernet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, May 2, 2008 at 12:12 AM, Senthilvel <senthil.xforms@...> wrote:
>   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

Recently, we haven't been using the portlet functionality much here,
but I remember that at some point a bug was introduced which broke the
<xforms:submission replace="all"> and <xforms:load> in portlets. See
below the bug for the <xforms:load>.

http://forge.objectweb.org/tracker/?group_id=168&atid=350207&func=detail&aid=307940

For now you can either make sure that your portlet are all in "one
page", i.e. that they only update by sending <xforms:submission
replace="instance"> to the server. You can maybe use an
<xforms:switch> instead of having different pages.

The alternative is for you to investigate in the Java code of Orbeon
Forms what goes wrong, and why the <xforms:submission replace="all">
and <xforms:load> take you out of the portal. The fix might be simple
(as this clearly used to work), but getting "into the code" might be a
somewhat more involved.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/