[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 - Campo totalizador no grid detalhe

Campo totalizador no grid detalhe

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

Campo totalizador no grid detalhe

Mensagempor ibotirama » Ter Out 19, 2010 8:59 am

Eu gostaria de saber se existe uma forma "fácil" alguma tag que me ajude a colocar uma tabela de total em um tabelaResultados, por exemplo, eu tenho um id, descricao, area, e eu queria colocar um total de área no rodapé do grid.
ibotirama
 
Mensagens: 3
Data de registro: Seg Out 18, 2010 3:26 pm

Re: Campo totalizador no grid detalhe

Mensagempor rogelgarcia » Ter Out 19, 2010 6:16 pm

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

Re: Campo totalizador no grid detalhe

Mensagempor ibotirama » Qua Out 20, 2010 8:46 am

ibotirama
 
Mensagens: 3
Data de registro: Seg Out 18, 2010 3:26 pm

Re: Campo totalizador no grid detalhe

Mensagempor ibotirama » Qua Out 20, 2010 8:47 am

Esqueci de mencionar aparece um rodapé, mas totalmente limpo, eu coloquei o valor 10.0 no controller apenas para testar, mas mesmo assim não aparece nada.
ibotirama
 
Mensagens: 3
Data de registro: Seg Out 18, 2010 3:26 pm

Re: Campo totalizador no grid detalhe

Mensagempor rogelgarcia » Qua Out 20, 2010 10:34 am

O que você tem que fazer no controller é:

Sobrescrever o método listagem.. e nele colocar:

setAttribute("totalArea", 10.0);

Assim.. voce conseguirá acessar no JSP pela forma ${totalArea}
rogelgarcia
Administrador
 
Mensagens: 674
Data de registro: Qua Jul 08, 2009 9:02 am


Retornar para Dúvidas

Quem está online

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

cron