Yep.

Try adding "-Dorg.apache.tapestry.disable-caching=true" to whatever
starts up your web server.
(http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html
)

On 2/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,

I am newbie to tapestry. Lately I download the tapestry and try to develop a 
test project to learn how it works. Now I encounter a problem. I think it is 
basic; but after searching around the FAQ and mail archive 
(http://mail-archives.apache.org/mod_mbox/tapestry-users/), I do not see any 
similar problem as mine. So I post it here. Hope some can give me a help.

I follow the Quick Start 
(http://tapestry.apache.org/tapestry4.1/quickstart/helloworld.html) page to 
develop my test project.

The problem is, after refreshing the web page, I can not see any change made to 
the Home.html, in which I add a few line of Javascript. Even a simple html tag 
(like button), it won't appear on the web page (e.g., 
http://localhost:8080/hello/app). However, there is no problem if I create 
another example.war directly without using tapestry.  For example, in 
example.war, I create a page named index.html. Then, I add a button, which 
would appeared after pressing refresh button.

Is it because tapestry maintain a cache state, which might increase the speed 
of loading web pages?

Environment I use is Jboss 4.0.5 GA, Debian Sarge testing, JDK1.5.x,  Firefox 
(2.0.0.1)

Thanks your help.

I appreciate it.

Following is the content of Hello.html:

<html>
<head>
        <title>Tutorial: Hello World</title>
</head>
 <!-- newly added lines BEG -->
<script language="javascript" type="text/javascript">
var request = false;
try {
        request = new XMLHttpRequest();
} catch (trymicrosoft) {
        /* for M$ IE */
        try {
                request = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (othermicrosoft) {
                try {
                        request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (failed) {
                        request = false;
                }
        }
}
if (!request){
        alert("Error initializing XMLHttpRequest!");
}else{
        alert("request object obtained!");//test
}
</script>
<!-- newly added lines END -->
<body>
<h1>Hello World Tutorial!</h1>

<p>
        The current data and time is:
        <b>
        <span jwcid="@Insert" value="ognl:new java.util.Date()">June 26 
2005</span>
        <!-- newly added lines BEG -->
        <input type="button" onClick="alert("xxx!");">
        </b>
        <p>
                <a href="#" jwcid="@PageLink" page="Home">refresh</a>
        </p>
        <!-- newly added lines END -->
</p>
</body>
</html>




 ___________________________________________________
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定!
 http://messenger.yahoo.com.tw/


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to