mstahv / diagram-builder

Vaadin Add-on built over ALLOYUI DiagramBuilder
Apache License 2.0
7 stars 11 forks source link

problem with integrating diagram-builder into a vaadin project #4

Closed xcw closed 10 years ago

xcw commented 10 years ago

Hi Matt,

I have been trying to integrate this addon into a vaadin project the way I would with other add-ons, but I was still not able to load it. Here is my dummy project https://www.dropbox.com/s/rgnl1zzbo316zs5/vca.zip . Yes, I did pose this question at different sites and got some valuable feedback, but I still have problem running it. I would really appreciate your taking a look into it! Thanks! :-)

Cheers, X.

mstahv commented 10 years ago

Hi,

I didn't check your sources, but as stated on vaadin.com/forumm check that you have inserted AlloYUI scripts e.g. like in this example.

xcw commented 10 years ago

Hi Matti,

Thanks for the tip, my dummy vaadin project is running fine now with diagram builder add-on. Now I am trying to customize nodes and their properties. One more question, how is it done to exchange/or store updated value into file system or database? Cheers, X.

mstahv commented 10 years ago

Hi, use getDiagramState and pass a callback for it. Nodes can be read from the event.

https://github.com/mstahv/diagram-builder/blob/master/diagram-builder-demo/src/main/java/org/vaadin/diagrambuilder/demo/DemoUI.java#L73