Ok, now my homepage is W3C compliant (
Quixhttp://www.quix.it).
Here my solution:
1. Changing the view.jsp of the Journal Content Portlet as I told in the previous post:
<div class="journal-content-article" id="p_<%= articleDisplay.getGroupId() %>_<%= articleDisplay.getArticleId() %>_<%= articleDisplay.getVersion() %>">
<%= content %>
</div>
I don't know the impact of this change. I don't see any reference to that id. Maybe Liferay developers could answer.
2. Using in my portlet the API to create URL instead of tag library. We developed our portlet using <portlet:actionURL> tag to create link but this tag create URL with "&" character between parameters. This is not compliant with W3C validations. So we changed the code replacing tag library with the API renderResponse.createActionURL() and escaping the URL with the Apache Common Library
3. Changing image URL in Journal Model. If you have a structure with an image type you have to build the template escaping "&" chars in the url. Es:
<img src="$imagesmall.getData().replaceAll('&', '&')" align="left" .....
Hope this could be helpful to others that want to vaidate theiir portals.
Andrea
Please sign in to flag this as inappropriate.