0

I am using empty p:ajax in p:selectOneMenu and the time taken to send the request and the first response from server is approximately 1.02 secs. Why is It taking this much time. 1 sec. for empty ajax call is too much. Following is my code :

<p:selectOneMenu id = "myId"
                 value = "#{myBean.myAttr}"
                 styleClass = "myClass"
                 disabled = "#{myBean.isDisalbed}">
    <p:ajax />
</p:selectOneMenu>

Attached is the image of the time consumed on changing a value in drop down.

Network Response on option change.

enter image description here

Tiny
  • 27,221
  • 105
  • 339
  • 599
nikhilsuri
  • 43
  • 1
  • 5
  • Bad network? Old PF version (not that it would make a difference, it always worked for me) Do some network sniffing – Kukeltje Jan 27 '16 at 10:45
  • Is this helpful? http://stackoverflow.com/q/33106118 – BalusC Jan 27 '16 at 11:22
  • @BalusC, that is really helpful to analyse it further. But if you look at the code below my ajax statement looks like this : ` – nikhilsuri Jan 28 '16 at 08:33
  • @Kukeltje, i am using PF 5.3 version. – nikhilsuri Jan 28 '16 at 08:45
  • Check your network (do some sniffing) check if you have bad server side security filters, check if there is a bad firewall or proxy check if the block() is slow, check… – Kukeltje Jan 28 '16 at 08:56
  • 1
    710ms render response time is quite a lot for an ajax request which basically renders nothing. Perhaps you've request scoped beans tied to the view doing fairly expensive stuff during construction? At least, hints to that were already given in the link. As to the 6 secs, you didn't include that information in the question? – BalusC Jan 28 '16 at 19:23

0 Answers0