In my XML instance data I have error messages that can be used in the
event that a binding constraint fails. There can be more than 1 reason why a specific field may fail (possibly more than 1 constraint). So, to workaround this, I'm trying to create an alert that displays all potential error messages for this field. When trying to use the xforms:repeat within the xforms:alert tag, the processor creates an alert box with the xforms:repeat tag declaration as the body of the alert. Are repeats not supported within alert tags? If not, does anyone have a better way of dealing with this issue of performing multiple validation checks against a single field and only displaying to the user which validation failed. Thanks for any help, -- ------------------------------------------------------------------------ Jeremy Nix Senior Application Developer Cincinnati Children's Hospital Medical Center -- 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 |
Administrator
|
Jeremy,
See this example, which shows one way to deal with multiple alerts: http://localhost:8080/orbeon/xforms-sandbox/sample/alert-multiple The trick is in the xxforms:invalid-binds() function, which returns the ids of the xforms:bind that are invalid. Knowing those ids, you can show a more appropriate message. Alex On Thu, Apr 1, 2010 at 5:24 AM, Jeremy Nix <[hidden email]> wrote: > In my XML instance data I have error messages that can be used in the event > that a binding constraint fails. There can be more than 1 reason why a > specific field may fail (possibly more than 1 constraint). So, to > workaround this, I'm trying to create an alert that displays all potential > error messages for this field. When trying to use the xforms:repeat within > the xforms:alert tag, the processor creates an alert box with the > xforms:repeat tag declaration as the body of the alert. Are repeats not > supported within alert tags? If not, does anyone have a better way of > dealing with this issue of performing multiple validation checks against a > single field and only displaying to the user which validation failed. > > Thanks for any help, > -- > ------------------------------------------------------------------------ > Jeremy Nix > Senior Application Developer > Cincinnati Children's Hospital Medical Center > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |