Are you using tapestry 3 or 4 ?
try changin the initialization to a lazy one:
private Map x;
public Map getX() {
if (x == null)
x = createX();
return x;
}
you have to set x to null on the detach event.
plus: please sent the page and exception stack trace
Cheers,
Ron
ציטוט Doug Lochart:
Since I have not heard anything I assume its a trivial issue ... maybe
it is but its NOT a double click issue which the archives are full of.
This exception happens when the page is being activated for the FIRST
time. PLEASE read this kindly offer me some direction. As always we
are under
the gun. -- thanks
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. The Exception happens during the initial rendering phase
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.
I load my ListEditMap in the pageBeginRender() method as in the
publisher example
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]