HTML Bindings
Getting your Java entities downloaded to the browser where you can manipulate them is powerful. But once they're there, how do you (or preferably the user) manipulat them? In order to make this easier, JsOrb includes a library of bindings that help you bind your POJOs to your HTML.About Bindings
In a typical desktop application, a pattern called Model-View-Controller (MVC) is used to separate what the user is editing from the user interface widgets used to edit it from the logic that controls the interactions. To make MVC work, the controller must listen to events that occur on both the model (what the user is editing) and the view (what the user is interacting with). In effect, the controller binds the model to the view, and deals with any translation that needs to occur between the two.Using JsOrb, the same situation applies: JsOrb can bind a UI
widget (typically a form element like an <input>
tag) to an property of a POJO. JsOrb sets up a controller which
listens to changes on either the UI widget or the property of the
POJO and keeps the two in sync: if the property of the POJO
changes, the UI widget is updated, and vice-versa.