Minha duvida é o seguinte tenho uma optionsCollection
sei como consigo passar ela com objetos, mais existe um problema, ela vem com dados duplicados
fiz um Set para acabar com esse problema, esse é o metodo
private List buscarMotivos(JCO.Function function)
throws DAOException, ApplicationException
{
List l = null;
JCO.Table tbl = function.getTableParameterList().getTable("TE_MOTIVOS");
if (!tbl.isEmpty()) {
tbl.firstRow();
l = new ArrayList();
do {
String cod = tbl.getField("AUGRU").getString();
String desc = tbl.getField("BEZEI").getString();
//String keywords = tbl.getField("POSNR").getString();
//o objeto Produto eh parecido com o Segmento.
ProdutoVO po = new ProdutoVO(cod, desc);
l.add(po);
} while (tbl.nextRow());
}
return l;
}
mais como agora estou passando string de dados não passo mais passar o os dois objetos label e value
ele me da erro
[ServletException in:/WEB-INF/jsp/opcoes.jsp] javax.servlet.jsp.JspException: No getter method available for property nome for bean under name 12006811' javax.servlet.ServletException: javax.servlet.jsp.JspException: No getter method available for property nome for bean under name 12006811 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779) at org.apache.jsp.WEB_002dINF.jsp.opcoes_jsp._jspService(opcoes_jsp.java:269) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
na minha jsp esta assim
COORDENADOR<br>
<html:select property="coordenador" name="OrdemVendaForm">
<html:option value=""> </html:option>
<html:optionsCollection name="usuario" property="coordenadores" label="nome" value="codigo" />
</html:select>
alguem sabe como passa string de dados ao invez de passar esses dois paramentros label e valeu