You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i think there is a bug in the ajax feature of the panels. It occures if you use the onexpand and oncollapse tags in the Firefox browser. A simple test is to open the you panel showcase site http://showcase.bootsfaces.net/layout/panels.jsf in firefox and chrome. In the ajax and javascript paragraph try to collapse the panel. In chrome it works well but in firefox nothing happens.
Taking a closer look in the generated js code this is generated:
As you can see the three JS code lines are called inside a function(e) where e carrys the event. But BsF.ajax.callAjax(this, event, 'j_idt248:messages', '@all', null, null, null, 'expand'); use event. In chrome there is no Problem, because chrome resolves event to window.event. But Firefox does not.
In my test application i get an additional js consol error saying "ReferenceError: event is not defined" clearly pointing at this problem.
Beside this, i use the oncollapse and onexpand to persist the collapsed state to a sessionbean. Do you know any workaround to quickfix this and persist the state?
€dit:
just to be complete. A simple workaround is to use p:remoteCommand and let the remotecommand call you backing bean method...
The text was updated successfully, but these errors were encountered:
@asterd noticed and fixed this bug two weeks ago. At the time, we didn't know it causes problems, so we didn't think too much about this. Would you like to fetch the latest developer snapshot of BootsFaces-1.0.0 and confirm the bug has been fixed? See #369 on how to get it.
Hi,
i think there is a bug in the ajax feature of the panels. It occures if you use the
onexpand
andoncollapse
tags in the Firefox browser. A simple test is to open the you panel showcase site http://showcase.bootsfaces.net/layout/panels.jsf in firefox and chrome. In the ajax and javascript paragraph try to collapse the panel. In chrome it works well but in firefox nothing happens.Taking a closer look in the generated js code this is generated:
As you can see the three JS code lines are called inside a
function(e)
wheree
carrys the event. ButBsF.ajax.callAjax(this, event, 'j_idt248:messages', '@all', null, null, null, 'expand');
useevent
. In chrome there is no Problem, because chrome resolvesevent
towindow.event
. But Firefox does not.In my test application i get an additional js consol error saying "ReferenceError: event is not defined" clearly pointing at this problem.
Beside this, i use the
oncollapse
andonexpand
to persist the collapsed state to a sessionbean. Do you know any workaround to quickfix this and persist the state?€dit:
just to be complete. A simple workaround is to use
p:remoteCommand
and let the remotecommand call you backing bean method...The text was updated successfully, but these errors were encountered: