Hi all. I'm an Orbeon Forms newbie, trying to
get multiple portlets working with version 3.7.0b1 and Liferay 5.2.2.
The sample portlet is working after setup as per instructions at http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet,
including the context listeners and removing META-INF/context.xml.
I've edited portlet.xml, liferay-portal.xml and
liferay-display.xml to add the new portlet; basically I've just copied the
configuration from the standard one, changing only the name
(SMSNewReport). The Liferay logging shows that the new portlet is
available for use. It shows up in the Add Application menu and can be
deployed to a page.
The first odd thing is that with no other changes
to portlet-prologue, page-flow*.xml etc., the portlet displays "Orbeon Forms -
An Error Has Occurred [...] Cannot load "/apps/SMSNewReport/page-flow.xml" with
webapp loader". Okay, I didn't see that documented anywhere but
it sounds like useful behaviour so I can easily create multiple portlets
with different contents. I made a copy of apps/portlet-welcome as
apps/SMSNewReport, changing only some of the text in view.xhtml so I could see
that the correct one was being used.
When I refresh I get this error
instead:
I managed to get a little bit further by changing
the path-info in apps/SMSNewReport/page-flow.xml from "/" to "/*". Now I
can see the content, but the portlet is actually showing the complete site that
you normally get from a non-portlet deployment of Orbeon: the Orbeon logo at the
top, all the different sample applications down the left, the search box at the
top right and so on. Also the links inside the portlet are all of the
/orbeon variety rather than having been rewritten in portlet style.
From what I've read it sounds like epilogue.xpl is
choosing epilogue-servlet instead of epilogue-portlet, but I cannot figure out
why. Does anyone have any suggestions
what I can do about this behaviour? I've tried a recent nightly
build with no apparent change.
Thanks,
Sean
---
Sean Hogan CLIXtec IT Consulting Inc. m: (709) 687-2275 e: [hidden email] e: [hidden email] w: http://clixtec.ca -- 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
|
Sean,
Can you first try with a nightly build: http://forge.objectweb.org/nightlybuilds/ops/ops/ Quite a bit has changed in the portlet code since beta1. -Erik On Mar 23, 2009, at 4:38 AM, Sean Hogan (CLIXtec) wrote: > Hi all. I'm an Orbeon Forms newbie, trying to get multiple portlets > working with version 3.7.0b1 and Liferay 5.2.2. The sample portlet > is working after setup as per instructions at http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet > , including the context listeners and removing META-INF/context.xml. > > I've edited portlet.xml, liferay-portal.xml and liferay-display.xml > to add the new portlet; basically I've just copied the configuration > from the standard one, changing only the name (SMSNewReport). The > Liferay logging shows that the new portlet is available for use. It > shows up in the Add Application menu and can be deployed to a page. > > The first odd thing is that with no other changes to portlet- > prologue, page-flow*.xml etc., the portlet displays "Orbeon Forms - > An Error Has Occurred [...] Cannot load "/apps/SMSNewReport/page- > flow.xml" with webapp loader". Okay, I didn't see that documented > anywhere but it sounds like useful behaviour so I can easily create > multiple portlets with different contents. I made a copy of apps/ > portlet-welcome as apps/SMSNewReport, changing only some of the text > in view.xhtml so I could see that the correct one was being used. > > When I refresh I get this error instead: > Condition failed for every branch of choose: [(/request/request-path > = '/xforms-server-submit'), (/request/request-path = '/')] > I managed to get a little bit further by changing the path-info in > apps/SMSNewReport/page-flow.xml from "/" to "/*". Now I can see the > content, but the portlet is actually showing the complete site that > you normally get from a non-portlet deployment of Orbeon: the Orbeon > logo at the top, all the different sample applications down the > left, the search box at the top right and so on. Also the links > inside the portlet are all of the /orbeon variety rather than having > been rewritten in portlet style. > > From what I've read it sounds like epilogue.xpl is choosing epilogue- > servlet instead of epilogue-portlet, but I cannot figure out why. > Does anyone have any suggestions what I can do about this > behaviour? I've tried a recent nightly build with no apparent change. > > Thanks, > Sean > --- > Sean Hogan > CLIXtec IT Consulting Inc. > m: (709) 687-2275 > e: [hidden email] > e: [hidden email] > w: http://clixtec.ca > > -- > 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 for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
In reply to this post by Sean Hogan (CLIXtec)
Thanks Erik. Yes I got the same behaviour with a couple of different nightly builds over the past few days.
Sean -----Original Message----- From: Erik Bruchez <[hidden email]> Sent: March 24, 2009 6:12 PM To: [hidden email] Subject: [ops-users] Re: multiple portlets in Liferay 5.2.2 Sean, Can you first try with a nightly build: http://forge.objectweb.org/nightlybuilds/ops/ops/ Quite a bit has changed in the portlet code since beta1. -Erik On Mar 23, 2009, at 4:38 AM, Sean Hogan (CLIXtec) wrote: > Hi all. I'm an Orbeon Forms newbie, trying to get multiple portlets > working with version 3.7.0b1 and Liferay 5.2.2. The sample portlet > is working after setup as per instructions at http://wiki.orbeon.com/forms/doc/developer-guide/deployment-portlet > , including the context listeners and removing META-INF/context.xml. > > I've edited portlet.xml, liferay-portal.xml and liferay-display.xml > to add the new portlet; basically I've just copied the configuration > from the standard one, changing only the name (SMSNewReport). The > Liferay logging shows that the new portlet is available for use. It > shows up in the Add Application menu and can be deployed to a page. > > The first odd thing is that with no other changes to portlet- > prologue, page-flow*.xml etc., the portlet displays "Orbeon Forms - > An Error Has Occurred [...] Cannot load "/apps/SMSNewReport/page- > flow.xml" with webapp loader". Okay, I didn't see that documented > anywhere but it sounds like useful behaviour so I can easily create > multiple portlets with different contents. I made a copy of apps/ > portlet-welcome as apps/SMSNewReport, changing only some of the text > in view.xhtml so I could see that the correct one was being used. > > When I refresh I get this error instead: > Condition failed for every branch of choose: [(/request/request-path > = '/xforms-server-submit'), (/request/request-path = '/')] > I managed to get a little bit further by changing the path-info in > apps/SMSNewReport/page-flow.xml from "/" to "/*". Now I can see the > content, but the portlet is actually showing the complete site that > you normally get from a non-portlet deployment of Orbeon: the Orbeon > logo at the top, all the different sample applications down the > left, the search box at the top right and so on. Also the links > inside the portlet are all of the /orbeon variety rather than having > been rewritten in portlet style. > > From what I've read it sounds like epilogue.xpl is choosing epilogue- > servlet instead of epilogue-portlet, but I cannot figure out why. > Does anyone have any suggestions what I can do about this > behaviour? I've tried a recent nightly build with no apparent change. > > Thanks, > Sean > --- > Sean Hogan > CLIXtec IT Consulting Inc. > m: (709) 687-2275 > e: [hidden email] > e: [hidden email] > w: http://clixtec.ca > > -- > 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 for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Free forum by Nabble | Edit this page |