« Return to Thread: Liferay Xforms

Re: Liferay Xforms

by Luke McLean () :: Rate this Message:

Reply to Author | View in Thread

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,

 « Return to Thread: Liferay Xforms

LightInTheBox - Buy quality products at wholesale price