Bom dia a todos.
Estou com um problema de listar o conteúdo de um arrayList em uma table.
Estou fazendo em JSF, o código java da seguinte forma:
//método do arrayList
public ArrayList getListArqs() {
//Pesquisando os arquivos no diretório da lição em Edição
// List listaArquivos = null;
ArrayList<String> variavel = new ArrayList<String>();
String codEdit = getSessionBean1().getCodLicaoEdit();
File dir = new File("/home/users/tatianam/LIAP/" + "LIAP_" + codEdit);
if (dir.exists() && dir != null) {
String[] arquivos = dir.list();
if (arquivos != null) {
int length = arquivos.length;
for (int i = 0; i < length; ++i) {
String f = arquivos[i].toString();
if (variavel.add(f)){
System.out.println(f);
}
}
}
}
return variavel;
}
E no jsp o acesso está sendo feito dessa forma:
Arquivos | Açao |
---|---|
Está conseguindo carregar o resultado em items, porém na saída c:out, não estou conseguindo listar.
Dá o seguinte erro:
Exception Details: javax.el.PropertyNotFoundException
Property ‘javax.servlet.jsp.jstl.core.LoopTagSupport$1Status@594008’ not found on type java.lang.String
Possible Source of Error:
Class Name: javax.el.BeanELResolver$BeanProperties
File Name: BeanELResolver.java
Method Name: get
Line Number: 193
Se alguém puder me ajudar.
Obrigada.