Hi again!
I haven´t a @SessionState field. Instead, I have each search parameter with
@Persist. I have a zone, that is refreshed with search results, and I have a
patient data block, that stores the results of the page-by-page.
@Property
@Persist
private String patientDNI;
@Property
@Persist
private String patientName;
@Property
@Persist
private String patientSurname1;
@Property
@Persist
private String patientSurname2;
private int startIndex = 0;
@Persist
private PatientBlock patientBlock;
@InjectComponent
private Zone searchPatientResultZone;
void onActivate(int startIndex,String dni,String name,String surname1,String
surname2) {
this.startIndex = startIndex;
this.patientDNI=dni;
this.patientName=name;
this.patientSurname1=surname1;
this.patientSurname2=surname2;
}
Object onSuccess() {
this.startIndex = 0;
patientBlock = coreFacade.findPatient(obtainFilter(),
startIndex,
PATIENTS_PER_PAGE);
countBusqueda = coreFacade.countFindPatietns(obtainFilter());
return searchPatientResultZone.getBody();
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Page-pooling-in-Tapestry-5-0-tp5717748p5717798.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]