I'm still in the process of converting our tapestry 3 app to T4...
I have a page in the order process that asks for the customer address.
This page requires the customer to be authenticated so I can load info such
as country and default delivery address.
For the authentication, I've been using PageValidateListener and redirecting
to the login page if not authenticated.
In the delivery address page, I'm using PageAttachedListener to load all the
info in the page, but I'm hitting an NPE because the customer info is null.
So I assume that PageAttachedLisneter is called before PageValideListener?
I thought PageAttachedListener was the "perfect place" to load data into the
properties, but in this case this doesn't work.
I'm sure I can hack like in T3 by having a PageBeginRenderListener but this
is not very elegant.
Does this make sense that PageAttachListener is called before the
validation?
Or shouldn't there be some other kind of listener to load data into the page
once the validation has been done?
Any suggestions?

Thanks,

Henri.

Reply via email to