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]