I am using 2.1.4 - sorry -----Original Message----- From: JD Daniels [mailto:[EMAIL PROTECTED] Sent: April 28, 2004 11:14 AM To: [EMAIL PROTECTED] Subject: Accessing repeater in xsp Using V2 woody
Hi all, I want do soemthing like this from the samples: Flow: // also store the form as a request attribute as the XSP isn't flow-aware cocoon.request.setAttribute("form_model_gui", form.getWidget()); cocoon.sendPage("form_model_gui-success-pipeline.xsp"); XSP: <xsp:structure> <xsp:include>org.apache.cocoon.woody.formmodel.*</xsp:include> </xsp:structure> <p> <xsp:logic> // get reference to form and some of the widgets on it Form form = (Form)request.getAttribute("form_model_gui"); Repeater repeater = (Repeater)form.getWidget("widgets"); </xsp:logic> Repeater has <xsp:expr>repeater.getSize()</xsp:expr> row(s). </p> Using V2, I get a classCastException on Form form = (Form)request.getAttribute("form_model_gui"); Anyone know why? JD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]