Hello,
as far as I understood Vaadin doesn’t generate HTML code on the server side.
Instead a state is sent from server to client which is rendered on the client side (so in the web browser) to HTML code.
I now want to understand, how a state change on client or server side is detected and send to server or client.
Im currently thinking about implementing an XSL transformation which removes some
unnecessary “
The Layout is looking like that
div.v-horizontallayout
div.v-slot
div.v-horizontallayout
div.v-slot
div (with form elements)
What happens if i delete through my xsl code all horizontal layout container elements?
I want to have HTML code like that:
div (with form elements)
If i now fill out the form and submit it, will the synchronisation between client
and server still work?
And if serverside validation fails, can the server still generate a valid shared state
and send to the client?
What items are part of the synchronisation - all Layout and UI Components or only
UI Components?
How does the connection between client and server work - on basis of generated Ids
on Layout and UI components - like in JSF see http://illegalargumentexception.blogspot.de/2009/02/jsf-working-with-component-ids.html
As far as i found out, there are two ways of communicating a state change from client to server and from server to client:
- an RPC call which communicate a stateless event like a button click from client to server
see https://vaadin.com/docs/-/part/framework/gwt/gwt-rpc.html - a shared state which is send from server to client and which should be considered on the client-side widget as read-only
see https://vaadin.com/docs/-/part/framework/gwt/gwt-shared-state.html
Thanks for your help in advance!