Hi,
I get a runtime error when using the OnNavigate event of TableView control. My code is almost exactly the same as in the samples provided in the HTMLB documentation.. Can anyone tell me what I'm missing here? I'm doing this in EP6 PDK. Other event handling code in the program is OK except for this...
Thanks
-
In the JSP...
<hbj:tableView
id="myTableView1"
model="myTableViewBean.model"
design="ALTERNATING"
headerVisible="true"
footerVisible="true"
fillUpEmptyRows="true"
navigationMode="BYLINE"
selectionMode="NONE"
headerText="Details"
onNavigate="onNavigate"
visibleFirstRow="<%= myTableViewBean.getVisibleRow() %>"
visibleRowCount="5"
rowCount="20"
width="500 px"
/>
-
In the main java (JSPDynPage)
public void onNavigate(Event event) throws PageException {
if (event instanceof TableNavigationEvent) {
TableNavigationEvent tne = (TableNavigationEvent) vent;
if (tne != null) {
this.visibleRow = tne.getFirstVisibleRowAfter();
if (beanData != null) {
beanData.setVisibleRow(new Integer(this.visibleRow).toString());
}
}
}
}