Thanks for watching out for the older browsers. Our customer base is generally stuck multiple generations back on Firefox and Internet Explorer.
Chris Snider Senior Software Engineer Intelligent Software Solutions, Inc. [Description: Description: Description: cid:image001.png@01CA1F1F.CBC93990] From: Nuno Oliveira [mailto:nuno.olive...@geo-solutions.it] Sent: Wednesday, April 06, 2016 7:10 AM To: Andrea Aime <andrea.a...@geo-solutions.it> Cc: Geoserver-devel <geoserver-devel@lists.sourceforge.net> Subject: Re: [Geoserver-devel] Geofence drag and drop and JQuery version Hi, Thank you for the feedback Andrea. HTML5 give us the placeholder attribute that allow us to do the same thing as the inline-info plugin JQuery plugin: http://www.w3schools.com/tags/att_input_placeholder.asp Basically when declaring an input field in wicket we have to provide the placeholder attribute: <input id="username" type="text" name="username" value="" title="username" placeholder="username" wicket:message="title:username,placeholder:username"/> The only problem is that the placeholder attribute is not supported by older versions of Internet Explorer. So I also used a JQuery plugin that will make placeholders possible in older versions of IE but will not do anything if the browser supports the placeholder attribute: https://github.com/mathiasbynens/jquery-placeholder This plugin is compatible with the JQuery version used by Apache Wicket. The plugin will use the defined placeholder attribute so no extra configuration required. To activate the plugin we only need to add the line: $('input, textarea').placeholder(); I manually tested this solution with recent version of browsers Firefox and Chrome and with Internet Explorer 8. I will do a pull request with this changes. Regards, Nuno Oliveira Le mercredi 06 avril 2016 à 09:51 +0200, Andrea Aime a écrit : On Tue, Apr 5, 2016 at 7:35 PM, nuno.oliveira <nuno.olive...@geo-solutions.it<mailto:nuno.olive...@geo-solutions.it>> wrote: 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). Hi Nuno, my 2 cents on the matter, I'd go for something directly supported by wicket7 if at all possible, and if not, try to build a solution that works on top of the wicket7 own jquery, instead of adding a copy of jquery in the codebase Cheers Andrea -- == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 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 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