RE: Page vs Content Actions & setting page title in actions
"Andy Zeneski" <[email protected]> Thu, 27 Feb 2003 15:59:27 -0500
| Newsgroups | gmane.comp.java.jpublish.devel |
|---|---|
| Message-ID | <[email protected]> |
The first time it ran a bunch of actions, (there is one for just about each piece of content on the page) including the showcart.js action. The second time, after changing from content to page action it skipped the showcart.js action totally. First it said Looking for action..., Action found... Configuration is null, Action Redirect: null. Second it ran the action before it and then threw the exception from the page. The logs were too big and I lost it in my buffer, or I would have sent a copy. -Andy > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of > Anthony Eden > Sent: Thursday, February 27, 2003 3:49 PM > To: [email protected] > Subject: Re: [JPublish-developer] Page vs Content Actions & setting page > title in actions > > > OK, try this: > > 1.) Enable debug logging on org.jpublish.action.ActionManager > 2.) Send me a copy of your action (or let me know where I can > get at it online) > > -Anthony > > Andy Zeneski wrote: > > Anthony, > > > > It appears it is reloading the XML file but something else is > wrong. Even > > though it reloaded it didn't run the action. Here is some logging which > > shows my first hit to the page, a second hit to the page, then > the third hit > > is after I modified the XML file. As you can see there are > variables missing > > in the page which the action would have put there. > > > > -Andy > > > > ---------- > > started with: > > ---------- > > > > <?xml version="1.0" encoding="UTF-8"?> > > <page> > > <template>main_left</template> > > <property name="title">Shopping Cart</property> > > <content-action name="/cart/showcart.js"/> > > </page> > > > > ---------- > > changed to: > > ---------- > > > > <?xml version="1.0" encoding="UTF-8"?> > > <page> > > <template>main_left</template> > > <property name="title">Shopping Cart</property> > > <page-action name="/cart/showcart.js"/> > > </page> > > > > ---------- > > Here are the logs: > > ---------- > > > > 83249[ ControlServlet.java:238:DEBUG] [[[additem] Done > rendering page, > > Servl > > et Finished- total:0.971,since last([additem] Setup d...):0.961]] > > 85583[ ControlServlet.java:118:DEBUG] [[[view] Servlet > Starting, doing > > setup > > - total:0.0,since last(Begin):0.0]] > > 85583[ ControlServlet.java:195:DEBUG] [[[view] Setup done, doing > > Event(s) an > > d View(s)- total:0.0,since last([view] Servlet St...):0.0]] > > 85583[ RequestHandler.java:172:INFO ] [Processing Request]: view > > 85583[ RequestHandler.java:401:INFO ] servletName=control, > view=showcart > > 85583[FileSystemPageManager.java:119:DEBUG] Looking for > > page:C:\work\ofbiz\ecomm > > erce\webapp\WEB-INF\pagedefs\cart\showcart.xml > > 85583[FileSystemPageManager.java:130:DEBUG] Page definition > (/cart/showcart) > > not > > found in cache. > > 85583[FileSystemPageManager.java:133:DEBUG] Loading page definition > > configuratio > > n: C:\work\ofbiz\ecommerce\webapp\WEB-INF\pagedefs\cart\showcart.xml > > 85593[FileSystemPageManager.java:165:DEBUG] Getting page instance for > > /cart/show > > cart.ftl > > 86634[ SimpleMethod.java:526:INFO ] No response code > string or errors > > foun > > d, assuming success; returning code [success] > > 86644[ CatalogWorker.java:146:INFO ] Inventory IS > available in facility > > wit > > h id WebStoreWarehouse for product id GZ-2644; desired quantity is 1.0, > > availabl > > e quantity is 464.0 > > 86744[ ControlServlet.java:238:DEBUG] [[[view] Done rendering page, > > Servlet > > Finished- total:1.161,since last([view] Setup done...):1.161]] > > 92342[ ControlServlet.java:118:DEBUG] [[[view] Servlet > Starting, doing > > setup > > - total:0.0,since last(Begin):0.0]] > > 92342[ ControlServlet.java:195:DEBUG] [[[view] Setup done, doing > > Event(s) an > > d View(s)- total:0.0,since last([view] Servlet St...):0.0]] > > 92352[ RequestHandler.java:172:INFO ] [Processing Request]: view > > 92352[ RequestHandler.java:401:INFO ] servletName=control, > view=showcart > > 92352[FileSystemPageManager.java:119:DEBUG] Looking for > > page:C:\work\ofbiz\ecomm > > erce\webapp\WEB-INF\pagedefs\cart\showcart.xml > > 92352[FileSystemPageManager.java:142:DEBUG] Page definition > (/cart/showcart) > > fou > > nd in cache. > > 92352[FileSystemPageManager.java:165:DEBUG] Getting page instance for > > /cart/show > > cart.ftl > > 92913[ SimpleMethod.java:526:INFO ] No response code > string or errors > > foun > > d, assuming success; returning code [success] > > 92913[ CatalogWorker.java:146:INFO ] Inventory IS > available in facility > > wit > > h id WebStoreWarehouse for product id GZ-2644; desired quantity is 1.0, > > availabl > > e quantity is 464.0 > > 93063[ ControlServlet.java:238:DEBUG] [[[view] Done rendering page, > > Servlet > > Finished- total:0.721,since last([view] Setup done...):0.721]] > > 109357[ ControlServlet.java:118:DEBUG] [[[view] Servlet > Starting, doing > > setu > > p- total:0.0,since last(Begin):0.0]] > > 109357[ ControlServlet.java:195:DEBUG] [[[view] Setup done, doing > > Event(s) a > > nd View(s)- total:0.0,since last([view] Servlet St...):0.0]] > > 109357[ RequestHandler.java:172:INFO ] [Processing Request]: view > > 109357[ RequestHandler.java:401:INFO ] servletName=control, > > view=showcart > > 109357[FileSystemPageManager.java:119:DEBUG] Looking for > > page:C:\work\ofbiz\ecom > > merce\webapp\WEB-INF\pagedefs\cart\showcart.xml > > 109357[FileSystemPageManager.java:142:DEBUG] Page definition > > (/cart/showcart) fo > > und in cache. > > 109367[FileSystemPageManager.java:145:DEBUG] Page modification > dates do not > > matc > > h. > > 109367[FileSystemPageManager.java:146:DEBUG] Reloading page definition. > > 109377[FileSystemPageManager.java:165:DEBUG] Getting page instance for > > /cart/sho > > wcart.ftl > > 109808[ Log4JLoggerFactory.java:96 :ERROR] > > Expression shoppingCartSize is undefined on line 39, column 21 in > > repository:fs_ > > repository:/cart/showcart.ftl. > > Quoting problematic instruction: > > ---------- > > ==> <#if (shoppingCartSize > 0)> > > <a href="<@ofbizUrl>/checkoutoptions</@ofbizUrl>" > > class="lightbu > > ttontext">[Checkout]</a> > > <#else> > > [Checkout] > > </#if> [on line 39, column 15 in > > repository:fs_repository:/cart/sh > > owcart.ftl] > > ---------- > > > > Java backtrace for programmers: > > ---------- > > freemarker.template.InvalidReferenceException: Expression > shoppingCartSize > > is un > > defined on line 39, column 21 in > > repository:fs_repository:/cart/showcart.ftl. > > at > > freemarker.template.TemplateObject.assertNonNull(TemplateObject.java: > > 125) > > at > > freemarker.template.ComparisonExpression.isTrue(ComparisonExpression. > > java:114) > > .... Plus lots more .... > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Jpublish-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jpublish-developer > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf