Tks. It´s a live. ;-)


On 2/21/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

You can't.  The page is not fully "baked" at the time the constructor
is invoked.

What you want is a PageLoadListener.  Just implement the interface and
the pageDidLoad() method and Tapestry will invoke it.  That's where
you can do the initialization you want.

On 2/21/07, Bruno Mignoni <[EMAIL PROTECTED]> wrote:
> I am use Tapestry 4.02 and Tomcat 5.
>
> How access a state Application Object ( Session ) from de constructor
> method?
>
> package com.unicred.tapestry.ib.pages;
>
> import java.sql.SQLException;
>
> import org.apache.tapestry.annotations.InjectState;
>
> import com.unicred.tapestry.ib.InternetBankingBasePage;
> import com.unicred.tapestry.ib.sistema.Procuracao;
>
> public abstract class Home extends InternetBankingBasePage {
>
>     public Home() throws SQLException, Exception {
>
>         System.out.println(getProcuracao().getNomeUsuario());
>
>
>     }
>
>     @InjectState("procuracao")
>     public abstract Procuracao getProcuracao();
>
>
>
> }
>
> Don't work System.out.println(getProcuracao().getNomeUsuario());
>
> Need to use PageAttachListener (
> http://tapestry.apache.org/tapestry4/UsersGuide/events.html )? How do
it?
>
> Tks
> <
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/event/PageAttachListener.html
>--
>
> __________________
> Bruno Mignoni
> [EMAIL PROTECTED]
>


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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




--
__________________
Bruno Mignoni
[EMAIL PROTECTED]

Reply via email to