[Gambas-user] New gb.web.form component
Benoît Minisini
gambas at ...1...
Tue Nov 10 05:19:16 CET 2015
Hi,
The gb.web.form is a new component whose goal is easing Web application
developement by mainly allowing to use the IDE form editor to define
your GUI interface.
It will use the web browser mainly as a sophisticated terminal. All the
application logic will be run on the server. It won't allow you to
create an application entirely in javascript that will be run inside the
browser (like Google docs for example).
The GUI is based a hierarchy of classes inheriting WebControl. The web
page is defined by a WebForm class. And you have a generic container
control, a button control, and a HTML control at the moment.
Complex javascript run on the browser must be implemented through
dedicated web controls. For example, we can imagine a control to put
OpenStreetMap inside your web application, a tree view, a grid view...
How to switch from one web form to another one is not designed yet. At
the moment, the url 'http://<server>/<root>/abcd' is supposed to display
the web form whose class name is 'abcd'. There is no way to have
different instances of the same web form.
The application state is stored in the user session. Don't expect to run
millions of users at the same time without suffering.
Do understand that the web application is a CGI script that must build
everything from scratch at each request, contrary to a normal
application. It has performance impact.
It is really an embryo at the moment, but you can run the project to
display a WebForm1 test form and see how it behaves.
Just tell me what you think about that, what ideas you have, and so on!
--
Benoît Minisini
More information about the User
mailing list