Login  Register

Re: JSP Generation

Posted by Erik Bruchez on Dec 16, 2010; 5:41am
URL: https://discuss.orbeon.com/JSP-Generation-tp3086712p3090328.html

Anish,

> 1)       Now, when a form is created, it generates an XHTML document. Is
> there any way to generate a JSP such that it can be reused in Java code ?

No, the XHTML (or HTML) document is not something static that you can
reuse: it needs the XForms engine doing its magic. So this wouldn't
work to generate a JSP either. See also:

http://wiki.orbeon.com/forms/doc/developer-guide/how-orbeon-forms-works-part-i

But you can do the oposite: use JSP to produce XForms+XHTML, and feed
that to the XForms engine:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-separate-deployment-with-portlets

> 2)       Can one create entities and re-use the entities created? For
> example. Let’s say I create an entity called Employee and another called
> Department. Can I reuse these two entities in another form called COMPANY
> DETAILS (where both Employee and Department are present) ?

I am not sure what an entity is. I assume it's more than an XML fragment?

Along those lines, things that come to mind:

* Form Builder allows you to create reusable section templates.
* the XBL component system in Orbeon allows you to create and reuse UI controls

-Erik


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