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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to