xforms:message with nested xforms content

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

xforms:message with nested xforms content

David Lacy

Testing on m11…

 

I have been putting xforms:output controls within xforms:message’s that result from submission errors, providing a little more feedback then a static error. It appears that this is no longer possible?

 

+----------------------------------------------------------------------------------------------------------------------+

|An Error has Occurred                                                                                                 |

|----------------------------------------------------------------------------------------------------------------------|

|Nested XHTML or XForms not allowed within element: message                                                            |

|----------------------------------------------------------------------------------------------------------------------|

|Application Call Stack                                                                                                |

|----------------------------------------------------------------------------------------------------------------------|

|oxf:/apps/myapp/models/RestAPIModel-model.xml      | 278|    |running XForms action                             |

|----------------------------------------------------------------------------------------------------------------------|

|Exception: org.orbeon.oxf.common.OXFException                                                                         |

|----------------------------------------------------------------------------------------------------------------------|

|org.orbeon.oxf.xforms.XFormsUtils$LHHAElementVisito|startElement                  |XFormsUtils.java              | 935|

|org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree                  |Dom4jUtils.java               | 805|

|org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree                  |Dom4jUtils.java               | 786|

|org.orbeon.oxf.xforms.XFormsUtils                  |getElementValue               |XFormsUtils.java              | 366|

|org.orbeon.oxf.xforms.action.actions.XFormsMessageA|execute                       |XFormsMessageAction.java      |  77|

|org.orbeon.oxf.xforms.action.XFormsAction          |execute                       |XFormsAction.scala            |  36|

|org.orbeon.oxf.xforms.action.XFormsActionInterprete|runSingleIteration            |XFormsActionInterpreter.java  | 204|

|org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction                     |XFormsActionInterpreter.java  | 150|

|----------------------------------------------------------------------------------------------------------------------|

|Exception: org.orbeon.oxf.common.ValidationException                                                                  |

|----------------------------------------------------------------------------------------------------------------------|

|org.orbeon.oxf.common.ValidationException          |wrapException                 |ValidationException.java      | 126|

|org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction                     |XFormsActionInterpreter.java  | 157|

|org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply$mcV$sp                  |EventHandlerImpl.scala        | 204|

|org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply                         |EventHandlerImpl.scala        | 204|

|org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply                         |EventHandlerImpl.scala        | 204|

|org.orbeon.oxf.util.DynamicVariable                |withValue                     |DynamicVariable.scala         |  40|

|org.orbeon.oxf.xforms.action.XFormsAPI$            |withScalaAction               |XFormsAPI.scala               |  39|

|org.orbeon.oxf.xforms.event.EventHandlerImpl       |handleEvent                   |EventHandlerImpl.scala        | 203|

|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply$mcV$sp                  |Dispatch.scala                |  74|

|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply                         |Dispatch.scala                |  74|

|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply                         |Dispatch.scala                |  74|

|org.orbeon.oxf.util.Logging$class                  |withDebug                     |Logging.scala                 |  43|

|org.orbeon.oxf.xforms.event.Dispatch$              |withDebug                     |Dispatch.scala                |  23|

|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply                         |Dispatch.scala                |  73|

|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply                         |Dispatch.scala                |  71|

|scala.collection.LinearSeqOptimized$class          |foreach                       |LinearSeqOptimized.scala      |  59|

|scala.collection.immutable.List                    |foreach                       |List.scala                    |  76|

|org.orbeon.oxf.xforms.event.Dispatch$              |callHandlers$1                |Dispatch.scala                |  71|

|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply                         |Dispatch.scala                | 110|

|org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply                         |Dispatch.scala                | 104|

|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|

|org.orbeon.oxf.pipeline.InitUtils$                 |runProcessor                  |InitUtils.scala               |  81|

|org.orbeon.oxf.webapp.ProcessorService             |service                       |ProcessorService.scala        |  40|

|org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply$mcV$sp                  |OrbeonServlet.scala           |  74|

|org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply                         |OrbeonServlet.scala           |  67|

|org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply                         |OrbeonServlet.scala           |  67|

