Showing Error Event Messages

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

Showing Error Event Messages

Mark.El
Hi,

I have a submission I am posting to, and as I am developing I make mistakes, and get errors. The error dialog does not show up, so I was capturing the event body and trying to output it... however the show error details does not seem to work...

In my submission tags I have the below...

 <xforms:action ev:event="xforms-submit-error">
                    <xforms:message level="modal" value="event('body')"/>
                    <xforms:setvalue ref="instance('error-message')" value="event('body')" />
                    <xxforms:show dialog="error-dialog"/>
                </xforms:action>

I have tried 3 ways to show the error-message (nicely formatted that is...) 1 being a dialog, the second being using the instance inspector and the other is with a straight input...

        <xxforms:dialog id="error-dialog" appearance="full" level="modal" close="true" draggable="true" visible="false"><xforms:label>Dialog title</xforms:label><xforms:output ref="instance('error-message')" mediatype="text/html" /></xxforms:dialog>
     
        <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

        <xforms:output ref="instance('error-message')" mediatype="text/html"/>
       

All ways don't show the stack details... well the instance inspector does but its all html encoded...

Is there another way I am missing?

Any help would be appreciated

Regards

Mark


--
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: Showing Error Event Messages

Alessandro Vernet
Administrator
Mark,

On Mon, Mar 3, 2008 at 9:04 AM, Mark Ellul <[hidden email]> wrote:
> I have a submission I am posting to, and as I am developing I make mistakes,
> and get errors. The error dialog does not show up, so I was capturing the
> event body and trying to output it... however the show error details does
> not seem to work...

Would you be able to create an example we can run in the sandbox
showing the problem? What you are getting vs. what you would like to
get is not very clear to me.

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/


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