[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-dev
Subject:    [jira] Created: (TAPESTRY-2318) OnActivate() gets additional values
From:       Fritz_Pröbstle_(JIRA) <dev () tapestry ! apache ! org>
Date:       2008-03-31 9:42:24
Message-ID: 1471915064.1206956544325.JavaMail.jira () brutus
[Download RAW message or body]

OnActivate() gets additional values from css , img and other resources
----------------------------------------------------------------------

                 Key: TAPESTRY-2318
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2318
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0.11
            Reporter: Fritz Pröbstle


OnActivate() gets additional values from css , img and other resources:

If I asked my browser to display  "http://localhost:8080/tutorial1/test/a1"
I expect *ONE*  parameter "a1".
But I got
 *Three*  parameters: "a2 , "css", "print".css".

It seems to me that here the included request  for "css/print.css" are encodes to be parameters.

Using the asset notation works fine and I got one parameter.
<link rel="stylesheet" type="text/css" media="print" href="${asset:context:/css/print.css}" />

 

Reagards Fritz



<<<<<<<<<< Test.tml

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
 
<head>
  <link rel="stylesheet" type="text/css" media="print" href="css/print.css" />     
</head>

 <body>
   <t:pagelink page="test"  context="literal:a1" >	xxx </t:pagelink>
   </body>
</html>

<<<<<<<<<<<<<<< Test.java

public class Test {
	
	 
	 void onActivate(Object[] params)
	  {
		 
		 for ( Object o : params)
			 System.out.println(o );
	 
	  }

<<<<<<<<<<<<<<<<  }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic