button process load too long abnormally

UI Components for JSF
Post Reply
rchiu5hk
Posts: 32
Joined: 29 Jun 2015, 03:50

24 Sep 2016, 11:46

Dear All,


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>

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

24 Sep 2016, 17:17

use a java profiler, otherwise it's almost impossible to help you.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 5 guests