You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tuan <mr...@gmail.com> on 2008/11/06 05:52:20 UTC
Tapestry 5 and ServletContext
Hi all,
I am new comer to tapestry. I am joining a project require using servlet
context. I read emails from tapestry-user mail archive. Some info I get
is that T5 dev planned to support it. So I want to know that T5 whether
support servlet context in ApplicationState (beside the session in
default) now.
http://tapestry.markmail.org/message/5wfqhhg6jm3johpc?q=ServletContext+from:%22Howard+Lewis+Ship%22
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [t5][Zone Component] id & getElementID
Posted by Tuan <mr...@gmail.com>.
Sorry about typing error. so don't worry about page class name.
Thanks
Tuan wrote:
> Hi all,
>
> I have some problems when dealing with the Zone component.
>
> - We don't use prop binding in t:id parameter. However I see that
> t:id parameter of the component is defined in source code like as
> other parameters. so how to code to get t:id (or any parameter field)
> is not used with "prop" binding?
>
> - The getElementId method of Zone component alway return null (?)
> - not same as other components (ex: actionlink)
> Ex:
> + Index.tml
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <head></head>
> <body>
> <t:zone t:id="tZone"></t:zone>
> </body>
> </html>
>
>
>
> + Index.java
> public class Hello {
> @InjectComponent
> private Zone tZone;
>
> @AfterRender
> void afterRender() {
> System.out.println(">>>>>>>>> " + tZone.getClientId());
> }
> }
>
>
> output: >>>>>>>>> null
>
> Please give me some info or reference links to solve my problems.
>
> Thanks.
>
[t5][Zone Component] id & getElementID
Posted by Tuan <mr...@gmail.com>.
Hi all,
I have some problems when dealing with the Zone component.
- We don't use prop binding in t:id parameter. However I see that
t:id parameter of the component is defined in source code like as other
parameters. so how to code to get t:id (or any parameter field) is not
used with "prop" binding?
- The getElementId method of Zone component alway return null (?) -
not same as other components (ex: actionlink)
Ex:
+ Index.tml
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head></head>
<body>
<t:zone t:id="tZone"></t:zone>
</body>
</html>
+ Index.java
public class Hello {
@InjectComponent
private Zone tZone;
@AfterRender
void afterRender() {
System.out.println(">>>>>>>>> " + tZone.getClientId());
}
}
output: >>>>>>>>> null
Please give me some info or reference links to solve my problems.
Thanks.
Re: Tapestry 5 and ServletContext
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 06 Nov 2008 02:10:41 -0300, Muralidhar Y <mu...@kensium.com>
escreveu:
> I am not sure of T5 but you can use ASO with global scope. In this way
> the ASO will store in the servlet context. That might solve your problem.
There isn't a global scoped ASO in Tapestry 5. Many things have changed
from Tapestry 4.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: Tapestry 5 and ServletContext
Posted by Muralidhar Y <mu...@kensium.com>.
I am not sure of T5 but you can use ASO with global scope. In this way the
ASO will store in the servlet context. That might solve your problem.
Warm regards,
Muralidhar Y
muralidhary@kensium.com
US Main: 877 KENSIUM (536.7486)
India Main: +91 9949495511
India Fax: +91 9949495522
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.
________________________________
-----Original Message-----
From: Tuan [mailto:mrcglupyco@gmail.com]
Sent: Thursday, November 06, 2008 10:22 AM
To: Tapestry users
Subject: Tapestry 5 and ServletContext
Hi all,
I am new comer to tapestry. I am joining a project require using servlet
context. I read emails from tapestry-user mail archive. Some info I get
is that T5 dev planned to support it. So I want to know that T5 whether
support servlet context in ApplicationState (beside the session in
default) now.
http://tapestry.markmail.org/message/5wfqhhg6jm3johpc?q=ServletContext+from:
%22Howard+Lewis+Ship%22
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org