I am writing the java spring primefaces application on IBM Websphere.
I have below code of spring web flow, primefaces and spring controller. Does not know whey when click the button, it need to loads about 11 seconds??
Do you know why?? As this is the performance issue complainted by our client.
Code: Select all
// -----------WebFlow ----------------------->
<transition on="popupTeacherVerificationDetail">
<evaluate expression="teacherVerificationController.openDialog('formDialogDetail:panelEsstv1s2', 'dialogEsstv1s2')" />
<render fragments="formDialogDetail" />
</transition>
<transition on="approveProfile">
<evaluate expression="teacherVerificationController.checkVerifyComplete(flowScope.dtWebVoEsstv1s2, flowScope.dtSchoolGroupList)" />
</transition>
// ----------------------teacherVerificationController-------------------------------------//
@Override
public void openDialog(String objectName, String dialogName){
UIComponent panel = (UIPanel) FacesContext.getCurrentInstance().getViewRoot().findComponent(objectName);
if (panel != null)
panel.setRendered(true);
RequestContext.getCurrentInstance().update(objectName);
FacesContext.getCurrentInstance().renderResponse();
RequestContext.getCurrentInstance().execute("PF('" + dialogName + "').show()");
}
@Override
public boolean checkVerifyComplete(TeacherVerificationWebVo dtWebVo, SchoolGroupItemListWebVo dtSchoolGroupList){
return true;
}
// ------------------popup xhtml formDialogDetail:panelEsstv1s2----------------------------------------
<p:dialog id="dialogEsstv1s2" widgetVar="dialogEsstv1s2"
rendered="true" modal="true" draggable="true" position="center"
resizable="false" header="#{esLabel['lbl.esstv1s2.lblheader']}"
onHide="closePopup()" closeOnEscape="true" styleClass="es-dialog-large">
<p:panel id="panelEsstv1s2" style="width:100%;" rendered="false" styleClass="ui-edb-noneborder" >
.............
<p:commandButton id="cmdVerify1s4a5" value="#{esLabel['lbl.esstv1s4.lblVerify']}" action="approveProfile" >
</p:commandButton>