Thursday, July 4, 2019

Generate HTML5 from Java Code

Some background. All the folks who coded in ASP/JSP or similar languages will remember the painful steps to display some database records in an HTML table. 
Use server side scripting code to get the records, then start an ASP loop, creating for each row,
for each field. If editable grid, then even more pain. (ya ya, I know don't mix the server side and client side scripting etc etc. But even without that pain was still there).
I remember searching something close to desktop VB counterpart, and found some ASP widgets but those were not recommended. 
 

New Ajax based UI frameworks like Angular takes away the pain quite a lot but there is a learning curve.
 
Recently came across Vaadin. As per the site:



The description itself, reminded me of the pain faced decade back. Not saying it can be used in all applications, and definitely needs more judicial decision making if being used in production but I loved the simplicity and approach. 

Plain simple java , getting converted to beautiful HTML 5.