Hi I think your basepage is implementing
"org.apache.tapestry.event.PageValidateListener"  if so as usual you have to
over ride the method present in the interface.

One more situation is see any where u are using
"addPageValidateListener(PageValidateListener listener) "   if so same case
as above.... 




Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero  
(Keep Smiling. Be happy All The Time.)

-----Original Message-----
From: Alan Chandler [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2005 11:50
To: [email protected]
Subject: PageValidateListener problem - help please

I am hitting the following exception when invoking my edit page (via a
listener on another page)

Error at context:/Edit.html: Method 'public abstract void
org.apache.tapestry.event.PageValidateListener.pageValidate(org.apache.tapes
try.event.PageEvent)' 
has no implementation in class uk.org.chandlerfamily.tapestry.famtree.Edit
(or enhanced subclass $Edit_30).


However it is declared - indeed the same code was working previously

here is the code (apologies on wordwrap causing some comments to look wrong)

===============================================
package uk.org.chandlerfamily.tapestry.famtree;

//TODO: Add delete via javascript confirmation

//TODO: Can I use javascipt to create a dynamic name filed combining
forename, othernames, knownas and nameIndex

import org.apache.tapestry.IAsset;

import org.apache.tapestry.html.BasePage;

import org.apache.tapestry.valid.ValidationDelegate;
import org.apache.tapestry.annotations.*;

import org.apache.tapestry.event.PageEvent;
import org.apache.tapestry.event.PageValidateListener;
import org.apache.tapestry.PageRedirectException;

import uk.org.chandlerfamily.sqlmap.famtree.*;
import uk.org.chandlerfamily.tapestry.interfaces.Function;

import com.ibatis.sqlmap.client.*;

import java.sql.SQLException;
import java.util.List;

public abstract class Edit extends BasePage implements PageValidateListener{
        
        public void pageValidate (PageEvent event) throws
PageRedirectException {

                //TODO: Test this out - check there is no situation in which
page gets called
                // if we have not initialed page then we need to go back to
the home page.
                if (getPersonId() == 0 && !getPersonDataExists()) throw new
PageRedirectException(getHomePage());

                
                switch (getFunction()) {
..... etc

--
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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

Reply via email to