From: <ssk...@re...> - 2004-12-23 14:39:43
|
Author: sskracic Date: 2004-12-23 15:30:31 +0100 (Thu, 23 Dec 2004) New Revision: 167 Modified: ccm-simplesurvey/trunk/src/com/arsdigita/simplesurvey/ui/SurveyProcessListener.java Log: Making simplesurvey compile again, reflecting changes done to formbuilder. This goes without saying that ss will actually work. Modified: ccm-simplesurvey/trunk/src/com/arsdigita/simplesurvey/ui/SurveyProcessListener.java =================================================================== --- ccm-simplesurvey/trunk/src/com/arsdigita/simplesurvey/ui/SurveyProcessListener.java 2004-12-22 17:27:08 UTC (rev 166) +++ ccm-simplesurvey/trunk/src/com/arsdigita/simplesurvey/ui/SurveyProcessListener.java 2004-12-23 14:30:31 UTC (rev 167) @@ -38,6 +38,7 @@ import com.arsdigita.bebop.RequestLocal; import com.arsdigita.simplesurvey.ui.Question; import com.arsdigita.bebop.parameters.ParameterData; +import com.arsdigita.persistence.DataAssociationCursor; import com.arsdigita.persistence.DataOperation; import com.arsdigita.persistence.SessionManager; import java.util.Iterator; @@ -190,11 +191,11 @@ s_log.debug("initializing the parameter name persistent label map"); PersistentForm persistentForm = (PersistentForm)m_persistentForm.get(ps); - Iterator componentIter = persistentForm.getComponents().iterator(); + DataAssociationCursor componentCursor = persistentForm.getComponents(); PersistentLabel lastPersistentLabel = null; - while (componentIter.hasNext()) { + while (componentCursor.next()) { - PersistentComponentFactory factory = (PersistentComponentFactory)componentIter.next(); + PersistentComponent factory = (PersistentComponent) DomainObjectFactory.newInstance(componentCursor.getDataObject()); s_log.debug("iterating, component " + factory.toString()); |