Monday, January 21st, 2008

ExtTLD: Create Ext components with XML

Category: Java, JavaScript, Sencha

Jaroslav Benc has created ExtTLD, a JSP taglib generator that creates Ext JS components from your Java projects, using XML syntax:



  • Hibernate integration – HibernateStore component
  • DWR integration etc.
  • Eclipse plugin
  • UX Tags: Ext.ux.*, Ext.portal.*, Ext.feedreader.*, Ext.desktop.*

How ExtTLD works with ExtJS

ExtTLD is using a constructor definition to generate ExtJS code. Every component passes its code to the ancestor’s items attribute or other ( data, tools, buttons etc.). Config options are generated from tag’s attributes, listeners are generated from the attributes starting (“onX”). In case ID is set by user, global object with this ID is created ( Ext.getCmp(“id”)) so user can access this object in JavaScript.

Posted by Dion Almaer at 8:12 am

4 rating from 67 votes


Comments feed TrackBack URI

Builds on jQuery.


Comment by Cloudream — January 21, 2008

Feels like tags on steroids, but I like their approach. On the other hand the ethical constraints on the download page is a bit weird, though that’s totally offtopic ;)

Comment by deadcabbit — January 21, 2008

Idea is good!! Integration will be easier but, at first sight, the generated code is not very clean… listeners empty, js embedded in htm and not compressed, abuse of new constructor instead of xtype, references between objects usign Ext.getCmp can be a little hard…
The main problem is that the client-side code’s structure of Ext is really good so that you can easily distinguish bakckend from front-side. What about a change about a server-side technology (JSP to JSF or to an engine’s template like velocity…) !!
The developer must take care about TLD framework, compile and run its JSP and after examine/debug the Ext generated code, without the flexibility of the full Ext framework solutions (most Ext developments can be done in local using just a browser).

I think Ext team keep in mind the philosophy of separate front components from server store and specifically server technology.

But the roadmap is particularly interessant !! I will wait and see !

Comment by ludoo — January 21, 2008

Its very confusing that they would make potentially useful software and then in the licensing terms require the users to be vegan in order to legally use it. Good luck getting anyone to use your software.

Comment by Andy Kant — January 21, 2008

Great. Take a simple, flexible solution and complexify it beyond recognition. ExtJS configuration already uses JavaScript object literals (ie, JSON), which is simpler and more expressive than XML. This is a step backwards, folks.

Comment by ds94103 — January 21, 2008

Oh, and DWR integration is already really, really easy. I wrote a DWR proxy that plugs easily into the existing ExtJS framework in about an hour.

Comment by ds94103 — January 21, 2008

Appears to be implemented by some skilled developers. To bad their terms of service render the whole thing useless to all but individuals. No company would want to get mixed up with software that makes such bizarre demands of its users, whether or not they are in agreement with those demands.

Comment by JoHandsum — January 21, 2008

Personally, I think it’s good to introduce extjs as a tag library for Java apps, we are using stuff like displaytag anyway. This approach doesn’t break how people normally works and believe it or not, there are still a lot developer who get the chills coding straight up in Javascript.

The license term is a bit weird, but it doesn’t bother us as I don’t think where I work, we will ever get into anything related to animals. Works for me. But lots of us here use like burgers for lunch lol.

Comment by Liming — January 21, 2008

Just wait & see…

Comment by iam1genius — January 22, 2008

Hmm, well, since I consider human beings to be animals, I’m technically “developing or producing […] genetically modified organisms (GMO) which involve animal genes” every time I try and have a child with my wife.

Can I still use this product?

Comment by mdmadph — January 22, 2008

If I developed a great reallly useful tool, I wouldn’t want a company who conducts animal testing or other unethical treatments using it either. What is wrong with the tech industry having morals?

Comment by Jack Gordon — January 22, 2008

I tried dropping in their release into Tomcat and I was getting bunches of JS errors, but I was too lazy to check it out. Good idea though. With regard to the JSON complaint, I think the author has to understand not everyone wants to dive into JS code, plus the tag approach eliminates some JS boilerplate that will make for some nice poc type work for those developers who aren’t very good at js yet. I’m pretty curious about playing with this.

Comment by ilazarte — January 23, 2008

that’s cool

Comment by linizou — February 1, 2008

I guess mixing politics with programming is strange, specially if you’re slightly “fundamentallist”. I condone testing with animals for farmaceuticals and medicine, but we have no other choice. That or go back another 10k+ plus years, before basic health care.

Just watch the Discovery channel to find out how cruel TRUE NATURE is. Shark byte (:D) seals and leave them there until they bleed to death. Crocodiles snatch GNUs (:P) when they enter the water in the Serengetti.

It’s good to want good things to animals, but let’s face it, this that’s life as G_d intended it to be.

I like ExtTLD, although it’s rough on the edges. Do I comply with the “Ethical Wording”. Who cares! Send the damn lawyers and sue me.
In the end, carnivores are better than those damn creatures that feed on the poor and disfranchised.


Comment by CarlosOsuna — July 10, 2008

Leave a comment

You must be logged in to post a comment.