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