Orbeon Custom Validation using Java Class

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

Orbeon Custom Validation using Java Class

raghavanjm
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Custom Validation using Java Class

Tambet Matiisen
Hi,

This might get you started:
http://wiki.orbeon.com/forms/how-to/external-validation

   Tambet

On 10.02.2011 8:27, raghavanjm wrote:

>
> Dear All,
>            I am new to Orbeon Forms. I want to do server side validation for
> my form fields using Java. Anyone can help me in this?. Through documents
> not able to understand about Java integration with Orbeon forms. Please
> provide me sample codes or link. Thanks in advance.
>
> Regards,
> Raghavanjm
>


--
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: Orbeon Custom Validation using Java Class

raghavanjm
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Orbeon Custom Validation using Java Class

Erik Bruchez
Administrator
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Orbeon Custom Validation using Java Class

raghavanjm
CONTENTS DELETED
The author has deleted this message.