Olá pessoal tudo bom???
Bom alguem consegue me explicar como funciona a parte de taglib no Struts 2??? Pq tipo tenho um form.jsp que coloco os campos em uma ordem mas quando rodo o projeto a ordem dos campos são alteradas e ele adiciona css nos
q nao coloquei no form.jsp.
form.jsp<%@ taglib prefix="s" uri="/struts-tags" %>
<s:form action="Fabricante" method="post" validate="evalue">
<s:hidden name="fabricante.fabricanteId"/>
<table width="95%" border="0" cellspacing="2" cellpadding="3">
<tr>
<td align="left">Status:</td>
<td align="left">
<s:select key="label.status" name="fabricante.statusFabricante" list="%{#{'A':'Ativado', 'D':'Desativado'}}" class="SELECT01"/>
</td>
</tr>
<tr>
<td align="left">Nome:</td>
<td align="left">
<s:textfield name="fabricante.nomeFabricante" key="label.nome" class="INPUT01" size="80" maxlength="80"/>
</td>
</tr>
<tr>
<td colspan="2" align="left"> </td>
</tr>
<tr>
<td colspan="2" align="left"> </td>
</tr>
<tr>
<td colspan="2" align="left"><s:submit name="action" key="button.label.submit" method="save"/></td>
</tr>
</table>
</s:form>
quando mando exibir codigo fonte no browser<form id="Fabricante" name="Fabricante" onsubmit="return true;" action="/Projeto/Fabricante.action" method="post">
<table class="wwFormTable">
<input type="hidden" name="fabricante.fabricanteId" value="" id="Fabricante_fabricante_fabricanteId"/>
<tr>
<td class="tdLabel"><label for="Fabricante_fabricante_nomeFabricante" class="label">Nome:</label></td>
<td
><input type="text" name="fabricante.nomeFabricante" size="40" maxlength="40" value="" id="Fabricante_fabricante_nomeFabricante"/>
</td>
</tr>
<tr>
<td class="tdLabel"><label for="Fabricante_fabricante_statusFabricante" class="label">Status:</label></td>
<td
><select name="fabricante.statusFabricante" id="Fabricante_fabricante_statusFabricante">
<option value="A">Ativado</option>
<option value="D">Desativado</option>
</select>
</td>
</tr>
<tr>
<td colspan="2"><div align="right"><input type="submit" id="Fabricante_action" name="method:save" value="Incluir"/>
</div></td>
</tr>
</table></form>
|