These three tags operate basic drag & drop behaviour:
dragEnabled
Enables dragging any element from the component
dropEnabled
Enables dropping any element on the component
dragMoveEnabled
When this is set, any element that is dropped is moved instead of copied. Using the ctrl key the element is copied.
Drag & Dropping introduces two new actions: Move and Copy. Any element that supports drag & drop can have these actions to allow/disallow and to specify how these actions are synchronized to the server.
When creating enterprise applications that run on built web services this simple way of drag & drop does not allow enough freedom. A quick solution is to hook the dispatched events on each element and write JavaScript code to create the business logic. Although I really like JavaScript for it’s ease of use, I felt that a declarative approach would be beneficial.
In the following example there are Form, Page and Element nodes. A page must be inserted under a Form. An Element must be inserted under a Page.
The five rules in the j:dragdrop section control drag&dropping nodes from the list to the tree. The first rule allows Page and Element nodes to be dragged (and thus no Form nodes). The 2nd rule specifies when a Page is dropped on a Form it will be appended to that node. The third that when a Page is dropped on a Page it will be inserted before that node. In a similar fashion the dropping of Element nodes is configured in the 4th and 5th rule.
I have already sent two emails to the Javeline team via the “info@javeline.nl” email
address, but unfortunately I got no response
So I am contacting You directly here via this blog entry; because I have fallen in love with Your layout engine almost immediately ! I am currently doing some research with regard to layout in the native contemporary browsers, and Your approach seems to be really unique ! I have played around with it a little bit and am so impressed right now that I want to leverage Your layout engine ! I know that I can use the packager to extract only parts out of all the Javeline SDK stuff; but I couldn’t make it extract the layout parts … in fact I couldn’t get it to work at all …
I am also very much excited about Javeline in its whole glory, but this particular blog comment shall address the issue of leveraging Your layout engine separately. Is there a technical way to do it ? And what about licensing then ? Or do You know of other layout engines for browsers which are as capable as Yours seems to be ?
I just found your e-mail. It got lost in the spam box somehow. You will get a reply from me on that. It is possible to extract the layout engine using the packager. For what purpose would you like to use it? Please register to the internals mailinglist at http://developer.javeline.net/mailinglists.php and sent your answers there so the community can follow them as well.
Ajax applications connect to a backend. Most popular nowadays is to use REST to connect to a backend. This backend can be written in PHP, Perl, ASP, JSP or any other language. It’s the responsibility of that language to connect to a database using jdbc.
In Javeline PlatForm you would do something like this:
[…] early version of Javeline PlatForm and up untill that moment I had only positioned elements using anchoring. I did remember a nice feature that Visual Basic had, where I could align an element to one of the […]