public abstract class Update extends BasePage implements IExternalPage { public abstract Integer getUserid(); public abstract void setUserid(Integer Id);
public void activateExternalPage(Object[] params, IRequestCycle cycle) { setUserid((Integer) params[0]);
} public List getContent() { Session session = null; SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); session =sessionFactory.openSession(); session.beginTransaction(); List result = session.createQuery("from Details where userid="+getUserid()).list(); session.getTransaction().commit(); return result; } } while executing the following error is coming while clicking the edit option.. its getting fine the id in the external link... If anybody knows help me to clear out the error..
ERROR:
org.apache.hivemind.ApplicationRuntimeException Page Update does not implement the org.apache.tapestry.IExternalPage interface. component: $BasePage_203@c31651[Update] location: context:/Update.html