You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by osamuo <os...@yahoo.co.jp> on 2007/12/23 17:01:24 UTC

T5: onActive()

Hi,

I have encountered the following strange behavior (with 5.0.8-SNAPSHOT).

When I accessed "http://localhost:8080/test/1", "onActive( Object parameter
)" in Test.java was called two times.

At the first call, the value of the argument was "1".
At the second call, the value of the argument was "commons.css". 

Why was "commons.css" set to the argument?
Is this correct behavior?

Test.tml
------------------------------------
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
...
<link rel="stylesheet" type="text/css" href="commons.css" />
</head>
<body>
</body>
</html>
...
------------------------------------


Test.java
------------------------------------
public class Test{
  public void onActivate( Object parameter ){
  }
}
------------------------------------



best regards 
Osamuo


-- 
View this message in context: http://www.nabble.com/T5%3A-onActive%28%29-tp14479409p14479409.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: onActive()

Posted by Howard Lewis Ship <hl...@gmail.com>.
Your template has a relative URL to a file "commons.css", that does
not exist.  Because the file is missing, Tapestry thinks that the
request is for the application, and invokes your page, including the
activation part.

On Dec 23, 2007 8:01 AM, osamuo <os...@yahoo.co.jp> wrote:
>
> Hi,
>
> I have encountered the following strange behavior (with 5.0.8-SNAPSHOT).
>
> When I accessed "http://localhost:8080/test/1", "onActive( Object parameter
> )" in Test.java was called two times.
>
> At the first call, the value of the argument was "1".
> At the second call, the value of the argument was "commons.css".
>
> Why was "commons.css" set to the argument?
> Is this correct behavior?
>
> Test.tml
> ------------------------------------
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> ...
> <link rel="stylesheet" type="text/css" href="commons.css" />
> </head>
> <body>
> </body>
> </html>
> ...
> ------------------------------------
>
>
> Test.java
> ------------------------------------
> public class Test{
>   public void onActivate( Object parameter ){
>   }
> }
> ------------------------------------
>
>
>
> best regards
> Osamuo
>
>
> --
> View this message in context: http://www.nabble.com/T5%3A-onActive%28%29-tp14479409p14479409.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship
TWD Consulting, Inc.

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org