Re: Re: Orbeon Custom Validation using Java Class

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/Orbeon-Custom-Validation-using-Java-Class-tp3298633p3300693.html

Raghavanjm,

You should be able to call to Java code directly from XPath, for example:

<xhtml:html xmlns:foo="java:my.java.MyValidator">
  ...
  <xforms:model>
    ...
    <xforms:bind constraint="foo:myValidationMethod(string(.))">

Then in class MyValidator:

public class MyValidator {
  public static boolean myValidationMethod(String value) {
    ...
  }
}

-Erik

On Thu, Feb 10, 2011 at 12:32 AM, raghavanjm <[hidden email]> wrote:

Hi Tambet,
               Thanks for your reply. In my case, I am not using external
web services for validating form fields. I want to use java class to
validate form fields.
--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-Custom-Validation-using-Java-Class-tp3298633p3298734.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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




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