I have a stable system, so I don't want to modify so much code. In addition,
your suggestion can cause the code duplicated and very hard to maintain.

I will make clear my idea: for example, I have A class

----------------- A.java ----------------------
public class A {

    private static String name;

    public static String getName() {
        return name;
    }

    /*some method here*/

}
--------------------------------------------------

And from B.tml I want to get "name" value from getName() method. What should
I do now?

On Tue, Sep 8, 2009 at 10:38 AM, DH <ningd...@gmail.com> wrote:

> I think we can't and should delegate in B class
>
> DH
> http://www.gaonline.com.cn
>
> ----- Original Message -----
> From: "Xuan Tran Le"
> To: "Tapestry users" <users@tapestry.apache.org>
> Sent: Tuesday, September 08, 2009 11:17 AM
> Subject: How to .tml template access a class's static variable
>
>
> >I want to from B.tml access a static variable/method of A class but I
> don't
> > know how to... Help me please
> >
>

Reply via email to