Hi Richard, You've already gotten some good advice from Rob. To be more specific, I've noticed that when I generate stuff from a model that has a one-to-many assocation, I get this behavior. In the JSP a call is made to get[fill-in-assocation-name-here], but that method isn't generated. You'll have to add that method yourself. As an example, suppose you've created an Author model, that associates to Books (one-to-many). You've generated code based on the Author model. In the JSP that edits the Author, a call is made to getBooks to get a list of books. But getBooks isn't generated. This results in a blank page. Hope this helps...
Regards, Yuri On Mon, Mar 10, 2008 at 5:58 AM, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi Richard, > > > Richard M wrote: > > > >> I ran "mvn appfuse:gen -Dentity=Status" on my Status model object. Its > a > >> pretty simple Class with a name, description and a couple o booleans - > >> plus my standard AuditInfo fields (who, where, what, when for add and > last > >> update). > >> > >> When I run "mvn jetty:run", I can select the menu entry "Status List" > and > >> it shows me a great looking form with a list of all Status objects in > the > >> database. The address bar at the top shows > >> "http://localhost:8080/statuss.html". > >> > >> When I click on one of the rows displayed, I get an absolutely blank > page > >> with this in the address "http://localhost:8080/editStatus.html?id=1". > >> > >> No errors in the maven/jetty console. > >> > Whenever I've seen this behaviour, it's usually been caused by a Null > value in one of the variables in a JSP page (whether an EL variable or a > Struts variable or an OGNL expression/variable or whatever). > > I'd troubleshoot it by commenting out everything except the page headers > and a bit of static text with jsp comments ( <%-- --%>) to prove that > that was indeed the problem (ie the page would then render something), > then move the comments around, including more and more dynamic stuff > until I located the cause of the problem. > > One thing to watch out for with this technique is null variable values > in included pages (eg header.jsp etc.) or the page headers themselves. > > HTH, > > Rob Hills > Waikiki, Western Australia > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
