Boa tarde a todos.
Tenho uma página onde exibo 3 grid´s, a primeira grid os valores aparecem, mais estão desabilitados (disable=“true”). Na Segunda grid consigo manipular esses valores. O problema agora esta na terceira grid, o q que acontece, vamos por parte.
Na segunda grid ele exibi o ano corrente e a grid com valores, na terceira grid ele exibi o ano anterior e a grid com valores. Quero que a terceira grid exiba os valores desabilitados, caso o ano seja menor do que o ano corrente.
Sei que esta meio confuso meu texto, mas confesso que não tem muito o que explicar.
Vou colocar o código da minha jsp pra ficar um pouco mais fácil. Vou colocar só a parte problemática.
jsp
<table cellspacing="0" cellpadding="0" border="1" width="100%" class="tabela">
<tr bordercolor="1">
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;" colspan="12">
<c:out value="${formReajuste.nrAno - 1}"/></td>
</tr>
<tr bordercolor="1">
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">JAN</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">FEV</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">MAR</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">ABR</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">MAI</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">JUN</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">JUL</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">AGO</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">SET</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">OUT</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">NOV</td>
<td style="text-align: center; font: bold Verdana, Helvetica, sans-serif; font-style:italic; color:grey;">DEZ</td>
</tr>
<tr bordercolor="1">
<c:if test="${formReajuste.nrAno.lenght() < formReajuste.nrAnoCorrente.lenght()}">
<td width="8%" class="form-item"><html:text name="formReajuste" property="prJaneiroAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prFevereiroAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prMarcoAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prAbrilAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prMaioAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prJunhoAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prJulhoAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prAgostoAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prSetembroAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prOutubroAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prNovembroAnterior" size="5" disabled="true" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prDezembroAnterior" size="5" disabled="true" maxlength="6" />%</td>
</c:if>
<c:if test="${formReajuste.nrAno.lenght() > formReajuste.nrAnoCorrente.lenght()}">
<td width="8%" class="form-item"><html:text name="formReajuste" property="prJaneiroAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prFevereiroAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prMarcoAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prAbrilAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prMaioAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prJunhoAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prJulhoAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prAgostoAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prSetembroAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prOutubroAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prNovembroAnterior" size="5" maxlength="6" />%</td>
<td width="8%" class="form-item"><html:text name="formReajuste" property="prDezembroAnterior" size="5" maxlength="6" />%</td>
</c:if>
</tr>
</table>
Desde já agradeço.
[]´s