[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/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 - Datagrid com Ajax
Página 1 de 1

Datagrid com Ajax

MensagemEnviado: Sáb Out 16, 2010 12:25 pm
por willinos

Re: Datagrid com Ajax

MensagemEnviado: Dom Out 17, 2010 7:56 pm
por rogelgarcia
Funcionalidade para puxar apenas os dados do datagrid via ajax.. nao tem ... :(
Mas voce pode fazer um ajax para substituir o grid todo...

Para isso basta fazer um ajax normal. que direcione a um controller e esse controller envia para um jsp que apenas renderiza o resultado..

Assim o callback do seu ajax.. apenas substitui o conteudo HTML do datagrid que está na página.. pelo datagrid que veio via ajax...

Existe uma tag.. da tag lib ajax... chamada call.. ela ainda nao foi documentada, mas o que ela renderiza é o mesmo código que está na documentacao.. voce pode tentar experimentar.. para usar vc teria que por no seu jsp:
<%@ taglib prefix="a" uri="ajax"%>

<a:call action="minhaActionNoController" functionName="funcaoJavascripQueFazAjax"/>

<button onclick="funcaoJavascripQueFazAjax()">Chamar ajax</button>

Re: Datagrid com Ajax

MensagemEnviado: Dom Out 17, 2010 11:08 pm
por willinos
Rogel,
Como eu conseguiria substituir no jsp no cliente?
Tipo algum replace no content?
Poderia me dar um exemplo de como substituir os dados?
Para contornar o problema, pensei em fazer a chamada ajax, só que devolveria uma outra tela, como um pop up, e nessa nova tela seria concluída a operação...

Mesmo assim, obrigado.

Re: Datagrid com Ajax

MensagemEnviado: Ter Out 19, 2010 6:01 pm
por rogelgarcia
Um novo tutorial está disponível no site do next.. veja se te dá uma luz..

http://www.nextframework.org/site/386/g ... debar=true

Se ainda tiver dúvidas é só perguntar...

Re: Datagrid com Ajax

MensagemEnviado: Qui Fev 23, 2012 10:08 am
por marcofarnezi

Re: Datagrid com Ajax

MensagemEnviado: Sáb Fev 25, 2012 10:26 am
por rogelgarcia