Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page keeps processing if use perticular <button> attribute #24

Open
gharia opened this issue Jul 5, 2013 · 0 comments
Open

Page keeps processing if use perticular <button> attribute #24

gharia opened this issue Jul 5, 2013 · 0 comments

Comments

@gharia
Copy link

gharia commented Jul 5, 2013

Hello,
I had integrated sitemesh 2.4.2 in my web app.
I am decorating pages using meta tag (PageDecoratorMapper) on JSPs. In one of page I came across strange problem. In HTML I have button tag as follow:

<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

Due to this line my page keeps loading. Taking more than 1.5 minute to complete processing. Now if I change this line to:

<input type="button" class="close" data-dismiss="modal" aria-hidden="true" value="x"></input>

same page loads in fraction of second. Strange thing is that I am not decorating this page with meta tag. It should not be considered by sitemesh filter. Following is my theme.jsp for reference:

<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<decorator:usePage id="origPage" />
<!--<![endif]-->
<head>
    <%@ include file="ccmrHeadInclude.jsp" %>
    <decorator:head />
</head>
<body>
<% String showHeaders = origPage.getProperty("meta.showHeaders")==null?"true":origPage.getProperty("meta.showHeaders");
System.out.println("Inside decorator");
    if(showHeaders.equalsIgnoreCase("true")){ %>
        <%@ include file="ccmrTopNavigation.jsp" %>
        <jsp:include page="ccmrSubNavigation.jsp"></jsp:include>    
<%}%>

<decorator:body />
<%@ include file="ccmrFooter.jsp" %>

</body>
<%@ include file="ccmrJSInclude.jsp" %>
<decorator:getProperty property="page.pageScript" />
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant