[EMAIL PROTECTED] wrote:

1) Does Orbeon support DOM Level 2 Event Handling? If so where can I find relevant documentation?

Hi Surabhi,

XForms event handling is not supported at this point. Supporting XForms event handling requires significant amounts of JavaScript to be shipped to the client and creates user interfaces with a dynamic feel that are fairly unconventional in Web applications. I am not trying to say that creating this kind of applications is a "bad thing" but just explaining why support for XForms events has not been one of the main priorities of the Presentation Server XForms engine. This being said, we are committed at supporting the XForms specification, and we do want to support XForms events in the future.

2) The validation of fields that is achieved using "bind" (of the model) happens at the server side. As this increases the response time, I was looking to implement validation using JavaScript. But the problem that I face is how do I identify the controls? E.g. if there is a textbox in an html script with name "/myText/", I can use the "/document.form.myText/" construct in JavaScript to refer to that control. In the context of Orbeon, is it possible to refer to controls in some way in JavaScript?

As you noticed, you cannot use the "name" attribute, as it is used by the XForms engine. However you can use the "id" attribute. On your XForms elements, add an xhtml:id="my-id" attribute, and in your JavaScript you can reference the HTML form field with document.getElementById('my-id').


3) Something elementary like a button does not have an implementation in Orbeon. Is this due to lack of event handling support?

Exactly.

Alex


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to