--- Jos Vos <[EMAIL PROTECTED]> wrote: > - What is the recommended way to deal with input errors > (constraints etc.). I now have put in pagfe-flow.xml > > <action when="/form/[EMAIL PROTECTED]:valid = 'false']"> > <result/> > </action> > > (after looking at the posted instance and seeing what it > looks like) and this actually works, but is this "the way to go"?
Yes, this is the way to go. In fact we have similar code is several custom application that we wrote here on Presentation Server. > - How do I customize the visualization of errors in a page? > > I now see a pink box with the errors dislayed on top of the > page, at the wrong place (in my page), that seems to be > generated in config/xforms-to-xhtml.xsl, using code that > can be found in oxf-theme/formatting.xsl. > > What is the recommended way to integrate error handling in > your own view.xsl (and disable the standard error handling)? When you have controls bound to invalid nodes, xforms-to-xhtml.xsl adds in the <xhtml:body> an element <f:alerts>. Based on the content of <f:alerts> oxf-theme/formatting.xsl generates a table. If you want to change how this is rendered, you should modify theme/formatting.xsl, and your modification will apply to all the pages of your application. Do you have a specific reason why you would want to do this on a page per page basis (i.e. doing this in the view for the page)? Alex ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
