TheCoder4eu / BootsFaces

BootsFaces : the next gen JSF Framework
MIT License
71 stars 17 forks source link

<b:commandButton> event problem, running my BootsFaces war on IBM WebSphere AppServer 9.0.0 #59

Open ciroppina opened 5 years ago

ciroppina commented 5 years ago

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:

I investigate, without any success I Attach here my project source (.zip) - the page where the datatable is defined is:

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)

image The pane/tab where the problem occurs is the "Estrazione Reperti" one (see figures below) My intent is to:

NOTICE: in order to add an item to the databale in the "Reperti" pane:

image

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?

webasc-estrattore.zip

ciroppina commented 5 years ago

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?

stephanrauh commented 5 years ago

@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.

ciroppina commented 5 years ago

Dear Stephan, how are You

I just copied the " 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 < notifications@github.com> 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 .

stephanrauh commented 5 years ago

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

ciroppina commented 5 years ago

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 < notifications@github.com> 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 .