* @author N/C
* @since N/C
* @version N/C
*/
public void geraHTMLAreaAre() {
AreaAre area = null;
try {
List areas = null;
if (getEhHistorico().booleanValue()){
area = getHistoricoItemEstruturaIett().getAreaAre();
areas = new ArrayList();
if (area != null){
areas.add(area);
}
} else {
area = new AreaAre();
area.setIndAtivoAre("S");
areas = new Dao().pesquisar(area, new String[] { atributo.iGetNomeFk(), "asc" });
}
List options = new ArrayList();
Iterator it = areas.iterator();
while (it.hasNext()) {
area = (AreaAre) it.next();
options.add(new String[] { area.getCodAre().toString(), Util.invocaGet(area, atributo.iGetNomeFk()).toString() });
}
//criaSelect("areaAre", atributo.iGetLabel(), atributo.iGetValorCodFk(getItem()), options, "onChange=\"updateSub(this.selectedIndex, this.form.subAreaSare);\"");
criaSelect("areaAre" + this.getCodigo(), atributo.iGetLabel(), atributo.iGetValorCodFk(getItem()), options, "", atributo.iGetDica());