displaytag - how to put search box in display tag using jsp & servlet? -


jsp code display tag shown below.. want search textbox on complain number...

<display:table name="complainlist" id="data" uid="models" pagesize="5" requesturi='<%= request.getcontextpath()+"/complaincontroller" %>' export="true"  >         <display:column title='<input class="selectall" name="selectall"  type="checkbox"  />'><center>          <input  class="selectid" name="selectid" type="checkbox" value="<c:out value="${data.getcomplainid()}"></c:out>" >         </input></center></display:column>         <c:set var="complaindate" value="${fn:substring(data.getcomplaindate(), 0, 10)}" />         <display:column property="complainnumber" media="html pdf excel csv"  title="complain number" group="1"          sortable="true" />         <display:column  title="complain date" group="2" media="html pdf excel csv"              sortable="true" ><c:out value="${complaindate}"></c:out></display:column>            <display:column property="status" title="status" media="html pdf excel csv" />         <display:column title="view" ><a  title="view record"  value="<c:out value="${data.getcomplainid()}"></c:out>" onclick="viewcomplain(this)" >            <img src="<c:out value="${pagecontext.request.contextpath }"></c:out>/images/view.png" alt="view"></img></a></display:column>         <display:column title="edit"><a  title="edit record" href="<c:out value="${pagecontext.request.contextpath }"></c:out>/complaincontroller?edit=<c:out value="${data.getcomplainid()}"></c:out>">             <img src="<c:out value="${pagecontext.request.contextpath }"></c:out>/images/edit.png" alt="edit"></img></a></display:column>         <display:column title="delete"> <a title="delete record" href="<c:out value="${pagecontext.request.contextpath }"></c:out>/complaincontroller?delete=<c:out value="${data.getcomplainid()}"></c:out>" >             <img src="<c:out value="${pagecontext.request.contextpath }"></c:out>/images/delete.png" alt="delete"></img></a></display`enter code here`:column>         <display:setproperty name="export.excel.filename"             value="complaindetails.xls" />         <display:setproperty name="export.xml.filename"             value="complaindetails.pdf" />         <display:setproperty name="export.csv.filename"             value="complaindetails.csv" />         <display:setproperty name="export.pdf" value="true" />     </display:table> 

the below given code servlet code..

long id = long.parselong(request.getsession()                     .getattribute("userid").tostring());             list<complain> complains = complaindao.displaycomplain(id);             request.setattribute("complainlist", complains); 

any 1 can me want search box.. advance of you..

get displaytag patch url: https://bitbucket.org/bkumar/displaytag-search

add classpath , follow link implementation: http://www.bkumar.co.uk/2012/03/12/displaytag-table-search-using-datatables-jquery-plugin/


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -