Hi!

I was working with Tapestry 5.1.0.5 and everithing worked fine. I updated to
Tapestry 5.2.6 because new project needs, and now I have problems with
actionlinks.

The case is the following:
I use paging for searches. In the search result page, I have two actionlinks
(previous and next links) that make a new search and re-load the zone with
search results. The code of a link is:

public Object onActionFromNextPatientLink() {

                if (patientBlock.isHasMoreElements()) {
                        startIndex += PATIENTS_PER_PAGE;
                        patientBlock = coreFacade.findPatient(obtainFilter(), 
startIndex,
                                        PATIENTS_PER_PAGE);
                        return searchPatientResultZone.getBody();
                } else {
                        return null;
                }
        }

After Tapestry update, I have the follow error when I click a actionlink:

"A component event handler method returned the value Block[Body of
patient/Find:searchpatientresultzone, at
classpath:es/clinica/enkeli/core/interfaces/web/pages/patient/FindPatient.tml,
line 60]. Return type org.apache.tapestry5.internal.structure.BlockImpl can
not be handled."

And the console notes the following line of code as the source of the error:

# 

Debugging I saw that the problem was the line "return
searchPatientResultZone.getBody();"

There is a problem with Zone in this Tapestry version? This error has me
puzzled!

Thnaks for help!!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Zone-error-after-I-have-updated-to-Tapestry-5-2-6-tp4782821p4782821.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to