Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

JWt (Java web toolkit)

From Wikipedia, the free encyclopedia
JWt
Original authorEmweb
Initial release1.0.0 / December 2005; 20 years ago (2005-12)
Stable release
4.12.1[1] Edit this on Wikidata / 2025-10-16; 4 months ago
Written inJava
Operating systemCross-platform
TypeWeb framework
LicenseDual License:GNU General Public License orCommercial License
Websitewww.webtoolkit.eu/jwt
Repositorygithub.com/emweb/jwt

JWt (pronounced "jay-witty") is anopen-sourcewidget-centricweb application framework for theJava programming language developed byEmweb. It has an API that uses established GUI application development patterns. The programming model is component-based andevent-driven, similar toSwing.

The goal of the library is to benefit from the stateful component model used in desktop applications APIs, applied to web development, instead of the traditionalmodel–view–controller (MVC) model. Rather than using MVC at the level of a page, MVC is pushed to the level of individual components.

While the library uses a desktop application development model, it does support web-specific features includingsemantic URLs, browser history navigation support, internationalization, themes, and styling.

A unique feature of the library is its abstraction layer of the browser rendering model. The library usesAjax for communicating with Ajax-capable browsers, while using plain HTML form post-backs for other user agents (for accessibility and search engines). Using a progressive bootstrap method, the user interface is initially rendered as plain HTML, and for Ajax-capable browsers, it is automatically upgraded to use Ajax for increased interactivity.

JWt is distributed as a jar file. A JWt application is a war file that is deployed in a standards-compliantservlet container.

Major features

[edit]

See the feature list on the project homepage for a more detailed overview.[2]

  • Automaticgraceful degradation andprogressive enhancement
  • On all modern browsers, a JWt application is asingle-page application, with full support for forward/back and bookmark navigation, but still fullySEO.
  • Supports server-initiated events (Comet), and usesasynchronous I/O when deployed within a Servlet 3.0 container.
  • A unified 2D rendering API (SVG/HTML5 canvas/VML/PDF) with java.awt.Graphics2D compatibility
  • IntegratedPDF rendering for Widgets, Graphics (Charts) and HTML/CSS, to generate reports
  • Both client-side and server-side validation
  • Various automatic built-in security features to avoidcross-site scripting andCSRF vulnerabilities.
  • Theme support through CSS orBootstrap
  • Available widgets are demonstrated in thewidget gallery
  • A 3D painting API for WebGL rendering, with fallback to server-side GPU accelerated rendering
  • A 3D chart API (surfaces, points, bar charts, ...) supporting selection, intersection highlighting, height maps, isolines, ...

Code example

[edit]

The Hello World![3] example full source code[4]

/* * A simple hello world application class which demonstrates how to react * to events, read input, and give feed-back. */publicclassHelloApplicationextendsWApplication{publicHelloApplication(WEnvironmentenv){super(env);setTitle("Hello world");getRoot().addWidget(newWText("Your name, please ? "));finalWLineEditnameEdit=newWLineEdit(getRoot());nameEdit.setFocus();WPushButtonbutton=newWPushButton("Greet me.",getRoot());button.setMargin(5,Side.Left);getRoot().addWidget(newWBreak());finalWTextgreeting=newWText(getRoot());button.clicked().addListener(this,newSignal.Listener(){publicvoidtrigger(){greeting.setText("Hello there, "+nameEdit.getText());}});}}

See also

[edit]

References

[edit]
  1. ^"Release 4.12.1". 16 October 2025. Retrieved20 October 2025.
  2. ^"JWt, Java Web Toolkit — Emweb".www.webtoolkit.eu. Retrieved27 October 2019.
  3. ^"JWt, Java Web Toolkit — Emweb".www.webtoolkit.eu. Retrieved27 October 2019.
  4. ^"SOURCE CODE OF THE HELLO WORLD EXAMPLE".www.webtoolkit.eu.

External links

[edit]


.NET
C++
ColdFusion
Common Lisp
Haskell
Java
JavaScript
Back end
Server-side
Full-stack
Front end
Client-side
Perl
PHP
Python
Ruby
Rust
Scala
Smalltalk
Other languages
Retrieved from "https://en.wikipedia.org/w/index.php?title=JWt_(Java_web_toolkit)&oldid=1243963450"
Categories:
Hidden category:

[8]ページ先頭

©2009-2026 Movatter.jp