In the attached files, there is the following: Border - This is the default border used on every page on the site. Sidebar - This displays the interest rates (take from hashmap) (it's a bank website) TestSession - This is the page that puts it all together.
It is done in Tapestry 2.1 running on Tomcat 4.0.4. The problem I'm having is depending on where I put the <SPAN jwcid="insertSidebar"/>, it throws an exception. If you look in the code for TestSession.html, you will see comments about where it does and does not work. I have another page that is almost identical to this one and it has no problems, and if I run this page (TestSession) after running the other page, everything is fine (Because the other page can actually create a session). As can be seen it has to do with the session, and where it gets committed. But I cannot find why this page is so different from the one that works. I think it has something to do with the HTML, but I cannot tell. Note: I use a custom Engine like the one used in VLib and I override the createVisit so that it can pass a reference to the engine to the visit object, so that I can get a branch ID from the engine (a parameter within the .application file that is pull via the engine everytime I request it). I also call setStateful() within the createVisit. But it doesn't even get to calling createVisit() as it blows up one line before that (as seen below). it throws the following exception: An exception has occured. You may continue by restarting the session. net.sf.tapestry.RequestCycleException Unable to resolve property visit.ratesChoice of com.nscreditunions.TestSession@2c9f6[TestSession]. component: com.nscreditunions.TestSession@2c9f6[TestSession] net.sf.tapestry.BindingException Unable to resolve property visit.ratesChoice of com.nscreditunions.TestSession@2c9f6[TestSession]. binding: PropertyBinding[TestSession visit.ratesChoice] net.sf.tapestry.util.DynamicInvocationException Could not invoke method getVisit on com.nscreditunions.TestSession@2c9f6[TestSession]. java.lang.reflect.InvocationTargetException java.lang.IllegalStateException Cannot create a session after the response has been committed Stack Trace: * org.apache.catalina.connector.HttpRequestBase.doGetSession(HttpRequestBase.j ava:1130) [PARA]* org.apache.catalina.connector.HttpRequestBase.getSession(HttpRequestBase.jav a:1090) [PARA]* org.apache.catalina.connector.HttpRequestFacade.getSession(HttpRequestFacade .java:209) [PARA]* net.sf.tapestry.RequestContext.createSession(RequestContext.java:594) [PARA]* net.sf.tapestry.engine.AbstractEngine.getVisit(AbstractEngine.java:1292) [PARA]* net.sf.tapestry.AbstractPage.getVisit(AbstractPage.java:349) [PARA]* sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source) [PARA]* sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) [PARA]* java.lang.reflect.Method.invoke(Method.java:324) [PARA]* net.sf.tapestry.util.prop.PropertyAccessor.get(PropertyAccessor.java:99) [PARA]* net.sf.tapestry.util.prop.PropertyHelper.getPath(PropertyHelper.java:466) [PARA]* net.sf.tapestry.binding.PropertyBinding.resolveProperty(PropertyBinding.java :226) [PARA]* net.sf.tapestry.binding.PropertyBinding.getObject(PropertyBinding.java:206) [PARA]* net.sf.tapestry.form.PropertySelection.renderComponent(PropertySelection.jav a:214) [PARA]* net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:874) [PARA]* net.sf.tapestry.AbstractComponent.renderWrapped(AbstractComponent.java:645) [PARA]* net.sf.tapestry.form.Form.renderComponent(Form.java:402) [PARA]* net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:874) [PARA]* net.sf.tapestry.BaseComponent.renderComponent(BaseComponent.java:525) [PARA]* net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:874) [PARA]* net.sf.tapestry.AbstractComponent.renderWrapped(AbstractComponent.java:645) [PARA]* net.sf.tapestry.components.InsertWrapped.renderComponent(InsertWrapped.java: 60) [PARA]* net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:874) [PARA]* net.sf.tapestry.BaseComponent.renderComponent(BaseComponent.java:525) [PARA]* net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:874) [PARA]* net.sf.tapestry.BaseComponent.renderComponent(BaseComponent.java:525) [PARA]* net.sf.tapestry.AbstractComponent.render(AbstractComponent.java:874) [PARA]* net.sf.tapestry.AbstractPage.renderPage(AbstractPage.java:272) Adam Greene ROMulin Group Inc 885 Main St, Suite 16 Moncton, NB E1C 1G5 Ph: (506) 863-1014 x4 Fx: (506) 854-6886 http://www.romulin.com/
Security_CreditUnion.zip
Description: Zip compressed data
