How to get the processed document

View: New views
3 Messages — Rating Filter:   Alert me  

How to get the processed document

by p4ddy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm trying to use chiba-core using java. I'm instantiating chibabean and
after setting xforms i'm calling init().

Everything is working fine without error. Now how do i get the processed
document. If chiba converts xhtml+xforms to html+javascript, where can i
find the converted documents?
--
View this message in context: http://www.nabble.com/How-to-get-the-processed-document-tp25218489p25218489.html
Sent from the chiba-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Parent Message unknown Re: How to get the processed document

by Tambet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

p4ddy wrote:
> I'm trying to use chiba-core using java. I'm instantiating chibabean and
> after setting xforms i'm calling init().
>
> Everything is working fine without error. Now how do i get the processed
> document. If chiba converts xhtml+xforms to html+javascript, where can i
> find the converted documents?
>  
I don't know the internals of Chiba enough to help you, but I know a bit
about Chiba architecture and I think you may have wrong assumptions.
Yes, Chiba does convert XForms to HTML+Javascript, but the Javascript
makes heavy use of server-side component of Chiba. Basically it expects
certain URLs (/Flux/*) on the server to behave in certain way. It would
be quite a challenge to use Chiba in other environment than web. And if
you use web, then XFormsFilter should be enough.

I attempted the same once too, but dropped the idea. We run Chiba in
separate Tomcat server and include it into main webpage via <iframe>. We
use some nifty tricks to resize the iframe, so that user actually
doesn't even notice, that there is an iframe. Mind that contents of
iframe must be originated from the same server as outside content.
Otherwise you get Javascript errors when trying to resize the iframe. We
solved it by mapping /chiba-web/ URL of Apache to Tomcat server with
Apache Tomcat Connector.

If you absolutely need to compile XForms to HTML at server side, then
have a look at XSLTForms (http://sourceforge.net/projects/xsltforms/),
AJAXForms (http://ajaxforms.sourceforge.net/, not updated since 2006)
and Ubiquity XForms (http://code.google.com/p/ubiquity-xforms/).

Good luck!
  Tambet

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Parent Message unknown Re: How to get the processed document

by Joern Turner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please give a bit more information on what you're trying to achieve.
As Tambet pointed out if you're expecting Chiba to completely
'compile' XForms into XHTML/Javascript this is an misunderstanding of
the architecture. Chiba is mainly a server-side XForms processor
(thought there's a version still under integration that embeds Chiba
in an applet) which works together with an AJAX Javascript layer on
the client. Having said this it might become clear that Chiba converts
XForms into HTML + some Javsscript that calls the XForms processor on
the server.

If you're looking for a pure client-side solution you might try one of
the implementations Tambet mentioned or wait some weeks for the applet
to become available again.

On Mon, Aug 31, 2009 at 7:24 AM, p4ddy<prdpsbhat@...> wrote:

>
> I'm trying to use chiba-core using java. I'm instantiating chibabean and
> after setting xforms i'm calling init().
>
> Everything is working fine without error. Now how do i get the processed
> document. If chiba converts xhtml+xforms to html+javascript, where can i
> find the converted documents?
> --
> View this message in context: http://www.nabble.com/How-to-get-the-processed-document-tp25218489p25218489.html
> Sent from the chiba-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Chiba-users mailing list
> Chiba-users@...
> https://lists.sourceforge.net/lists/listinfo/chiba-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users