|org.orbeon.oxf.util.ScalaUtils$                    |withRootException             |ScalaUtils.scala              | 114|

|org.orbeon.oxf.servlet.OrbeonServlet               |service                       |OrbeonServlet.scala           |  67|

|javax.servlet.http.HttpServlet                     |service                       |HttpServlet.java              | 717|

|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 290|

|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 206|

|org.apache.catalina.core.StandardWrapperValve      |invoke                        |StandardWrapperValve.java     | 233|

|org.apache.catalina.core.StandardContextValve      |invoke                        |StandardContextValve.java     | 191|

|org.apache.catalina.core.StandardHostValve         |invoke                        |StandardHostValve.java        | 127|

|org.apache.catalina.valves.ErrorReportValve        |invoke                        |ErrorReportValve.java         | 102|

|org.apache.catalina.core.StandardEngineValve       |invoke                        |StandardEngineValve.java      | 109|

|org.apache.catalina.connector.CoyoteAdapter        |service                       |CoyoteAdapter.java            | 298|

|org.apache.coyote.http11.Http11Processor           |process                       |Http11Processor.java          | 857|

|org.apache.coyote.http11.Http11Protocol$Http11Conne|process                       |Http11Protocol.java           | 588|

|org.apache.tomcat.util.net.JIoEndpoint$Worker      |run                           |JIoEndpoint.java              | 489|

|java.lang.Thread                                   |run                           |Thread.java                   | 679|

+----------------------------------------------------------------------------------------------------------------------+

 

David Lacy

Falvey Library Technology Services

Villanova University

library.villanova.edu

 



--
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: xforms:message with nested xforms content

Erik Bruchez
Administrator
David,

I think it should work. But the message seems to indicate that the
xforms:message contains some XHTML elements. Could you send the exact
code?

-Erik

On Fri, Oct 5, 2012 at 8:02 AM, David Lacy <[hidden email]> wrote:

