Calling XPL in Liferay

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling XPL in Liferay

srikanth.prodigy

Hello

 

I’m trying to call xpl in Orbeon Portlet in Liferay

 

<xforms:submission  ev:event="xforms-model-construct-done" id="callxpl" action="view-event-expanded1.xpl" separator="&amp;" replace="instance" method="get" ref="instance('events-instance')" />

            <xforms:action >

              

                    <xforms:send submission="callxpl" ev:event="xforms-model-construct-done" />

                  

                          

                </xforms:action>

 

 

In log file  XForms - submission - xforms-submit-error is thrown

 

 

2008-12-23 17:07:15,843 ERROR ProcessorService  - Exception at oxf:/config/error.xpl (executing XSLT transformation)

java.lang.NullPointerException

2008-12-23 17:07:15,843 INFO  ProcessorService  - /view-event-expanded1.xpl - Timing: 140 - Cache hits for cache.main: 10, fault: 2, adds: 0, expirations: 0, success rate: 83%

2008-12-23 17:07:15,843 ERROR ProcessorService  - org.orbeon.oxf.common.OXFException: line 93, column 45 of oxf:/config/error.xpl (executing processor: name='{http://www.orbeon.com/oxf/processors}http-serializer'): oxf:/config/error.xpl (executing XSLT transformation): null

null

oxf:/config/error.xpl (executing XSLT transformation): null

null

2008-12-23 17:07:15,859 ERROR XFormsServer  - XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException: line 28 of oxf:/config/xforms-widgets.xsl (processing submission response): xforms:submission for submission id: _upcomingeventsxpl_WAR_upcomingeventsxpl_INSTANCE_ncWV_callxpl, error code received when submitting instance: 500

oxf:/config/xforms-widgets.xsl, line 28, column -1: xforms:submission for submission id: _upcomingeventsxpl_WAR_upcomingeventsxpl_INSTANCE_ncWV_callxpl, error code received when submitting instance: 500

 

Thanks,

Srikanth

           



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Calling XPL in Liferay

Alessandro Vernet
Administrator
Srikanth,

You cannot call directly an XPL from a submission by putting the name of the XPL file in the action attribute. Instead the action attribute (or in XForms 1.1 the resource attribute) needs to be a URI such as /path/to/service. Then you map this path to an XPL in your page flow. Does this make sense?

Also the ev:event on the <xforms:submission> doesn't do anything. It only makes sense to use an ev:event on actions, like <xforms:send>.

Alex 

On Dec 23, 2008, at 6:28 PM, "Srikanth A" <[hidden email]> wrote:

Hello

 

I’m trying to call xpl in Orbeon Portlet in Liferay

 

<xforms:submission  ev:event="xforms-model-construct-done" id="callxpl" action="view-event-expanded1.xpl" separator="&amp;" replace="instance" method="get" ref="instance('events-instance')" />

            <xforms:action >

              

                    <xforms:send submission="callxpl" ev:event="xforms-model-construct-done" />

                  

                          

                </xforms:action>

 

 

In log file  XForms - submission - xforms-submit-error is thrown

 

 

2008-12-23 17:07:15,843 ERROR ProcessorService  - Exception at oxf:/config/error.xpl (executing XSLT transformation)

java.lang.NullPointerException

2008-12-23 17:07:15,843 INFO  ProcessorService  - /view-event-expanded1.xpl - Timing: 140 - Cache hits for cache.main: 10, fault: 2, adds: 0, expirations: 0, success rate: 83%

2008-12-23 17:07:15,843 ERROR ProcessorService  - org.orbeon.oxf.common.OXFException: line 93, column 45 of oxf:/config/error.xpl (executing processor: name='{http://www.orbeon.com/oxf/processors}http-serializer'): oxf:/config/error.xpl (executing XSLT transformation): null

null

oxf:/config/error.xpl (executing XSLT transformation): null

null

2008-12-23 17:07:15,859 ERROR XFormsServer  - XForms - submission - xforms-submit-error throwable: org.orbeon.oxf.xforms.XFormsModelSubmission$XFormsSubmissionException: line 28 of oxf:/config/xforms-widgets.xsl (processing submission response): xforms:submission for submission id: _upcomingeventsxpl_WAR_upcomingeventsxpl_INSTANCE_ncWV_callxpl, error code received when submitting instance: 500

oxf:/config/xforms-widgets.xsl, line 28, column -1: xforms:submission for submission id: _upcomingeventsxpl_WAR_upcomingeventsxpl_INSTANCE_ncWV_callxpl, error code received when submitting instance: 500

 

Thanks,

Srikanth

           


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws


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