I've followed the screencast very closely but yet I see the following error when invoking the excellook:
"Couldn't find the dynamic page named ListExcelParticipants in your DirectToWeb model.entity is null, it seems that one model, maybe ERDirectToWeb d2w.d2wmodel is not loaded!"
This is weird: "model.entity is null." Specifying the entity as EOEntityClassDescription.classDescriptionForEntityName(AttendeeSelectedVEvent.ENTITY_NAME) makes no difference.
I've verified the page configuration name.
This is the only D2W part in the whole app, this is a Wonder app (ERXApplication, ERXSession). WO 5.4.3 (Where do I find the WOnder build number?) WOLips 3.5.6066
There is only one poi file in /Library/Frameworks/ExcelGenerator.framework/Resources/Java, if that makes a difference: poi-3.2-FINAL-20081019.jar I don't think it gets that far.
Any thoughts anyone, all you D2W people, Daves?
Here is the code:
public WOActionResults downloadAsExcelAction() { ListPageInterface lpi = (ListPageInterface)D2W.factory().pageForConfigurationNamed( "ListExcelParticipants", session() ); //EOArrayDataSource ds = new EOArrayDataSource(null, ec); EOArrayDataSource ds = new EOArrayDataSource( EOEntityClassDescription.classDescriptionForEntityName( AttendeeSelectedVEvent.ENTITY_NAME ), ec ); ds.setArray(attendeeSelectedVEventList); lpi.setDataSource(ds); lpi.setNextPage(this.context().page()); return (WOActionResults)lpi; }
This is my d2wmodel (user.d2wmodel):
{ "rules" = ( { "author" = "1000"; "class" = "com.webobjects.directtoweb.Rule"; "lhs" = { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "key" = "pageConfiguration"; "selectorName" = "isEqualTo"; "value" = "ListExcelParticipants"; }; "rhs" = { "class" = "com.webobjects.directtoweb.Assignment"; "keyPath" = "displayPropertyKeys"; "value" = ( "attendee.nameFamily", "attendee.nameGiven", "participant" ); }; } ); }
The exception goes off into the weeds:
Sep 10 17:53:05 Conference[55555] ERROR er.extensions.appserver.ERXApplication - Couldn't find the dynamic page named ListExcelParticipants in your DirectToWeb model.entity is null, it seems that one model, maybe ERDirectToWeb d2w.d2wmodel is not loaded! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636) at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134) at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324) at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736) at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447) at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212) at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804) at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50) at com.webobjects.appserver._private.WOHyperlink.invokeAction(WOHyperlink.java:98) at er.extensions.components._private.ERXHyperlink.invokeAction(ERXHyperlink.java:66) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079) at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:92) at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357) at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745) at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:93) at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1846) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369) at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1961) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1926) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:637)
Thanks
kib
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." Walt Disney
Klaus Berkling Web Application Dev. & Systems Administrator DynEd International, Inc.
|