> Testing on m11…
>
>
>
> I have been putting xforms:output controls within xforms:message’s that
> result from submission errors, providing a little more feedback then a
> static error. It appears that this is no longer possible?
>
>
>
> +----------------------------------------------------------------------------------------------------------------------+
>
> |An Error has Occurred
> |
>
> |----------------------------------------------------------------------------------------------------------------------|
>
> |Nested XHTML or XForms not allowed within element: message
> |
>
> |----------------------------------------------------------------------------------------------------------------------|
>
> |Application Call Stack
> |
>
> |----------------------------------------------------------------------------------------------------------------------|
>
> |oxf:/apps/myapp/models/RestAPIModel-model.xml      | 278|    |running
> XForms action                             |
>
> |----------------------------------------------------------------------------------------------------------------------|
>
> |Exception: org.orbeon.oxf.common.OXFException
> |
>
> |----------------------------------------------------------------------------------------------------------------------|
>
> |org.orbeon.oxf.xforms.XFormsUtils$LHHAElementVisito|startElement
> |XFormsUtils.java              | 935|
>
> |org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree
> |Dom4jUtils.java               | 805|
>
> |org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree
> |Dom4jUtils.java               | 786|
>
> |org.orbeon.oxf.xforms.XFormsUtils                  |getElementValue
> |XFormsUtils.java              | 366|
>
> |org.orbeon.oxf.xforms.action.actions.XFormsMessageA|execute
> |XFormsMessageAction.java      |  77|
>
> |org.orbeon.oxf.xforms.action.XFormsAction          |execute
> |XFormsAction.scala            |  36|
>
> |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runSingleIteration
> |XFormsActionInterpreter.java  | 204|
>
> |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction
> |XFormsActionInterpreter.java  | 150|
>
> |----------------------------------------------------------------------------------------------------------------------|
>
> |Exception: org.orbeon.oxf.common.ValidationException
> |
>
> |----------------------------------------------------------------------------------------------------------------------|
>
> |org.orbeon.oxf.common.ValidationException          |wrapException
> |ValidationException.java      | 126|
>
> |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction
> |XFormsActionInterpreter.java  | 157|
>
> |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply$mcV$sp
> |EventHandlerImpl.scala        | 204|
>
> |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply
> |EventHandlerImpl.scala        | 204|
>
> |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply
> |EventHandlerImpl.scala        | 204|
>
> |org.orbeon.oxf.util.DynamicVariable                |withValue
> |DynamicVariable.scala         |  40|
>
> |org.orbeon.oxf.xforms.action.XFormsAPI$            |withScalaAction
> |XFormsAPI.scala               |  39|
>
> |org.orbeon.oxf.xforms.event.EventHandlerImpl       |handleEvent
> |EventHandlerImpl.scala        | 203|
>
> |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply$mcV$sp
> |Dispatch.scala                |  74|
>
> |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> |Dispatch.scala                |  74|
>
> |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> |Dispatch.scala                |  74|
>
> |org.orbeon.oxf.util.Logging$class                  |withDebug
> |Logging.scala                 |  43|
>
> |org.orbeon.oxf.xforms.event.Dispatch$              |withDebug
> |Dispatch.scala                |  23|
>
> |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> |Dispatch.scala                |  73|
>
> |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> |Dispatch.scala                |  71|
>
> |scala.collection.LinearSeqOptimized$class          |foreach
> |LinearSeqOptimized.scala      |  59|
>
> |scala.collection.immutable.List                    |foreach
> |List.scala                    |  76|
>
> |org.orbeon.oxf.xforms.event.Dispatch$              |callHandlers$1
> |Dispatch.scala                |  71|
>
> |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply
> |Dispatch.scala                | 110|
>
> |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply
> |Dispatch.scala                | 104|
>
> |---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
>
> |org.orbeon.oxf.pipeline.InitUtils$                 |runProcessor
> |InitUtils.scala               |  81|
>
> |org.orbeon.oxf.webapp.ProcessorService             |service
> |ProcessorService.scala        |  40|
>
> |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply$mcV$sp
> |OrbeonServlet.scala           |  74|
>
> |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply
> |OrbeonServlet.scala           |  67|
>
> |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply
> |OrbeonServlet.scala           |  67|
>
> |org.orbeon.oxf.util.ScalaUtils$                    |withRootException
> |ScalaUtils.scala              | 114|
>
> |org.orbeon.oxf.servlet.OrbeonServlet               |service
> |OrbeonServlet.scala           |  67|
>
> |javax.servlet.http.HttpServlet                     |service
> |HttpServlet.java              | 717|
>
> |org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter
> |ApplicationFilterChain.java   | 290|
>
> |org.apache.catalina.core.ApplicationFilterChain    |doFilter
> |ApplicationFilterChain.java   | 206|
>
> |org.apache.catalina.core.StandardWrapperValve      |invoke
> |StandardWrapperValve.java     | 233|
>
> |org.apache.catalina.core.StandardContextValve      |invoke
> |StandardContextValve.java     | 191|
>
> |org.apache.catalina.core.StandardHostValve         |invoke
> |StandardHostValve.java        | 127|
>
> |org.apache.catalina.valves.ErrorReportValve        |invoke
> |ErrorReportValve.java         | 102|
>
> |org.apache.catalina.core.StandardEngineValve       |invoke
> |StandardEngineValve.java      | 109|
>
> |org.apache.catalina.connector.CoyoteAdapter        |service
> |CoyoteAdapter.java            | 298|
>
> |org.apache.coyote.http11.Http11Processor           |process
> |Http11Processor.java          | 857|
>
> |org.apache.coyote.http11.Http11Protocol$Http11Conne|process
> |Http11Protocol.java           | 588|
>
> |org.apache.tomcat.util.net.JIoEndpoint$Worker      |run
> |JIoEndpoint.java              | 489|
>
> |java.lang.Thread                                   |run
> |Thread.java                   | 679|
>
> +----------------------------------------------------------------------------------------------------------------------+
>
>
>
> David Lacy
>
> Falvey Library Technology Services
>
> Villanova University
>
> library.villanova.edu
>
>
>
>
>
> --
> 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
>


--
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: Re: xforms:message with nested xforms content

