BootsFaces
BootsFaces copied to clipboard
<b:commandButton> event problem, running my BootsFaces war on IBM WebSphere AppServer 9.0.0
Dear Sirs,
I need to solve a problem I am faceing since 1 month: my WAR app is based on net.BootsFaces 1.1.3 (it is a Maven/EJB/JSF2 project) that works fine when I deploy it on "Red Hat JBoss Enterprise Application Platform - Version 7.0.0.GA" (dev)
when I deploy my WAR App to "IBM WebSphere AppServer 9.0.0" (prod) all is fine; but when I try to remove an item from a datatable (by clicking a remove b:commandButton) I always need to do it twice:
- the first time nothing happens (neither on page, not on SystemOut.log, nor on javascript console.log)
- the second time I click the remove button the item is correctly removed from the model List and the partial view (the datatable) gets updated accordingly (and all log messages are correctly written to log files)
I investigate, without any success I Attach here my project source (.zip) - the page where the datatable is defined is:
- saveToET.xhtml that is included in the areaLavoro.xhtml (and the button that fires the event is the one in the 'modal', combined with a hidden b:commandButton)
- its model being 'it.perfexia.webasc.pagecontrollers.AreaLavoroPage'
NOTICE that the pom.xml declares a local system dependency (the one in the 'deps/' folder) NOTICE, also, that the WAR app declares a SQLServer schema as a JPA datasource (pls, try to isolate the problematic page in order You do not need to create such schema)
The pane/tab where the problem occurs is the "Estrazione Reperti" one (see figures below)
My intent is to:
- click the 'minus' azure button of the datatable item
- open a modal for confirmation, while a BlockUI obscures and disable the page)
- click the 'Elimina' button, that fires both the BolckUI and the Model removeTag() method
- finally, have the datatable element removed, the Model List reduced by one element, and a success message displayed to the upper zone of the page
NOTICE: in order to add an item to the databale in the "Reperti" pane:
- select a word form the textarea and right-click to assign it as a value to the four input-texts
- then, click the 'plus' ( + ) azure button
Is there some issue of incompatibility when I use BF with BIM WAS9? (it uses MyFaces implementation of JSF2 by defaut) How can i solve this strange behavior?
IMPORTANT UPDATE:
looks like the problem DOESNOT depend on the 'hdnBtn' that calls the EL/backBean Model method '#{lavoro.removeTag()}' It depends on the actionListener="#{lavoro.selectThis(rep)}" of the 'minus' b:commandButton, instead
the code of such a commandButton being:
<b:commandButton icon="minus"
actionListener="#{lavoro.selectThis(rep)}"
oncomplete="$('.modale').modal();"
tooltip="Elimina elemento dalla lista"
tooltip-position="left"
look="warning"
size="xs"
><f:ajax execute="@this"/></b:commandButton>
I understand that the 'oncomplete' jQuery metod (to open a modal-confirmation popup) PRECEDES (works before) the execution of the actionListener EL method call How is it possibile? Doesnt the oncomplete event fire AFTER all ajax/BackingBean calls?
@ciroppina I can't promise anything, but I hope I'll be able to have a look at your bug soon.
Would you mind to copy the ticket to the BootsFaces-OSP project? That's the project that's currently being developed. You've opened the ticket in the old closed-source project. Luckily, I get the e-mail notifications. Otherwise I'd missed your ticket.
Dear Stephan, how are You
I just copied the "<b:commandButton> event problem, running my BootsFaces war on IBM WebSphere AppServer 9.0.0" issue to the new github repo " TheCoder4eu https://github.com/TheCoder4eu/BootsFaces-OSP https://github.com/TheCoder4eu/BootsFaces-OSP" Issue nr. is #1091
ciroBorrelli +39 348 5414601
Il giorno lun 19 ago 2019 alle ore 23:56 Stephan Rauh < [email protected]> ha scritto:
@ciroppina https://github.com/ciroppina I can't promise anything, but I hope I'll be able to have a look at your bug soon.
Would you mind to copy the ticket to the BootsFaces-OSP project? That's the project that's currently being developed. You've opened the ticket in the old closed-source project. Luckily, I get the e-mail notifications. Otherwise I'd missed your ticket.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TheCoder4eu/BootsFaces/issues/59?email_source=notifications&email_token=ADWOJ7IORZKNKO7F56QZPJLQFMJIRA5CNFSM4IMRXVOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4UNJUQ#issuecomment-522769618, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWOJ7IYH3HX6NENAWISRWDQFMJIRANCNFSM4IMRXVOA .
Tante grazie!
In general, I'm not someone insisting on rules - quite the contrary, I love chaos! But in this case, it's already hard to track everything, so it's good to collect everything at a single place.
Best regards, Stephan
Dear Stephan Rauh
I think Ive found a workaround; so I updated the issue best regards
ciroBorrelli
Il giorno mer 21 ago 2019 alle ore 23:09 Stephan Rauh < [email protected]> ha scritto:
Tante grazie!
In general, I'm not someone insisting on rules - quite the contrary, I love chaos! But in this case, it's already hard to track everything, so it's good to collect everything at a single place.
Best regards, Stephan
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TheCoder4eu/BootsFaces/issues/59?email_source=notifications&email_token=ADWOJ7JDTG2WTCMUSRPMTG3QFWVIFA5CNFSM4IMRXVOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD43EKCY#issuecomment-523650315, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWOJ7JZ6I5PJPMQ6YKHLS3QFWVIFANCNFSM4IMRXVOA .