All,
I have looked through all of the archives and most issues related to this
exception
revolve around a Form Submission or a double click. My issue is different
and I am perplexed.
I am still not super strong on all the internals of Tapestry but I do know a
little.
I have a page that has a List passed to it from another page before being
activated.
The page being activated is very simple. It has a ListEdit component to
iterate over a collection.
I turned on tapestry debugging to see if I could get any more info but i did
not. The exception is happening during the initial rendering of the page.
I don't even get to see the page before the exception occurs. Is it because
I have another page that modifies a persistent property on the page
before it gets activated?
The Page has a pageBeginRender() method that looks like this:
(The feeScheduleList is what is passed in)
all properties here are persistent.
public void pageBeginRender(final PageEvent event)
{
if ( getFeeScheduleListMap() == null ) {
ListEditMap map = new ListEditMap();
Iterator ii = getFeeScheduleList().iterator();
while ( ii.hasNext()) {
FeeSchedule fee = (FeeSchedule)ii.next();
map.add( new Long( fee.getFeeScheduleID() ), fee );
}
setFeeScheduleListMap( map );
}
}
My synchronize method looks like this:
public void synchronizeFeeSchedules(IRequestCycle cycle) {
ListEditMap map = getFeeScheduleListMap();
FeeSchedule feeSchedule = (FeeSchedule) map.getValue();
if (feeSchedule == null)
{
_logger.debug("fee schedule is null");
IValidationDelegate delegate =
(IValidationDelegate)getBeans().getBean("delegate");
delegate.record("Out Of Date Request.",null);
throw new PageRedirectException(this);
}
setFeeSchedule( feeSchedule );
}
Can someone please shed some light on what is happening? I am really not too
sure on the whole page recorder side of things.
Thanks
Doug
--
What profits a man if he gains the whole world yet loses his soul?