JSF slowness after implementing Phaselistener

Asked

Viewed 109 times

1

I’m implementing the Phaselistener interface and now the system has slowed down. I was doing an analysis and saw that JSF is making repeated calls to a page that has only one panel with information coming from the database. Does anyone know what might be going on or have experienced this problem before? Is it possible to decrease the number of calls? Any tips?

Note: In the implementation of the Phaselistener methods I only put one System.out.println("") so the slowness is not caused by any code implemented in them.

Before phase: RESTORE_VIEW 1

After the stage: RESTORE_VIEW 1

After the stage: RESTORE_VIEW 1

Before phase: APPLY_REQUEST_VALUES 2

Before phase: APPLY_REQUEST_VALUES 2

After phase: APPLY_REQUEST_VALUES 2

After phase: APPLY_REQUEST_VALUES 2

Before phase: PROCESS_VALIDATIONS 3

Before phase: PROCESS_VALIDATIONS 3

After phase: PROCESS_VALIDATIONS 3

After phase: PROCESS_VALIDATIONS 3

Before phase: UPDATE_MODEL_VALUES 4

Before phase: UPDATE_MODEL_VALUES 4

After phase: UPDATE_MODEL_VALUES 4

After phase: UPDATE_MODEL_VALUES 4

Before the stage: INVOKE_APPLICATION 5

Before the stage: INVOKE_APPLICATION 5

After the stage: INVOKE_APPLICATION 5

After the stage: INVOKE_APPLICATION 5

Before stage: RENDER_RESPONSE 6

Before stage: RENDER_RESPONSE 6

  • on your page try to put this and see if it works: <f:metadata>&#xA; <f:viewParam name="dummy" />&#xA; </f:metadata>

  • I had already put this, vlw by the comment

  • @Lucasvinicius, show how your files are written faces-config.xml and the web.xml

1 answer

1

I have already gone through exactly this problem. This is caused by setting up your file web.xml, where you should delete the following lines:

  <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  </listener>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.