David Lacy
It appears to be my use of <xxforms:variable> declarations. I tried switching them to the new <xforms:var> terminology, but that throws the same error.

David Lacy
Falvey Library Technology Services
Villanova University
library.villanova.edu

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
> Bruchez
> Sent: Saturday, October 06, 2012 12:24 AM
> To: [hidden email]
> Subject: [ops-users] Re: xforms:message with nested xforms content
>
> David,
>
> I think it should work. But the message seems to indicate that the xforms:message
> contains some XHTML elements. Could you send the exact code?
>
> -Erik
>
> On Fri, Oct 5, 2012 at 8:02 AM, David Lacy <[hidden email]> wrote:
> > Testing on m11...
> >
> >
> >
> > I have been putting xforms:output controls within xforms:message's
> > that result from submission errors, providing a little more feedback
> > then a static error. It appears that this is no longer possible?
> >
> >
> >
> > +----------------------------------------------------------------------------------------------------------------------
> +
> >
> > |An Error has Occurred
> > |
> >
> > |----------------------------------------------------------------------------------------------------------------------|
> >
> > |Nested XHTML or XForms not allowed within element: message
> > |
> >
> > |----------------------------------------------------------------------------------------------------------------------|
> >
> > |Application Call Stack
> > |
> >
> > |----------------------------------------------------------------------------------------------------------------------|
> >
> > |oxf:/apps/myapp/models/RestAPIModel-model.xml      | 278|    |running
> > XForms action                             |
> >
> > |----------------------------------------------------------------------------------------------------------------------|
> >
> > |Exception: org.orbeon.oxf.common.OXFException
> > |
> >
> > |----------------------------------------------------------------------------------------------------------------------|
> >
> > |org.orbeon.oxf.xforms.XFormsUtils$LHHAElementVisito|startElement
> > |XFormsUtils.java              | 935|
> >
> > |org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree
> > |Dom4jUtils.java               | 805|
> >
> > |org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree
> > |Dom4jUtils.java               | 786|
> >
> > |org.orbeon.oxf.xforms.XFormsUtils                  |getElementValue
> > |XFormsUtils.java              | 366|
> >
> > |org.orbeon.oxf.xforms.action.actions.XFormsMessageA|execute
> > |XFormsMessageAction.java      |  77|
> >
> > |org.orbeon.oxf.xforms.action.XFormsAction          |execute
> > |XFormsAction.scala            |  36|
> >
> > |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runSingleIteratio
> > |n
> > |XFormsActionInterpreter.java  | 204|
> >
> > |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction
> > |XFormsActionInterpreter.java  | 150|
> >
> > |----------------------------------------------------------------------------------------------------------------------|
> >
> > |Exception: org.orbeon.oxf.common.ValidationException
> > |
> >
> > |----------------------------------------------------------------------------------------------------------------------|
> >
> > |org.orbeon.oxf.common.ValidationException          |wrapException
> > |ValidationException.java      | 126|
> >
> > |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction
> > |XFormsActionInterpreter.java  | 157|
> >
> > |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply$mcV$sp
> > |EventHandlerImpl.scala        | 204|
> >
> > |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply
> > |EventHandlerImpl.scala        | 204|
> >
> > |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply
> > |EventHandlerImpl.scala        | 204|
> >
> > |org.orbeon.oxf.util.DynamicVariable                |withValue
> > |DynamicVariable.scala         |  40|
> >
> > |org.orbeon.oxf.xforms.action.XFormsAPI$            |withScalaAction
> > |XFormsAPI.scala               |  39|
> >
> > |org.orbeon.oxf.xforms.event.EventHandlerImpl       |handleEvent
> > |EventHandlerImpl.scala        | 203|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply$mcV$sp
> > |Dispatch.scala                |  74|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> > |Dispatch.scala                |  74|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> > |Dispatch.scala                |  74|
> >
> > |org.orbeon.oxf.util.Logging$class                  |withDebug
> > |Logging.scala                 |  43|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$              |withDebug
> > |Dispatch.scala                |  23|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> > |Dispatch.scala                |  73|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
> > |Dispatch.scala                |  71|
> >
> > |scala.collection.LinearSeqOptimized$class          |foreach
> > |LinearSeqOptimized.scala      |  59|
> >
> > |scala.collection.immutable.List                    |foreach
> > |List.scala                    |  76|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$              |callHandlers$1
> > |Dispatch.scala                |  71|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply
> > |Dispatch.scala                | 110|
> >
> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply
> > |Dispatch.scala                | 104|
> >
> > |---8<--------8<--------8<--------8<--------8<--------8<--------8<----
> > |----8<--------8<--------8<--------8<--------8<---|
> >
> > |org.orbeon.oxf.pipeline.InitUtils$                 |runProcessor
> > |InitUtils.scala               |  81|
> >
> > |org.orbeon.oxf.webapp.ProcessorService             |service
> > |ProcessorService.scala        |  40|
> >
> > |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply$mcV$sp
> > |OrbeonServlet.scala           |  74|
> >
> > |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply
> > |OrbeonServlet.scala           |  67|
> >
> > |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply
> > |OrbeonServlet.scala           |  67|
> >
> > |org.orbeon.oxf.util.ScalaUtils$                    |withRootException
> > |ScalaUtils.scala              | 114|
> >
> > |org.orbeon.oxf.servlet.OrbeonServlet               |service
> > |OrbeonServlet.scala           |  67|
> >
> > |javax.servlet.http.HttpServlet                     |service
> > |HttpServlet.java              | 717|
> >
> > |org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter
> > |ApplicationFilterChain.java   | 290|
> >
> > |org.apache.catalina.core.ApplicationFilterChain    |doFilter
> > |ApplicationFilterChain.java   | 206|
> >
> > |org.apache.catalina.core.StandardWrapperValve      |invoke
> > |StandardWrapperValve.java     | 233|
> >
> > |org.apache.catalina.core.StandardContextValve      |invoke
> > |StandardContextValve.java     | 191|
> >
> > |org.apache.catalina.core.StandardHostValve         |invoke
> > |StandardHostValve.java        | 127|
> >
> > |org.apache.catalina.valves.ErrorReportValve        |invoke
> > |ErrorReportValve.java         | 102|
> >
> > |org.apache.catalina.core.StandardEngineValve       |invoke
> > |StandardEngineValve.java      | 109|
> >
> > |org.apache.catalina.connector.CoyoteAdapter        |service
> > |CoyoteAdapter.java            | 298|
> >
> > |org.apache.coyote.http11.Http11Processor           |process
> > |Http11Processor.java          | 857|
> >
> > |org.apache.coyote.http11.Http11Protocol$Http11Conne|process
> > |Http11Protocol.java           | 588|
> >
> > |org.apache.tomcat.util.net.JIoEndpoint$Worker      |run
> > |JIoEndpoint.java              | 489|
> >
> > |java.lang.Thread                                   |run
> > |Thread.java                   | 679|
> >
> > +----------------------------------------------------------------------------------------------------------------------
> +
> >
> >
> >
> > David Lacy
> >
> > Falvey Library Technology Services
> >
> > Villanova University
> >
> > library.villanova.edu
> >
> >
> >
> >
> >
> > --
> > 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
> >


--
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: RE: Re: xforms:message with nested xforms content

Erik Bruchez
Administrator
So if you remove the variables things work?

Can you send a small example showing a case that doesn't work?

-Erik

On Tue, Oct 9, 2012 at 8:50 AM, David Lacy <[hidden email]> wrote:

> It appears to be my use of <xxforms:variable> declarations. I tried switching them to the new <xforms:var> terminology, but that throws the same error.
>
> David Lacy
> Falvey Library Technology Services
> Villanova University
> library.villanova.edu
>
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
>> Bruchez
>> Sent: Saturday, October 06, 2012 12:24 AM
>> To: [hidden email]
>> Subject: [ops-users] Re: xforms:message with nested xforms content
>>
>> David,
>>
>> I think it should work. But the message seems to indicate that the xforms:message
>> contains some XHTML elements. Could you send the exact code?
>>
>> -Erik
>>
>> On Fri, Oct 5, 2012 at 8:02 AM, David Lacy <[hidden email]> wrote:
>> > Testing on m11...
>> >
>> >
>> >
>> > I have been putting xforms:output controls within xforms:message's
>> > that result from submission errors, providing a little more feedback
>> > then a static error. It appears that this is no longer possible?
>> >
>> >
>> >
>> > +----------------------------------------------------------------------------------------------------------------------
>> +
>> >
>> > |An Error has Occurred
>> > |
>> >
>> > |----------------------------------------------------------------------------------------------------------------------|
>> >
>> > |Nested XHTML or XForms not allowed within element: message
>> > |
>> >
>> > |----------------------------------------------------------------------------------------------------------------------|
>> >
>> > |Application Call Stack
>> > |
>> >
>> > |----------------------------------------------------------------------------------------------------------------------|
>> >
>> > |oxf:/apps/myapp/models/RestAPIModel-model.xml      | 278|    |running
>> > XForms action                             |
>> >
>> > |----------------------------------------------------------------------------------------------------------------------|
>> >
>> > |Exception: org.orbeon.oxf.common.OXFException
>> > |
>> >
>> > |----------------------------------------------------------------------------------------------------------------------|
>> >
>> > |org.orbeon.oxf.xforms.XFormsUtils$LHHAElementVisito|startElement
>> > |XFormsUtils.java              | 935|
>> >
>> > |org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree
>> > |Dom4jUtils.java               | 805|
>> >
>> > |org.orbeon.oxf.xml.dom4j.Dom4jUtils                |visitSubtree
>> > |Dom4jUtils.java               | 786|
>> >
>> > |org.orbeon.oxf.xforms.XFormsUtils                  |getElementValue
>> > |XFormsUtils.java              | 366|
>> >
>> > |org.orbeon.oxf.xforms.action.actions.XFormsMessageA|execute
>> > |XFormsMessageAction.java      |  77|
>> >
>> > |org.orbeon.oxf.xforms.action.XFormsAction          |execute
>> > |XFormsAction.scala            |  36|
>> >
>> > |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runSingleIteratio
>> > |n
>> > |XFormsActionInterpreter.java  | 204|
>> >
>> > |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction
>> > |XFormsActionInterpreter.java  | 150|
>> >
>> > |----------------------------------------------------------------------------------------------------------------------|
>> >
>> > |Exception: org.orbeon.oxf.common.ValidationException
>> > |
>> >
>> > |----------------------------------------------------------------------------------------------------------------------|
>> >
>> > |org.orbeon.oxf.common.ValidationException          |wrapException
>> > |ValidationException.java      | 126|
>> >
>> > |org.orbeon.oxf.xforms.action.XFormsActionInterprete|runAction
>> > |XFormsActionInterpreter.java  | 157|
>> >
>> > |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply$mcV$sp
>> > |EventHandlerImpl.scala        | 204|
>> >
>> > |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply
>> > |EventHandlerImpl.scala        | 204|
>> >
>> > |org.orbeon.oxf.xforms.event.EventHandlerImpl$$anonf|apply
>> > |EventHandlerImpl.scala        | 204|
>> >
>> > |org.orbeon.oxf.util.DynamicVariable                |withValue
>> > |DynamicVariable.scala         |  40|
>> >
>> > |org.orbeon.oxf.xforms.action.XFormsAPI$            |withScalaAction
>> > |XFormsAPI.scala               |  39|
>> >
>> > |org.orbeon.oxf.xforms.event.EventHandlerImpl       |handleEvent
>> > |EventHandlerImpl.scala        | 203|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply$mcV$sp
>> > |Dispatch.scala                |  74|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
>> > |Dispatch.scala                |  74|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
>> > |Dispatch.scala                |  74|
>> >
>> > |org.orbeon.oxf.util.Logging$class                  |withDebug
>> > |Logging.scala                 |  43|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$              |withDebug
>> > |Dispatch.scala                |  23|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
>> > |Dispatch.scala                |  73|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$callH|apply
>> > |Dispatch.scala                |  71|
>> >
>> > |scala.collection.LinearSeqOptimized$class          |foreach
>> > |LinearSeqOptimized.scala      |  59|
>> >
>> > |scala.collection.immutable.List                    |foreach
>> > |List.scala                    |  76|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$              |callHandlers$1
>> > |Dispatch.scala                |  71|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply
>> > |Dispatch.scala                | 110|
>> >
>> > |org.orbeon.oxf.xforms.event.Dispatch$$anonfun$dispa|apply
>> > |Dispatch.scala                | 104|
>> >
>> > |---8<--------8<--------8<--------8<--------8<--------8<--------8<----
>> > |----8<--------8<--------8<--------8<--------8<---|
>> >
>> > |org.orbeon.oxf.pipeline.InitUtils$                 |runProcessor
>> > |InitUtils.scala               |  81|
>> >
>> > |org.orbeon.oxf.webapp.ProcessorService             |service
>> > |ProcessorService.scala        |  40|
>> >
>> > |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply$mcV$sp
>> > |OrbeonServlet.scala           |  74|
>> >
>> > |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply
>> > |OrbeonServlet.scala           |  67|
>> >
>> > |org.orbeon.oxf.servlet.OrbeonServlet$$anonfun$servi|apply
>> > |OrbeonServlet.scala           |  67|
>> >
>> > |org.orbeon.oxf.util.ScalaUtils$                    |withRootException
>> > |ScalaUtils.scala              | 114|
>> >
>> > |org.orbeon.oxf.servlet.OrbeonServlet               |service
>> > |OrbeonServlet.scala           |  67|
>> >
>> > |javax.servlet.http.HttpServlet                     |service
>> > |HttpServlet.java              | 717|
>> >
>> > |org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter
>> > |ApplicationFilterChain.java   | 290|
>> >
>> > |org.apache.catalina.core.ApplicationFilterChain    |doFilter
>> > |ApplicationFilterChain.java   | 206|
>> >
>> > |org.apache.catalina.core.StandardWrapperValve      |invoke
>> > |StandardWrapperValve.java     | 233|
>> >
>> > |org.apache.catalina.core.StandardContextValve      |invoke
>> > |StandardContextValve.java     | 191|
>> >
>> > |org.apache.catalina.core.StandardHostValve         |invoke
>> > |StandardHostValve.java        | 127|
>> >
>> > |org.apache.catalina.valves.ErrorReportValve        |invoke
>> > |ErrorReportValve.java         | 102|
>> >
>> > |org.apache.catalina.core.StandardEngineValve       |invoke
>> > |StandardEngineValve.java      | 109|
>> >
>> > |org.apache.catalina.connector.CoyoteAdapter        |service
>> > |CoyoteAdapter.java            | 298|
>> >
>> > |org.apache.coyote.http11.Http11Processor           |process
>> > |Http11Processor.java          | 857|
>> >
>> > |org.apache.coyote.http11.Http11Protocol$Http11Conne|process
>> > |Http11Protocol.java           | 588|
>> >
>> > |org.apache.tomcat.util.net.JIoEndpoint$Worker      |run
>> > |JIoEndpoint.java              | 489|
>> >
>> > |java.lang.Thread                                   |run
>> > |Thread.java                   | 679|
>> >
>> > +----------------------------------------------------------------------------------------------------------------------
>> +
>> >
>> >
>> >
>> > David Lacy
>> >
>> > Falvey Library Technology Services
>> >
>> > Villanova University
>> >
>> > library.villanova.edu
>> >
>> >
>> >
>> >
>> >
>> > --
>> > 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
>> >
>
>
> --
> 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
>


--
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: xforms:message with nested xforms content

David Lacy
Here you go.

David Lacy
Falvey Library Technology Services
Villanova University
library.villanova.edu

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik
> Bruchez
> Sent: Wednesday, October 10, 2012 12:29 AM
> To: [hidden email]
> Subject: [ops-users] Re: RE: Re: xforms:message with nested xforms content
>
> So if you remove the variables things work?
>
> Can you send a small example showing a case that doesn't work?
>
> -Erik


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

variable_in_message.xhtml (3K) Download Attachment