At the version least, we should change from using HTML comments (<!-- -->) to JSP comments (<%-- --%>) so the tag doesn't processed.
Matt On 10/29/07, Mike McCown <[EMAIL PROTECTED]> wrote: > > Thank you both for your ideas. > > The <s:select> tag generated by Appfuse is definitely the problem. What > made it interesting is that even when commented out with <!-- -->, it > *still* causes a problem with the form! Not sure why, need to step through > the form parser still. But this is why no amount of commenting out was > having any effect on the page - removing it entirely from the page allows > the page to process and render correctly. > > I'm going to look into a less harmful output for the generator to produce > for these entity relationship properties and submit it back to Appfuse, > Matt. > > Thanks again! > > > > Rob Hills wrote: > > > > Hi All, > > > > On 29 Oct 2007 at 8:18, Matt Raible wrote: > > > >> In your creditcardForm.jsp, I'd try deleting parts of it until you get > >> a better error message. You might start by deleting the <s:select> as > >> that could be causing issues. > > > > I don't know if it's the same for you Mike, but I have found a number of > > my > > jsps would produce blank pages - like you, no error or log messages to be > > found. > > > > Invariably, if I looked in the JSP, I'd find the following somewhere: > > > > <!-- todo: change this to read the identifier field from the other > > pojo --> > > > > usually followed by a <s:select ..> tag. If I deleted or commented out > > the > > s:select tag, the page would appear. I've not yet had to actually > > activate the > > relevant s:select tag so I haven't investigated what was needed to do so. > > > >> On 10/28/07, Mike McCown <[EMAIL PROTECTED]> wrote: > >> > > >> > 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...] > > > > Cheers, > > Rob Hills > > Waikiki, Western Australia > > Mobile +61 (412) 904-357 > > Fax: +61 (8) 9529-2137 > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Some-mvn-appfuse%3Agen-resulting-in-empty-pages-tf4709885s2369.html#a13480405 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
