OnthesideofthesearchIaddedamagnifyingglassbecausetheuserclickedittosearchforthewordthattheuserentered,IusedaparameterthatIcreatedinmycontrollerinJava.
NowIneedtodothesamethingonthedates,whenselectingthedatesthesystemwillsearchthedatesandifitexistsinthesystemitwillbedisplayed.
IwouldliketotakeadvantageoftheDatePickercalendarandpassparameterstoit
FollowthesearchcodethatisworkingwhereIpassedtheparameteruntilthenblz
<divclass="form-group col-lg-4">
<label class="control-label">Busca:</label>
<form method="GET" th:action="@{/acompanhamentoprimeiropedido}">
<input class="form-control" name="parametroBuscaPrimeiroPedido" />
<button type="submit" class="btn btn-info">
<i class="glyphicon glyphicon-search"></i>
</button>
</form>
</div>
I tried to do the same thing in the Datepicker, but it is giving the error Required String parameter 'parametroBuscaEmissao' is not present This is because I have something wrong in html and I do not know where my error is.
<form method="GET" th:action="@{/acompanhamentoprimeiropedido}">
<div class="input-daterange" id="datepicker" style="right: 0px;">
<div class="form-group col-xs-12 col-md-3 col-lg-3">
<label for="dataSolicitacao" class="control-label">Data da Solicitação:</label>
<input type="text" class="input-sm form-control" name="parametroBuscaEmissao" id="fini-primeiro-pedido" />
</div>
<div class="form-group col-xs-12 col-md-3 col-lg-3" style="right: 0px;">
<label class="control-label">Até</label>
<input type="text" class="input-sm form-control" name="parametroBuscaEmissao" id="ffin-primeiro-pedido" />
</div>
</div>
</form>
I put the name by calling the ParseSearchName and I confess that
<input type="text" class="input-sm form-control" name="parametroBuscaEmissao" id="fini-primeiro-pedido" />
In place of the text I put submit but the error persists. How and where do I put the parameter to work correctly?
Can anyone help me find the error in the code?