Hi, in GeoFence is possible to manage rules priority using drag and drop, this functionality was implemented using the library wicket-dnd (https://github.com/svenmeier/wicket-dnd). After the Apache Wicket 7 upgrade the wicket-dnd library was also upgraded to a version that supports Apache Wicket 7, but the drag and drop functionality was not working.
Long story short, the drag and drop in GeoFence is not working because of the JQuery version used by GeoServer. Apache Wicket 7 and the wicket-dnd use JQuery 1.11.3 but GeoServer still includes JQuery 1.2.6. To fix the drag and drop issue the version of JQuery imported by GeoServer needs to be upgraded to JQuery 1.11.3. Looking for imports of JQuery library under geoserver/src returns the following paths: ./web/core/src/main/java/org/geoserver/web/GeoServerBasePage.html ./web/demo/src/main/java/org/geoserver/web/demo/PlainCodePage.html ./web/core/src/main/java/org/geoserver/web/wicket/CodeMirrorEditor.js ./web/core/src/main/java/org/geoserver/web/wicket/GeoServerTablePanel.html ./extension/wps/web-wps/src/main/java/org/geoserver/wps/web/SubProcessBuilder.html None of this files is directly using JQuery for doing something, at the exception of CodeMirrorEditor all the imports of JQuery exists only because of the plugin inline-info. Besides, in file CodeMirrorEditor the code that uses JQuery is commented. The inline-info plugin is located in: ./web/core/src/main/java/org/geoserver/web/js/jquery.inline-info.js and the source code for this plugin is available at: https://github.com/chrispatterson/jquery-inline-info This plugin is used to show tips to user directly in the input fields, when the user clicks in the input field the tip is removed allowing the user to enter the data. Even if this plugin is imported by several files it is only used in GeoServerBasePage (to show username and password tips in the login fields) and in GeoServerTablePanel (to show the tip Search in the filter field). Sadly the inline-info plugin has not been updated in the last years and don't support JQuery 1.11.3. So, if I didn't miss anything upgrading the JQuery 1.2.6 included by GeoServer to JQuery 1.11.3 can be resumed to find an alternative to the inline-info plugin. I have tree possible solutions for this: - Check if apache wicket 7 provides the same functionality as the inline-info plugin out of the box. - Find a JQuery 1.11.3 plugin alternative. - Change this inline-info plugin source to be compatible with JQuery 1.11.3 (not very difficult). Any comments on this are welcome :) Best regards, Nuno Oliveira -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Nuno Miguel Carvalho Oliveira @nmcoliveira Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 333 8128928 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- AVVERTENZE AI SENSI DEL D.Lgs. 196/2003 Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e -mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003. The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc. ------------------------------------------------------------------------------ _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel