Tapestry framework, setting properties before rendering?

A

A_Walter

Hello all:

I am using the tapestry framework for building a web application. For
display, I do a calculation which determines how a component (the
calculation is done in a class that extends the apache BaseComponent
class) should look and act. I would like to be able to do the
calculation once and store its results in the component properties
before the page renders, but I can't seem to figure out how to do that.

Any hints/ideas?

Andy
 
K

kent

A_Walter said:
I am using the tapestry framework for building a web application. For
display, I do a calculation which determines how a component (the
calculation is done in a class that extends the apache BaseComponent
class) should look and act. I would like to be able to do the
calculation once and store its results in the component properties
before the page renders, but I can't seem to figure out how to do
that.

Let your class implement PageRenderListener and implement
the pageBeginRender() method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top