0

i'm creating a jsf 2.2 web application with wildfly 8.2 and primefaces which is working very well. but since two or three days there is a strange ajax change event loading behavior.

i'm using a h:selectOneMenu component with a f:ajax change event for loading and refreshing a p:outputPanel. the problem is that if the change event is fired the data is loading correctly and are available within milliseconds but the refreshing event on the jsf view takes 30 seconds and more. i don't know why. a few days ago the components were refreshed within 0.5 to 2 seconds. i changed nothing on this component or view.

i debugged the view controller and can see that the dataset is available right now but in the firebug, the post request is working further and after 30 seconds and more the result is showing on the jsf view.

has or had anyone the same problem ? how can i debug the javascript from the f:ajax change event ?

hope someone can help me

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
luwi
  • 21
  • 1
  • Probably, IDE related. Try cleaning and rebuilding the project and also cleaning your browser cache. – Aritz Apr 10 '16 at 17:31
  • I cleaned the browser cache and the eclipse IDE but it doesn't help unfortunately. – luwi Apr 10 '16 at 19:16

1 Answers1

1

After a couple of days of debugging i found the error. For all they are interested in. On the view is a h:textLabel which is filled with some data. if the ajax change event is fired this field get new data too, but i don't know why if there is a special sign like "\n" in this field it takes very long to update this field on the view.

luwi
  • 21
  • 1
  • 1
    It would be nice if you could come up with a MCVE reproducing exactly this problem in a scratchpad project with everything set to default. It sounds much like the ajax response content length is incorrectly calculated and set on response header and thus the webbrowser is expecting more data and waiting until timeout. This in turn indicates a possible bug in the JSF implementation being used. – BalusC Apr 11 '16 at 19:44