I'm trying to activate a new page if some condition is true within an
listener, but
i get an Exception (outside of tapestry!) when doing so.

--- snipplet from MainPage.java ---
@InjectPage("main/AddEntry")
public abstract AddEntry getAddEntryPage();

public IPage doAddEntry() {
  AddEntry addEntryPage = null;
  if(getAmount() != 0) {
    Entry entry = new Entry(getDate(), getComment(), getAmount(),
getSelectedCategory(), null, getUser().getID());
    addEntryPage = getAddEntryPage();
    addEntryPage.setEntry(entry);
  }

  setError("You must provide an amount");
  return addEntryPage;
}
--- snipplet from MainPage.java [END] ---

--- AddEntry.java ---

public abstract class AddEntry extends PengBasePage {
        public abstract void setEntry(Entry entry);
}

--- AddEntry.java [END]

Now, if i uncomment "addEntryPage.setEntry(entry);" line it works, but then I
don't get my entry into the AddEntry.java page, which is the whole idea.


This is the Exception I get (note that it is not handled by tapestry!)
javax.servlet.ServletException: Unable to construct service
tapestry.describe.DescribableStrategy: Unable to construct
configuration tapestry.describe.DescribableStrategies: Error at
jar:file:/C:/Program/Apache Software Foundation/Tomcat
5.5/shared/lib/tapestry-portlet-4.0-beta-4.jar!/META-INF/hivemodule.xml,
line 297, column 105: Unable to process attribute class (of element
strategy): Unable to convert type 'javax.portlet.PortletSession' to a
Java class, either as is, or in package org.apache.tapestry.portlet.
...

-- 
/ted

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to