javascript - How to guarantee a class is never exposed client side with Vaadin -


i understand vaadin uses logic expose ui code , calls server access code through javascript. let's have listener example code references other classes. let's have like:

pojoclass data = databaseclass.getdatafromdatabase(); dosomeprocessingondata(data); .. mytextfield.setvalue(data.getsomevalue()); .. 

now how can sure code behind databaseclass not exposed javascript. assume happens, more how can dosomeprocessingondata(data) method may have calls 4-5 different classes has internal ip property not exposed? understand pojoclass exposed don't want internals of dosomeprocessingondata(data) exposed.

business logic stays on server-side

the business logic of vaadin app remains on server-side in pure java. no risk of exposure.

vaadin remotes user-interface client.

for example, when button clicked, signal sent client-side javascript library server run clicklistener code on server. if server-side java code causes changes state of user interface widgets, vaadin relays widget state changes client’s javascript library visual updating user. client-side remains blissfully unaware server-side java code connected database, called on web service, opened socket connection data feed, made accounting calculations resulting in new "grand total" value, posted message queue, sent out email, , wrote entries audit trail. client-side knows is: "button clicked" --> "grand total textfield has new value display".

think of vaadin web’s version of xwindows.


Comments