Telerik Forums
UI for JSP Forum
1 answer
124 views
Will Kendoui read json returned in a HAL/Hypermedia format?

{
"_links": {
"self": {
"href": "http://localhost:8080/api/leads{?page,size,sort}",
"templated": true
},
"next": {
"href": "http://localhost:8080/api/leads?page=1&size=20{&sort}",
"templated": true
}
},
"_embedded": {
"leads": [
{
"status": "Open",
"accountName": "Foley, Tatiana",
"firstName": "Ezra",
"lastName": "Cline",
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.",
"howDidYouHear": "Lorem ipsum dolor sit amet,",
"referringUrl": "http://google.com",
"userIp": "augue.",
"resolvedHost": "Nisi Nibh Consulting",
"addressType": "Home",
"addressLine1": "9290 Lectus Rd.",
"addressLine2": "quis",
"addressCity": "Banff",
"addressState": "BA",
"addressPostalCode": "E6 1JG",
"addressCountry": "UK",
"emailType": "Home",
"address": "purus@a.edu",
"emailOptOut": true,
"phoneType": "Home",
"phoneNumber": "890-6930",
"phoneExt": "678",
"_links": {
"self": {
"href": "http://localhost:8080/api/leads/1"
},
"websites": {
"href": "http://localhost:8080/api/leads/1/websites"
},
"leads": {
"href": "http://localhost:8080/api/leads/1/leads"
},
"socials": {
"href": "http://localhost:8080/api/leads/1/socials"
}
}
},
......
Shannon
Top achievements
Rank 1
 answered on 25 Jan 2015
1 answer
538 views
Has any one designed samples for Dashboard using UI for JSP. if so can you please share.
Sebastian
Telerik team
 answered on 08 Jan 2015
1 answer
71 views
I want to use shiro tags in jsp pages,like  this : <shiro:hasPermission name="user:create"><kendo:grid-toolbarItem name="create"/> </shiro:hasPermission>,

But there is an exception when i run this page.Exception Informations as below :

javax.servlet.jsp.JspException: The <kendo:grid-toolbarItem> tag should be nested in a <kendo:grid-toolbar> tag.
at com.kendoui.taglib.BaseTag.findParentWithClass(BaseTag.java:133)
at com.kendoui.taglib.grid.ToolbarItemTag.doEndTag(ToolbarItemTag.java:21)
at org.apache.jsp.WEB_002dINF.jsp.user.list_jsp._jspx_meth_kendo_005fgrid_002dtoolbarItem_005f0(list_jsp.java:461)
......................................

 javax.servlet.jsp.JspException: The <kendo:grid-toolbarItem> tag should be nested in a <kendo:grid-toolbar> tag.] with root cause
 javax.servlet.jsp.JspException: The <kendo:grid-toolbarItem> tag should be nested in a <kendo:grid-toolbar> tag.

How can I solve this problem? or How can I use other tags in kendo tags?  thinks!
Atanas Korchev
Telerik team
 answered on 02 Jan 2015
3 answers
54 views
Hello,

Why to get more errors on JS foder when to build one JS project in MyEclipse with JDK 1.7?
Zhigang
Top achievements
Rank 1
 answered on 18 Dec 2014
3 answers
89 views
I am using Kendo UI JSP. I tried Server paging and popup mode editing.

Kengo grid operates well in delete, update. But when I add record by popup editor and saves, Idx(Primary Key)  field is not correctly updated. 

idx PK field is generated by database trigger. It displays always "0" in grid, instead of server generated value. 

How can I solve this problem. Idx must be updated by server generated value.


<kendo:grid name="grid" pageable="true" height="430px" culture="ko-KR" >  
    <kendo:grid-editable mode="popup" confirmation="true"  />
    <kendo:grid-toolbar>
    <kendo:grid-toolbarItem name="create"  />
    </kendo:grid-toolbar>  
   
<kendo:grid-columns>
<kendo:grid-column title="번호 " field="idx" width="20px" />
        <kendo:grid-column title="제목" field="name" width="100px" />
        <kendo:grid-column title="답변1" field="reply1" width="20px"/>
        <kendo:grid-column title="답변2" field="reply2" width="20px"/>
        <kendo:grid-column title="답변3" field="reply3" width="20px"/>
        <kendo:grid-column title="답변4" field="reply4" width="20px"/>
        <kendo:grid-column title="답변5" field="reply5" width="20px"/>
        <kendo:grid-column title="답변6" field="reply6" width="20px"/>
        <kendo:grid-column title="&nbsp;" width="40px" >
       <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" serverPaging="true" serverFiltering="false" serverGrouping="false" serverSorting="false" >
<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>
              function(options){return JSON.stringify(options);}
            </kendo:dataSource-transport-parameterMap>              
</kendo:dataSource-transport>
          
<kendo:dataSource-schema data="data" total="total" groups="data"  > 
       <kendo:dataSource-schema-model id="idx">
           <kendo:dataSource-schema-model-fields>
               <kendo:dataSource-schema-model-field name="idx" type="number" editable="false" />                   
               <kendo:dataSource-schema-model-field name="name" type="string" />
               <kendo:dataSource-schema-model-field name="question1" type="string" />
               <kendo:dataSource-schema-model-field name="question2" type="string" />
               <kendo:dataSource-schema-model-field name="question3" type="string" />
               <kendo:dataSource-schema-model-field name="question4" type="string" />
               <kendo:dataSource-schema-model-field name="question5" type="string" />
               <kendo:dataSource-schema-model-field name="question6" type="string" />
               <kendo:dataSource-schema-model-field name="reply1" type="number" editable="false" />
               <kendo:dataSource-schema-model-field name="reply2" type="number" editable="false" />
               <kendo:dataSource-schema-model-field name="reply3" type="number" editable="false" />
               <kendo:dataSource-schema-model-field name="reply4" type="number" editable="false" />
               <kendo:dataSource-schema-model-field name="reply5" type="number" editable="false" />
               <kendo:dataSource-schema-model-field name="reply6" type="number" editable="false" />
           </kendo:dataSource-schema-model-fields>
       </kendo:dataSource-schema-model>
</kendo:dataSource-schema>
</kendo:dataSource>
</kendo:grid>





Alexander Popov
Telerik team
 answered on 18 Sep 2014
1 answer
120 views
How can I set popup editor's template?

Following code does't work.
 

<kendo:grid name="grid">
    <kendo:grid-editable confirmation="true"  mode="popup" template="editTemplate" />

...
...    

<script type="text/x-kendo-template" id="editTemplate">   
    <input id="productId" type="text" >
    <input id="productName"  type="text" >
    <input id="unitPrice"  type="text" >
    <input id="unitsInStock"  type="text" >
</script>
Alexander Popov
Telerik team
 answered on 18 Sep 2014
2 answers
66 views
Hi,

Just wanted to check if this is required for my project. I see that kendo UI has 70+ widgets where as UI for JSP has only 40+. So which one is better for my project that is explained below:

My project is database extensive, will be based on windows server 2012. It is basically a data centric.

Could some one shed more light on server wrapping and which one I should go for my requirement keeping the above points in mind?

Regards
Vinay
vinay
Top achievements
Rank 1
 answered on 09 Sep 2014
1 answer
68 views
I am new to Kendo and I am testing out the grid functionality using the JSP tag library with the Grid control.

In my Java code I am building up a List<Employees> and setting it as an attibute in the request. The Employee class is simple, being 

    private int EmployeeID;
    private int ManagerID;
    private String LastName;
    private String FirstName;

with accompanying getters and setters.

I am sending it to the JSP page using
     request.setAttribute( "theData", employees);

I have successfully displayed the grid using the following tags in my JSP page.

                <kendo:grid name="grid1" id="grid1"
                    sortable="true"
                    groupable="true">
                    <kendo:grid-pageable buttonCount="5" pageSize="5" info="true">
                    </kendo:grid-pageable>
                     
                    <kendo:dataSource data="${theData}">
                    </kendo:dataSource>
                    <kendo:grid-columns>
                        <kendo:grid-column field="firstName" title="First Name"   width="80px" />
                        <kendo:grid-column field="lastName" title="Last Name"  width="80px"/>
<%--                         <kendo:grid-column field="employeeID" title="Employee ID"  /> --%>
<%--                         <kendo:grid-column field="managerID" title="Manager ID"  /> --%>
                    </kendo:grid-columns>
                 </kendo:grid>

I have also sucesfully displayed the grid if I remove the entire kendo:grid-columns tag. Therefore I know that my data path is wired up correctly.

If I uncomment out either of the grid-columns (employeeID or managerID) the page throws a NullException error at

    at com.kendoui.taglib.BaseTag.setProperty(BaseTag.java:67)
    at com.kendoui.taglib.grid.ColumnTag.setField(ColumnTag.java:137)
     ...

Any combination of two data columns displays as expected but adding a third or fourth one cases the exception. Is this something I am doing wrong? Is this a known issue with the JSP tag libraries?

Thanks for any help you can provide.

Steven

Atanas Korchev
Telerik team
 answered on 26 Aug 2014
3 answers
97 views
Hi
This is Ganesh and I'm completely new to this framework.

I've a requirement to show all the Employee details from database.  I'm using MySQL Database.

And I must show those results in a tabular format.

Whatever details I've shown in the grid or table they details must be editable. i.e., you can update or delete those records.

Kindly help me in this issue. 
I'm using Eclipse 4.3 version. 

Thank you.

Regards,
Ganesh Kumar K
ganesh.asp.net@hotmail.com
Vladimir Iliev
Telerik team
 answered on 01 Jul 2014
3 answers
301 views
Hi,

I'm returned a list of java objects in my controller and using kendo taglibs to successfully outputting the data, but I'm having some issues displaying the date correctly for one my attributes. The attribute I'm returning is a Date object.

It's been outputted as a numeric i.e. 1342438812000. I thought I may need to format and or parse the date.

I've tried to update the grid column to

 <kendo:grid-column title="DatePublished" field="datePublished" width="110" format="{0:MM/dd/yyyy}" template="kendo.toString(datePublished, 'MM/dd/yyyy')"/>

or
<kendo:grid-column title="DatePublished" field="datePublished" width="110" format="{0:MM/dd/yyyy}" template='#= kendo.toString(datePublished, "yyyy/MM/dd") #'/>

though I'm having little luck outputting the date format correctly..

I could change it to a string in java, though I want to add some filtering to the date when I have it outputted.

Anyone have any ideas?

Thanks
Petur Subev
Telerik team
 answered on 24 Apr 2014
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?