I have installed the Orbeon Forms Portlets into Liferay (5.0.1). This works very well after theme fix etc.
I want to leave the OPS processing in that separate webapp context and build the xform apps within the liferay ROOT context. I cannot find any information on how to do this successfully. Could anyone please give me some direction or direct me to a url resource? I wish to use orbeon in conjunction with jbpm workflows to be part of the task handling (used for collecting data at each task node). To do this it is far easier to have everything in a single context. Thanks, Luke. |
Sorry, i'm not going 2 give u clues...only to say I'm
interested in your findings too. I want to develop a portlet for liferay 5.0.1 that uses xforms...trying to clarify my mind a little with all that liferay ext environment, orbeon portlet and other stuff as openxava for developing portlets easily. thx, rich -- 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 |
This post was updated on .
In reply to this post by Luke McLean
Progress report:
I have setup a separate context for which I am using 'orbeon-portlet'. I therefore have 'ROOT' for liferay, 'orbeon' for Orbeon, and 'orbeon-portlet' for my portlet code. I have followed what instructions I can find [http://www.orbeon.com/ops/doc/reference-xforms-java] and the portlet can be added to the liferay portal however it does not appear to be processing the included xform tags. I am using the xforms-hello app. I have copied the resources out and pasted them into my project under the xforms-jsp folder. The html source snippet from the portal page is: ... <div class="portlet-content"> <div class="portlet-content-container" style=""> <div> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <head> <title>XForms Hello</title> <xforms:model> <xforms:instance> <first-name xmlns=""/> </xforms:instance> </xforms:model> </head> <body> <p> This example is described in details in the Orbeon Forms Tutorial. </p> <p> <xforms:input ref="/first-name" incremental="true"> <xforms:label>Please enter your first name:</xforms:label> </xforms:input> </p> <p> <xforms:output value="if (normalize-space(/first-name) = '') then '' else concat('Hello, ', /first-name, '!')"/> </p> </body> </html> </div> </div> </div> ... which shows that the view.jsp page isn't getting processed by orbeon. If I access the page directly outside of liferay it gets rendered correctly. Does not appear to trigger the filter via liferay. Thanks, |
Administrator
|
Luke,
On Wed, Apr 30, 2008 at 4:10 PM, Luke McLean <[hidden email]> wrote: > I have setup a separate context for which I am using 'orbeon-portlet'. I > therefore have 'ROOT' for liferay, 'orbeon' for Orbeon, and 'orbeon-portlet' > for my portlet code. Are you saying that you are aiming at deploying a portlet that generates XForms and use the "separate deployment" method to have the XForms in the output of the portlet processed by the separate "orbeon" web application? 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 [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 |
This post was updated on .
In reply to this post by Luke McLean
Contionued...
I can get the form to display as a standalone webapp (WAR), but if I try to use the same strategy to create a portlet then the processor stops working. I tried to follow the logic here... The 'orbeon-xforms-filter.jar' in the filter links through to the servlet class org.orbeon.oxf.servlet.OPSServlet in the 'orbeon' context. This appears to work OK when it is a full page, but appears to break when you try to process a page segment. Would someone from the project be able to explain whether a standalone portlet context should work, or whether they only intended standalone webapp to use a separate WAR and portlets must use an integrated approach? Thanks, Luke. |
OK, so I'm trying another approach now. I have no idea at this stage how I am going to integrate this with the jbpm workflow in liferay however one step at a time.
I have gone back to using the full orbeon.war and accessing the portlet from liferay. There are some things that I'm still not so clear on. The sample portlet only includes ONE portlet, from which it lists a number of xform apps. I want to create a number of portlets with individual apps in each one instead of this approach. I can see that the portlet.xml defines the oxf.main-processor.input.config = prologue-portlet.xpl and based on the portlet mode (not edit) it points to the page-flow-portlet.xml which then gets processed. This config file defines which xform app to process based on a page id. In order to create a number of portlets in portlet.xml would I be best to define a separate version of prologue-portlet.xpl for each portlet? Your advice appreciated. |
I forgot to ask how the page id is defined in the page-flow-portlet.xml file.
i.e. <page id="home" path-info="/" model="apps/xforms-hello/page-flow.xml"/> There appears to be some 'magic' here that I don;t yet understand. Thanks, Luke. |
In reply to this post by Alessandro Vernet
Hi Alex,
Yes, I struggled with a the separate deployment method for portlets. I worked perfectly for a webapp, but not for portlet. I instead started with the liferay/orbeon sample community plugin WAR for version 5.0.0.1. Installed and modified the portlet.xml, web.xml etc so that separate portlets are available when I 'Add Application' instead of the default single portlet that links to various xform apps. Having successfully achieved that (and learnt a lot about the page-flow controller in the process). I am now going to try experimenting with this approach. Should I be able to get a portlet working in a separate deployment WAR (in its own context outside the ops and liferay contexts) operating with just the supplied filter class? Luke.
|
Administrator
|
In reply to this post by Luke McLean
Luke,
On Wed, Apr 30, 2008 at 7:37 PM, Luke McLean <[hidden email]> wrote: > Would someone from the project be able to explain whether s standalone > portlet context should work, or whether they only intended standalone webapp > to use a separate WAR and portlets must use an integrated approach? We never tried to create portlets using the separate or integrated deployment methods. Notes that those methods are there only if you have a Java application (using your own framework, say Struts) that generates XForms. Is that your case? If you don't, then you don't need to use those methods. My recommendation would be to create a pure XForms portlet and to communicate with jBPM through services (REST or SOAP), or if this is not practical, by calling an XPL from XForms which uses the Java processor to call jBPM. Does this help? 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 [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 richhl
hi friends,
i want to install vine toolkit on liferay.and on the gridsphere web site is mantion that vine is supported by liferay so please any one help me how can i deploy vine on lifaray. vine toolkit is available on this link:- http://www.gridsphere.org/gridsphere/gridsphere/guest/vine/r/ Thanks shashikant
|
Free forum by Nabble | Edit this page |