[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/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 - Alterar a template.tld
Página 1 de 1

Alterar a template.tld

MensagemEnviado: Qua Ago 06, 2014 11:40 am
por JesterOfHell
Bom dia, a minha intenção é adicionar o atributo showDeleteLineWarning, no NEO tinha, na tag do detalhe "DetalheTag.class".

porém eu não consigo sobrescrever o template.tld no meu projeto, tem como fazer?
e acho que seria uma sugestão Rogel, adicionar nos fontes do Next, pois reparei que já estava esperando na function excluirLinhaPorNome((nome, ignoreMessage), que é chamada no DetalheTag.jsp na function function _detail_deleteLine_${Tdetalhe.tableId}(index, quiet)

só uma observação, sobrescrever os métodos e as Tags, consegui só o arquivo template.tld que não consegui.

Obrigado.

Re: Alterar a template.tld

MensagemEnviado: Qua Ago 06, 2014 2:51 pm
por JesterOfHell

Re: Alterar a template.tld

MensagemEnviado: Qua Ago 06, 2014 8:08 pm
por rogelgarcia
Bem, o jeito previsto no Next para alterar funcionalidades é criando seu proprio arquivo JSP com o template desejado. Assim você pode editar como desejar. Essa parte, me parece que já conseguiu.

Se quer alterar a tag, essa forma como fez é uma opção (não sei se está definido na especificação, mas se funcionou, ok).

Para não ter que editar o caminho no JSP, é necessário verificar a ordem de leitura dos arquivos TLD na especificação do JEE.
Assim, basta colocar seu arquivo tld em um local com maior prioridade que ele será lido primeiro.

Tente colocar seu tld diretamente em /WEB-INF/

[EDIT]

Na especificação não fica claro se a prioridade é o TLD contido dentro de um JAR ou dentro de /WEB-INF/. Então se o next estiver como um JAR, colocar dentro de /WEB-INF/ pode não funcionar. Tem que tentar mesmo.

Re: Alterar a template.tld

MensagemEnviado: Qua Ago 06, 2014 8:17 pm
por rogelgarcia

Re: Alterar a template.tld

MensagemEnviado: Qui Ago 07, 2014 10:32 am
por JesterOfHell

Re: Alterar a template.tld

MensagemEnviado: Qui Ago 07, 2014 11:17 am
por rogelgarcia

Re: Alterar a template.tld

MensagemEnviado: Qui Ago 07, 2014 11:25 am
por JesterOfHell