One quick question: does your class implement PageRenderListener? That
would be an explanation for your pageBeginRender never being called...
The abstract class is just a mechanism for allowing Tapestry to
"enhance" your class at runtime, saving you the effort to define
concrete accessor methods for your properties (the ones that are
defined in the .page). All your methods are still called whenever
they're supposed to, only you won't see the code for all methods
declared as abstract inside your class.
Hope it helps,
Dario
On 8/25/05, Alan Chandler <[EMAIL PROTECTED]> wrote:
> I am using iBATIS sqlmap to access my database. I have what I have set up to
> be am ASO with Application Scope (although I don't think I am using it as
> that???) an object (of class DataMap which effectively holds the sqlMap
> instance for my database.
>
> In my pages class file I have
>
> private PaginatedList personList = null;
>
> public void pageBeginRender (PageEvent event) throws SQLException {
> if (personList == null) {
> SqlMapClient map=DataMap.getSqlMapInstance();
> try{
> map.startTransaction();
> personList =
> map.queryForPaginatedList("getPeopleList",null,PAGE_SIZE);
> }finally {
> map.endTransaction();
> }
> }
>
> }
>
>
> And in my page.html file the following
>
> <span jwcid="@DirectLink"
> listener="listener:doShowPrevPage"
> parameters="ognl:personList"
> disabled="ognl:personList.firstPage"
> >
>
> This is failing to be parsed because (I think) personList is still null at the
> point at which its parsing the html. (I _think_ I have a breakpoint inside
> pageBeginRender - and I never hit it - ALTHOUGH I am not sure because I am
> not yet sure I understand the effect of the abstract class)
>
> What page event should I use to initialise personList BEFORE the parsing.
>
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
I have enough money to last me the rest of my life, unless I buy something.
Jackie Mason
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]