Web Info & Tutorials

January 22nd, 2007

AEJAKS - TCL/TK STYLE FRAMEWORK BUILT ON ECHO2

For those Ajax cowboys out there who pine for the power and simplicity of Tcl/Tk, there is good news for you: Aejaks lets you write Ajax apps using Tcl. The widget model is inspired by that of Tk, but is not compatible with it.

JAVASCRIPT:
  1.  
  2. #####################################################################################
  3. # showCode - create a new window, show the code from the code array
  4. proc showCode {name} {
  5.     global code
  6.     set w .split.s2.win
  7.     if {[info exists ::$w.code_$name]} {
  8.  return
  9.     }
  10.     WindowPane $w.code_$name -title "$name Code" -width 600 -height 600
  11.     ContentPane $w.code_$name.c -background white -insets 10
  12.     Pack $w.code_$name.c  -insets {10 10 10 10} -border {4 black solid}
  13.     TextArea $w.code_$name.c.t -text $code($name) -foreground black -background white -width 800 -height 600  -border {3 black groove}
  14.     Pack $w.code_$name.c.t
  15.     Pack $w.code_$name
  16. }
  17.  

aejaks.png

It uses Jacl, a Java implementation of the Tcl language and is implemented on top of another framework we are familiar with: Echo2.

Echo2 is a Java based windowing toolkit for building Ajax-enable applications. Aejaks translates most of the Echo2 Java objects into Tcl objects, but provides many shortcut features, such as anonymous object construction for attribute-type objects.

There is a console included in the source that allows you to do some interactive scripting with Tcl, otherwise it looks like you have to compile the Tcl into an app before deploying.

This is another sign that 2007 will be a year of intermediate forms, i.e. frameworks the compose and build on other frameworks. Wait until 2008 until we see something truly new.

January 22nd, 2007

JAVA TO JAVASCRIPT COMPILATION WITH AJAX AND SPRING INTEGRATION

Ben Alex of Interface 21 has cursive a careful place on Java to JavaScript compilation.

The article discusses whatever of the choices discover there (GWT, OpenLaszlo) and goes into an unstoppered maker deciding titled Java2Script Pacemaker.

Spring combining is shown and acquirable for download and it concludes:

J2S promises whatever captivating benefits for projects that order JavaScript assembling or a scheme application feat of SWT. It also interoperates successfully with a Spring backend. J2S’ wilful pick to investment proven existing technologies much as AST and SWT attain it a beatific warning of reusing existing cipher and developer skills, in invoke cloudy acceptation barriers and the individual of touchable API change. If you study yourself an primeval adopter, SWT devotee, or requirement a client-centric, web-based individual programme that is shapely upon the grown SWT UI framework, it is definitely worth attractive a fireman countenance at J2S.

Does SWT hold do it for you?