I took a number of annotated entity files from another project and put them into the model dir, then used the mvn appfuse:gen target to generate the default managers and CRUD pages.
Oddly, while a number of the pages work fine, some of the editXXX.html struts calls are resulting in an empty page when called in a container (same behavior in both the canoo webtest and Tomcat deploy). (And I mean emmmtpy - nada. No stack traces, just a page of zero bytes). http://www.nabble.com/file/p13462198/insurance.log insurance.log The action unit tests pass fine. Any pointers or insight would be greatly appreciated - been banging my head against this all day... Here is an example... This class works fine for the list form, but the detail form returns empty page. [from struts.xml] <!--CreditcardAction-START--> <action name="creditcards" class="com.optionshouse.investment.webapp.action.CreditcardAction" method="list"> <result>/WEB-INF/pages/creditcardList.jsp</result> </action> <action name="editCreditcard" class="com.optionshouse.investment.webapp.action.CreditcardAction" method="edit"> <result>/WEB-INF/pages/creditcardForm.jsp</result> <result name="error">/WEB-INF/pages/creditcardList.jsp</result> </action> <action name="saveCreditcard" class="com.optionshouse.investment.webapp.action.CreditcardAction" method="save"> <result name="input">/WEB-INF/pages/creditcardForm.jsp</result> <result name="cancel" type="redirect">creditcards.html</result> <result name="delete" type="redirect">creditcards.html</result> <result name="success" type="redirect">creditcards.html</result> </action> <!--CreditcardAction-END--> [from creditcardForm.jsp] <%@ include file="/common/taglibs.jsp"%> <head> <title><fmt:message key="creditcardDetail.title" /></title> <meta name="heading" content="<fmt:message key='creditcardDetail.heading'/>" /> </head> <s:form id="creditcardForm" action="saveCreditcard" method="post" validate="true"> <li style="display: none"><s:hidden key="creditcard.id" /></li> <s:textfield key="creditcard.expiration" required="false" cssClass="text medium" /> <s:textfield key="creditcard.rowin" required="false" cssClass="text medium" /> <s:textfield key="creditcard.rowout" required="false" cssClass="text medium" /> <!-- todo: change this to read the identifier field from the other pojo <s:select name="creditcard.person.id" list="personList" listKey="id" listValue="id"></s:select> --> <s:textfield key="creditcard.cardtype" required="false" cssClass="text medium" /> <s:textfield key="creditcard.cardnumber" required="false" cssClass="text medium" /> <s:textfield key="creditcard.securitycode" required="false" cssClass="text medium" /> <li class="buttonBar bottom"><s:submit cssClass="button" method="save" key="button.save" theme="simple" /> <c:if test="${not empty creditcard.id}"> <s:submit cssClass="button" method="delete" key="button.delete" onclick="return confirmDelete('Creditcard')" theme="simple" /> </c:if> <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple" /></li> </s:form> <script type="text/javascript"> Form.focusFirstElement($("creditcardForm")); </script> [Attaching some log output from tomcat session...] -- View this message in context: http://www.nabble.com/Some-mvn-appfuse%3Agen-resulting-in-empty-pages-tf4709885s2369.html#a13462198 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
