The Source for Java Technology Collaboration
User: Password:



Carla Mott

Carla Mott's Blog

jMaki wrappers for ExtJs now available

Posted by carlavmott on December 27, 2007 at 10:19 AM | Comments (2)

In a joint effort with the ExtJs toolkit team, the jMaki wrappers for the ExtJs 1.1 toolkit are now available, jmaki-ext-1.0.1.zip. Included are wrappers for the menu, grid and tree widgets from the ExtJs toolkit. The wrappers support the jMaki data and event models as described on our wiki.

You have several options for including the widget library in your application. If you use NetBeans follow the instructions for adding the jmaki-charting widget library on Ludo's blog. Simply load the ExtJs library you downloaded instead of jmaki-charting. You can then drag and drop widgets from the palette into your application. Otherwise unzip the widget library into your application and add the appropriate tag to your page. For example, the ExtJs grid tag including default data looks like:

 <a:widget name="Ext.grid"
    value="{columns : [
     { label : 'Title', id : 'title'},
     { label :'Author', id : 'author'},
     { label : 'ISBN', id : 'isbn'},
     { label : 'Description', id : 'description'}
     ],
     rows : [
     { title : 'Book Title 1', author : 'Author 1', isbn: '4412', description : 'A Some long description'},
     { id : 'bar', title : 'Book Title 2', author : 'Author 2', isbn : '4412', description : 'A Some long description'}
     ]
     }" />

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • hi,

    is there anyway to add it to the eclipse plugin snippet ? not that it matters much as I am more or less a vi user most of the time so typing natural, just curious.

    another question is, how likely we shall see extjs 2.0 widgets ?

    or may be asked another way, are there any documentation talking about how to implement widgets ?

    extjs is pretty nice in creating its components as all I need is just a javascript object(i.e. dictionary). What I would like to know is how to link these dictionary values with design time(i.e. jsp), like what CSS class to use, the width/height, initial states and the datastore(say for grids) etc. The run time I assume is already done so long my return is a JSON which is in expected format by extjs.

    Posted by: garyng on December 30, 2007 at 06:40 PM

  • Hi garyng, We have talked about updating the Eclipse plugin so that users can add libraries that are made available outside the standard release. It comes down to time. We do have this feature on our list of things to do. Hopefully, we can get to it soon. We are always looking for help but especially with the plugins. We are talking about the ExtJs 2.0 wrappers and trying to figure out how to handle the licensing issues. There was an email thread on the dev alias that talked about how to wrap widgets since we are wrapping the Dojo 1.0.2 release now. I plan to take that content and create a web page descibing just that. I saw that in the Dojo grid you can set style info along with the data. We will have to look at how Yahoo and Ext JS do this and decide what to do if they all handle things differently. Thanks, Carla

    Posted by: carlavmott on January 21, 2008 at 02:53 PM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds