Unknown attribute type (Object) for attribute height

2 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    1 posts
    Member since:
    Aug 2013

    Posted 28 Aug 2013 Link to this post

    my jsp code
    <kendo:grid name="grid" pageable="true" sortable="true" height="430px" >
            <kendo:grid-editable mode="inline" confirmation="Are you sure you want to remove this item?"/>
            <kendo:grid-toolbar>
                <kendo:grid-toolbarItem name="create"/>
            </kendo:grid-toolbar>
            <kendo:grid-columns>
                <kendo:grid-column title="Product Name" field="productName" />
                <kendo:grid-column title="Unit Price" field="unitPrice" format="{0:c}" width="100px" />
                <kendo:grid-column title="Units In Stock" field="unitsInStock" width="100px" />
                <kendo:grid-column title="Discontinued" field="discontinued" width="100px"/>
                <kendo:grid-column title="&nbsp;" width="172px">
                    <kendo:grid-column-command>
                        <kendo:grid-column-commandItem name="edit" />
                        <kendo:grid-column-commandItem name="destroy" />
                    </kendo:grid-column-command>
                </kendo:grid-column>
            </kendo:grid-columns>
            <kendo:dataSource pageSize="20" data="${products}">
                <kendo:dataSource-transport>
                    <kendo:dataSource-transport-create url="${createUrl}" dataType="json" type="POST" contentType="application/json" />
                    <kendo:dataSource-transport-read url="${readUrl}" dataType="json" type="POST" contentType="application/json"/>
                    <kendo:dataSource-transport-update url="${updateUrl}" dataType="json" type="POST" contentType="application/json" />
                    <kendo:dataSource-transport-destroy url="${destroyUrl}" dataType="json" type="POST" contentType="application/json" />
                    <kendo:dataSource-transport-parameterMap>
                        <script>
                             function parameterMap(options,type) {                             
                                return JSON.stringify(options);                            
                            }
                        </script>
                    </kendo:dataSource-transport-parameterMap>
                </kendo:dataSource-transport>
                <kendo:dataSource-schema>
                    <kendo:dataSource-schema-model id="productId">
                        <kendo:dataSource-schema-model-fields>
                            <kendo:dataSource-schema-model-field name="productName" type="string">
                                <kendo:dataSource-schema-model-field-validation required="true" />
                            </kendo:dataSource-schema-model-field>
                            <kendo:dataSource-schema-model-field name="unitPrice" type="number">
                                <kendo:dataSource-schema-model-field-validation required="true" min="1" />
                            </kendo:dataSource-schema-model-field>
                            <kendo:dataSource-schema-model-field name="unitsInStock" type="number">
                                <kendo:dataSource-schema-model-field-validation required="true" min="0" />
                            </kendo:dataSource-schema-model-field>
                            <kendo:dataSource-schema-model-field name="discontinued" type="boolean" />
                        </kendo:dataSource-schema-model-fields>
                    </kendo:dataSource-schema-model>
                </kendo:dataSource-schema>
            </kendo:dataSource>
        </kendo:grid> 
    ============================================
    please solve my error.. i have placed all the tag links in my jsp page then also am getting the below error.

    My project is on Spring-mvc and it is web project running on jboss4



    Servlet.service() for servlet spring threw exception
    org.apache.jasper.JasperException: /WEB-INF/jsp/test.jsp(11,0) Unknown attribute type (Object) for attribute height.
        at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
        at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376)
        at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:238)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:932)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)
        at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
        at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
        at org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
        at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 30 Aug 2013 Link to this post

    Hi Mohammed,

    I'm afraid that it is not clear looking at the provided details what could be the caused of such error. Therefore, could you please provide additional details as your whole page definition and maybe a small runnable sample in which this can be observed locally.

    Regards,
    Rosen
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET AJAX banner
Back to Top