- This topic has 3 replies, 2 voices, and was last updated 13 years, 8 months ago by
neyde.
-
AuthorPosts
-
Greg SoulsbyMemberNot sure where to post this, so trying here.
My expert on browser compatibility is telling me that <!DOCTYPE must be the first characters in a page, without white spaces beforehand. Something to do with old IE versions.
I am scaffolding my Spring apps with the CRUD wizard. The jsp pages /sitemesh_decorators/include.jsp and the home.jsp
have lines prior to <!DOCTYPE like<%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%> <CR/>
which insert the <CR/>, and the include.jsp has a space at the end of a line (which took ages to find).
I think the <CR/> should be removed from your production files, or a comment about this problem inserted, but even if not, how do I change the master templates on my installation, so I dont have to make these changes each time I scaffold?
Thanks
neydeMember@P0rridge wrote:
I am scaffolding my Spring apps with the CRUD wizard. The jsp pages /sitemesh_decorators/include.jsp and the home.jsp
have lines prior to <!DOCTYPE like<%@ page language=”java” import=”java.util.*” pageEncoding=”UTF-8″%> <CR/>
which insert the <CR/>, and the include.jsp has a space at the end of a line (which took ages to find).
I think the <CR/> should be removed from your production files, or a comment about this problem inserted, but even if not, how do I change the master templates on my installation, so I dont have to make these changes each time I scaffold?
Thanks
Nice detective work. I’m surprised no one has ever reported that before.
Rather than removing the <CR/> in include.jsp, I resolved the issue by modifying WEB-INF/sitemesh-decorators/main.jsp
I moved <!DOCTYPE…. to the top.As far as changing the master templates, take a look at the Customize Code Generation using JET Templates tutorial. It’s very easy to create a project that can be applied to all your ME4S code generation at the project-level and/or workspace level.
When you create the Customization project, you will want to modify the sitemesh templates that are located in the crudCommon/staticWebContent/common/sitemesh/sitemesh-decorators folder.
I will log this to be fixed in the next release.
Greg SoulsbyMemberThank Niel.
On the correctness of the jsp templates, should the <meta> , <base>,<param> tabs all be self closing – I am seeing them without the /> in home.jsp
Greg
-
AuthorPosts