Hi, I'm facing a problem when I'm using a Struts form with client validation on a jsp page which is remotely fetch from a <sx:div>. This div is a tabpanel inside a <s:tabbedpanel> tabcontainer. When the form is submitted the following error displays inside the sx:div: 'ReferenceError: validateForm_saveProducer is not defined' (Firefox). The code is displayed below (Struts 2.1.2):
-- editProducer.jsp -- <s:form action="saveProducer" validate="true"> <s:hidden name="producer.producerId" /> <s:textfield key="producer.name" name="producer.name" /> ... <sx:submit value="%{getText('button.save')}" targets="producerTab" /> </s:form> -- mainPage.jsp with tabbedpanel -- <sx:tabbedpanel id="mainTabMenu"> <s:url id="editProducer" action="editProducer" includeParams="none"/> <sx:div id="producerTab" href="%{editProducer}" /> </sx:tabbedpanel> It looks like the validation script is not included when the jsp page is fetched remotely from the struts div tag. The problem occurs on both Struts version 2.0.11.1 and 2.1.2. Adding the executeScripts="true" and separateScripts="true" to the sx:div also has no effect. Any ideas!? - Håken --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]