ButterFaces / ButterFaces

A lightweight and responsive JSF framework that combines the advantages from Bootstrap, jQuery and HTML 5 to develop fast, easy and modern web applications using JSF 2.
http://www.butterfaces.org
MIT License
85 stars 23 forks source link

<b:table> weird behaviour calling JSF managed bean. #251

Open MintakaB opened 4 years ago

MintakaB commented 4 years ago

Hi I've came across a weird behaviour of the component which is awesome widget by the way. So, the thing is that everything is almost ok, when the web.xml context parameter javax.faces.PROJECT_STAGE is set to "Development". When this parameter is set to "Production" the number of calls to the JSF management bean are counted by several hundreds in a very short period (15sec) and a high CPU usage. I am using JSF 2.3, Java 8, JEE 8 and PayaraMicro 5.193 Browsers: Safari,Firefox and chrome.

MintakaB commented 4 years ago

ButterFaces 3.2.0

larmic commented 4 years ago

Hmm I cannot reproduce it with our showcase (http://butterfaces.org/table.jsf). maybe you like to upload a working example in github?

MintakaB commented 4 years ago

I am just doing quick tests to try to figure out what's wrong. The problem seems to be related to a call from another widget () in the same page. Whenever I change a value of this widget, shots tens of ajax calls to the backend to fetch the table data.

larmic commented 3 years ago

@MintakaB sorry, we are busy because of bootstrap 5.0.0 migration.

Are you willing to create a small running tool in GitHub so we can look at the bug directly?