Property or field 'columns' cannot be found
Property or field 'columns' cannot be found
yogesh123
Posts: 5Questions: 4Answers: 0
Hello,
- i am using spring web flow aritechture having jsp contain server side datatable and one registration spring webflow form.
- I think Because of binding of form to its model attribute, datatable is not coming.
- When I making this at client side,i don't have that issue.
ErrorMessage - org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Property or field 'columns' cannot be found on object of type 'com.digitalprescription.bean.User' - maybe not public?
javascript for datatable as follow-
var url='${flowExecutionUrl}';
var newUrl = url+"&_eventId=getDoctorData"
$('#example1').dataTable().fnDestroy();
table1 = $('#example1').dataTable( {
"lengthMenu": [ 10, 25, 50, 100 ],
"sScrollY": "200px",
"bScrollCollapse": true,
"serverSide": true,
"deferRender": true,
"ajax": {"url":newUrl,"dataSrc": "data","data":{data:clientId}, "cache": false,"type":"post",error: function (xhr, ajaxOptions, thrownError) {
console.log("ajax error");
alert(xhr.status+' '+thrownError);
}},
"ordering": false,
"columns": [
{ "data": "userName" },
{ "data": "emailAddress" },
{ "data": "contactNo" },
{ "data": "address" },
{ "data": "registrationNo" }
],
"columnDefs": [ {
"targets": 5,
"data": null,
"defaultContent":
'<input type="submit" id="editUser" value="Edit" style="border-radius:8px;width:100%;height:30px"/>'
}],
} );
Html Code-
Register
Entity
Hosptial / Clinc
Hosptial / Clinc
Individual
<%-- <input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}" />
--%>
<div class="rightcontainer" style="display:inline-block;width:65%;margin-bottom:20px;font-family: Myriad Pro-Regular;color:#7C7272;min-height:725px;height:auto; background-color: #fff;position: absolute; left: 30%; top: 120px; bottom: 0;margin-left:10px">
<div class="row">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%" style="border:none !important;">
<thead class="table_tr_heading_small">
<tr role="header">
<th height="35px">User Name</th>
<th>Email Address</th>
<th>ContactNo</th>
<th>Address</th>
<th>Registration No</th>
<th>Action</th>
</tr>
</thead>
</table>
</div>
</div>
This discussion has been closed.
Answers
I have same issue as given, pls give some soln