Think you very much Tzury for informations, and help.
so i tried first to use my gwt application as a template,
so i put all files in /templates directory. the main application file
is
app.html :
----------------------------------------------------------------
$def with (header="Hello")
<html>
<head>
<title>Hello</title>
<meta name='gwt:module' content='com.mycompany.project.app'/>
<link type="text/css" rel='stylesheet' href='appcss.css'/>
</head>
<body>
<h1>APPLICATION GWT</h1>
<h1>$:header</h1>
<script language="javascript"
src="com.mycompany.project.app.nocache.js"></script>
<iframe id="__gwt_historyFrame"
style="width:0;height:0;border:0"></
iframe>
</body>
</html>
---------------------------------------------------------------------
then i used this in webpy:
------------------------------------------------------------------------------
render = web.template.render('templates/')
urls = (
'/', 'index',
'/gwt', 'app')
class app:
def GET(self):
web.header("Content-Type","text/html; charset=utf-8")
print render.app("welcome")
....
------------------------------------------------------------------------------
then when i run it in the browser i get this printed:
APPLICATION GWT
welcome
but no gwt loaded;
when i saw the debug i have this:
127.0.0.1:4931 - - [02/Mar/2008 09:32:19] "HTTP/1.1 GET /gwt" -
200 OK
127.0.0.1:4931 - - [02/Mar/2008 09:32:19] "HTTP/1.1 GET /
appcss.css" - 404 Not Found
127.0.0.1:4931 - - [02/Mar/2008 09:32:19] "HTTP/1.1 GET /
com.mycompany.project.app.nocache.js" - 404 Not Found
So it seams that the CSS and JS files are not found ( its the reason
for not working)
How can i fix this ?
THINKS
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---