ExtTLD e JAVA

2 respostas
G

Aí Galera,

Estou tentando testar o exemplo de exttld que eles têm lá no site, mas está dando um erro que não estou conseguindo resolver.
Meu cod. é esse ai:

<?xml version="1.0" encoding="utf-8" ?>   
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"   
    pageEncoding="utf-8"%>   
<%@ taglib tagdir="/WEB-INF/tags/ext" prefix="ext" %>   
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml">   
<head>   
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />   
<title>ExtTLD test</title>   
</head>   
<body>   
    <ext:body>   
        <ext:window title="Window example" width="300" height="240" id="window1">   
            <ext:toolbar>   
                <ext:toolbar.button text="Button 1" />   
                <ext:toolbar.button text="Button 2" />   
                <ext:toolbar.button cls="x-btn-icon" icon="img/list-items.gif" tooltip="Icon button test" />   
            </ext:toolbar>   
               
            <div style="padding:5px">Ext is not just a tool kit or another pretty face - it is genius! To be able to get access to a set of tools and advanced design patterns in working form (not some book) is amazing. At the cost of a few development hour per developer - we can all have genius websites. There is no better tool and no better ROI. Thanks Jack for sharing your genius. ? Joseph Francis, Core Lan Corporation</div>   
            <ext:button onClick="window1.close();">Close</ext:button>   
        </ext:window>   
    </ext:body>   
    <ext:onReady>   
    window1.show();   
    </ext:onReady>   
</body>   
</html>

O erro que está dando é o seguinte:

org.apache.jasper.JasperException: /WEB-INF/tags/ext/body.tag(105,4) PWC6038: "${empty(extLocation)?"js/ext-2.0":extLocation}" contains invalid expression(s): javax.el.ELException: Error Parsing: ${empty(extLocation)?"js/ext-2.0":extLocation}

Será que alguem poderia dar uma ajuda?

Vlw
//Graveyard

2 Respostas

mcbarsotti

talvez ele não esteja encontrando o seu ext.js, pode ser isso…

cara, toma cuidado ao usar o extJs, a lisença dele foi alterada, agora é pago, vc pode até usar sem pagar nada, mas ai vai ter que abrir seu código fonte! (toque de midas) então tome cuidado! da uma olhada em http://www.extjs.com/products/license.php

Caso vc não possa usar, aconselho a framework dojo, é super completa e tem um módulo para construir aplicações ricas dijit vale a pena dar uma olhada!

boa sorte!
abraços!

renatocustodio

Tenta baixar a versão mais recendo do svn. Eles andaram fazendo umas correções.
Se não der certo, tente mudar de web container, mesmo que seja o mesmo de uma outra versão. (tive problemas com o tomcat 6.0.18)

Criado 7 de agosto de 2008
Ultima resposta 31 de ago. de 2008
Respostas 2
Participantes 3