[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Next Framework • Ver Tópico - Componente datagrid

Componente datagrid

Não deixe de perguntar, solucione aqui suas dúvidas...

Componente datagrid

Mensagempor viniciusst » Ter Mar 16, 2010 2:23 pm

Boa tarde,

Estava tentando listar meus dados usando o componente datagrid, mas retorna tudo em branco.

criei na UfDAO o seguinte metodo:

public List<Uf> listaTodos() {
return query().list();
}

no UfService criei:

public List<Uf> listaTodos() {
return ufDAO.listaTodos();
}

e na UfListagem.jsp coloquei assim:

.....
.....

<n:dataGrid itens="${listaTodos}" var="uf" itemType="<%=Uf.class%>">
<n:property name="id">
<n:column header="${displayName}">
<n:output value="${value}"/>
</n:column>
</n:property>
<n:property name="nome">
<n:column header="${displayName}">
<n:output value="${value}"/>
</n:column>
</n:property>
<n:property name="sigla">
<n:column header="${displayName}">
<n:output value="${value}"/>
</n:column>
</n:property>
</n:dataGrid>

.....
.....

Mas nao lista nada. Nem os titulos das colunas.

O q fazer?

Muito Obrigado.

Vinicius
viniciusst
 
Mensagens: 25
Data de registro: Qua Mar 10, 2010 8:09 am

Re: Componente datagrid

Mensagempor rogelgarcia » Ter Mar 16, 2010 2:39 pm

rogelgarcia
Administrador
 
Mensagens: 674
Data de registro: Qua Jul 08, 2009 9:02 am

Re: Componente datagrid

Mensagempor viniciusst » Qua Mar 17, 2010 8:49 am

viniciusst
 
Mensagens: 25
Data de registro: Qua Mar 10, 2010 8:09 am

Re: Componente datagrid

Mensagempor viniciusst » Qua Mar 17, 2010 10:48 am

Bom dia,

Conseguir fazer aqui.

Apenas sobrescrevi o método listagem.

Muito Obrigado.
viniciusst
 
Mensagens: 25
Data de registro: Qua Mar 10, 2010 8:09 am


Retornar para Dúvidas

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 9 visitantes

cron