ggnerd
15 Feb 2008, 6:24 AM
Do anybody have an example on integration of XForms with ExtJs widgets? Any ideas on how these two technoligies can compliment each other? When using Xforms with Ext is there anything challenging that needs to be dealt with? I am a learner in this area and any kind help will be greatly appreciated.
webbbret
17 Mar 2009, 3:20 PM
I am currently developing in Exist, XQuery, Rest, XForms (XRX) with ExtJS. First, here is a pointer to another project that uses Dojo Toolkit:
http://chiba.sourceforge.net/
When using XQuery, you will have a client.bat or .sh file that is the mechanism for loading Resources and collections into Exist. Using this, I copied the significant .js and .css files from the Ext JS distribution to my Exist instance. For good measure, restart the Exist instance.
Within my .xq file, I have the following:
<link type="text/css" rel="stylesheet" href="apps/resources/css/ext-all.css"/>
<script type="text/javascript" src="apps/resources/scripts/ext-base.js"></script>
<script type="text/javascript" src="apps/resources/scripts/ext-all-debug.js"></script>
<script type="text/javascript" src="apps/resources/scripts/from-markup.js"></script>
My understanding is that XQuery objects can be used in-line, which translates to me as "use Ext JS as normal at that point"...
I have not tested out variations on Grids (editable, etc) and likely wont, but it sure beats rendering tabular renditions of results using straight CSS.
From what I can tell, it looks like getting the Ext JS references recognized is not an issue. Getting the data into the objects may be the bigger challenge, but so far, "rendering from markup" http://extjs.com/deploy/dev/examples/grid/from-markup.html has been an invaluable example.
Not sure if this was what you were looking for, but hope it helps somewhat. Good Luck!
Alain COUTHURES
17 Mar 2009, 11:05 PM
I'm in charge of an XForms client implementation project named XSLTForms (http://www.agencexml.com/xsltforms/).
It is based on an XSLT transformation to generate XHTML+Javascript.
So it is possible to call JS frameworks with it. It is also possible to define custom XForms extensions to automatically generate the corresponding Javascript !
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.