Does the Web Plugin for SonarQube allow HTML5 validation? Has anyone tried that?
I've read the plugin's documentation, and it mentions JSPs and HTMLs, but I need to know if it supports the new HTML5 tags.
I've just tested html5 validation with sonarqube 3.7 and the last web Plugin, and it works fine. There are a few specific rules for html5 tags. It's a good base to start working, and you can add more rules with regular expressions.
Related
I'm trying to use a Maven build to deploy to Confluence site using XML-RPC.
I'm having trouble finding the right protocol to use in distribution management. It is password protected.
Use one or both of the following:
Proxy Configuration
Maven Server Authentication
I don't think it's a good idea. Maven Site does not fit so well for Confluence: they have a specific layout... you should customize a lot of things in order to create a site that could be uploaded to Confluence, and the deployment is only the tip of an iceberg.
Instead, I suggest you to think to a different content, written in Markdown (or asciidoc, ...). It's very easy to convert those type of content in HTML compatible with Confluence.
By the way, if you need to upload a maven site style I suggest you to take a look at maven-confluence-plugin: in the wiki pages you can find the configuration to apply to do what you need.
I'm working on a similar plugin too. It's called confluence-maven-plugin. However the phylosophy of my plugin is not to be able to upload site, but to upload simple Markdown documentation to a confluence, guided mainly by a README.md as you probably do when you work with Github/BitBucket/etc...
I have read about using :remote=>true in rails3 and know that it add data-remote=true attribute to the generated html tag. But data-remote is a new attribute introduced in html5. Will :remote=true auto downgrade to some compatible implementation(old js or something else) in a browser that doesn't support data-remote attribute?
You don't need to worry about that.
data-remote is not something the browsers support, but something implemented in rails-ujs (which is the jQuery-to-Rails integration lib). Pretty much all browsers today support data attributes (whey supported them even before HTML5 was introduced).
HTML5 introduced custom data attributes, i.e. you can add your own attributes to an element by prefixing them with data-. Rails uses data-remote="true" and adds functionality using jQuery.
Your browser just has to to be compatible with jQuery.
Can I use spring liferay for mobile web development?
This is very basic question but I tried on google but I can't find any tutorial on this. Can anyone suggest anything on this.
Yes you can use it I think, since Spring is a server side java framework and for mobile web-development I don't think you need to do anything special apart from customizing the look-and-feel of the page which can be done through themes in liferay.
Starting from Liferay 6.1 you can even define Mobile Device Rules.
For a quick demo of this you can go to Liferay site, and try to change the window size of the browser and then see how the page changes. Even you can try to view this site in a mobile phone.
Hope this helps.
There seem to be a know issue with IE which doesn't respond to URLs that have # sign in them.
See for example: https://mootools.lighthouseapp.com/projects/2706/tickets/638-request-fails-when-url-has-hash-in-ie7
As we use # quite frequently in out GWT based application we are lacking support for IE7 users who want to browse the site.
Is there any known workaround for GWT other than modifying the URL?
History works perfectly well in our GWT app in all IE versions...
That ticket was about XMLHttpRequest, so do not use hashes in your xmlhttprequests. It has nothing to do with GWT.
First of all, the problem described in the supplied link is related with URLs that you query with XMLHttpRequest. In GWT application # can appear in ordinary GET request (when you are opening the page, that is when you are starting your GWT application). When GWT does XMLHttpRequest request, it uses URLs similar to:
http://yourserver.com/context/com.yourcompany.SomeModule/someService
There is no # in it, so if you have any problems, they are not related with this issue.
I think I finally figured out what the problem is.
Our gwt application is sitting as an iframe inside another HTML file so setting the gwt history support
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
has to be done in the outer HTML rather than the gwt one.
This gwt script was meant to support browsers such as IE6 and IE7 which don't have the onhashchange event implemented.
Does anyone know how to customise the rendering of the MVC sitemap provider so my ul element has a specific css class?
Try MvcSiteMapProvider hosted on CodePlex. You should be able to fairly easily migrate your existing Sitemap file to the slightly different but essentially compatible format. This will give you the ability to output your sitemap using the simple Html.MvcSiteMap().SiteMap() helper method.
The source of the project includes the default templates which you can edit to produce any rendering you like...or just pass in the name of a template in accordance with MVC convention. The model types you'll be rendering are SiteMapHelperModel, SiteMapNodeModel and SiteMapNodeModelList (namespaces removed for terseness).
I appreciate this may not be exactly what you're after as it relies on a 3rd party tool but its a useful project that supports much more than just rendering sitemaps. You'll want version 3.0.0 for MVC3.
Dan