Hello,
I am currently developing a client side component and I’m currently stuck with a problem, I hope somebody is able to help me.
In our project we needed a custom table component with gantt capabilities. So I have created such a component with extended Widget/AbstractComponentConnector/AbstractComponent classes.
Now i need to add an editor form to our component. I don’t want to code this editor in GWT, I’d rather just use a “normal” Vaadin component acting on the server side.
But I’m very unsure, how I can accomplish this. I know that I can exchange Connector objects in the components state and I’m already doing that. But what is the general pattern for doing this after a users action? So I catch a click in my client component. Then I would need the server to know that and deliver the editor component. Since the server RPC cannot return values, would I also do this with the components state? Where on the server side would I add this editor component in the hierarchy?
On the client side I would want to do something like
this.editorLayout = (VFormLayout) connector.getWidget();
widget.getPopupPanelDiv().appendChild(this.editorLayout.getElement());
assuming the connector is the servers editor component connector.
I hope the description is not too blurry…If it is I would try to explain it in more detail again.
Thanks in advance!