Banner still displayed after deletion on the current page

32 views
Skip to first unread message

Steven FEREY

unread,
Dec 26, 2022, 8:42:27 AM12/26/22
to Dataverse Users Community
Hello Dataverse community,

We observe a bad behavior since the installation of our Dataverse 5.12.1, it concerns the banner:

-> Once a banner is configured (online mode or offline mode), the banner is displayed correctly.
 -> PROBLEM: When a user wants to delete the message (by clicking on the cross), the banner is still displayed on the page.
-> When the user reloads the page or changes the page, the banner is removed. Is this behavior reproduced on your version of Dataverse V5.12.1 please?

Behavior observed on Brave, Chrome and Firefox.

More precisely, when the single banner is deleted by a user, this part of the code is reloaded but the generated code still contains the banner.
AJAX return after deletion :

<?xml version='1.0' encoding='UTF-8'?>
<partial-response><changes><update id="j_idt126"><![CDATA[
<form id="j_idt126" name="j_idt126" method="post" action="/dataverse.xhtml" class="form-inline" enctype="application/x-www-form-urlencoded" data-partialsubmit="true">
<input type="hidden" name="j_idt126" value="j_idt126" />
<div id="status-alert" class="bg-warning">
                        <div class="alert alert-dismissible container text-warning"><button id="j_idt126:j_idt128:0:closeButton" name="j_idt126:j_idt128:0:closeButton" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only close" onclick="PrimeFaces.ab({s:&quot;j_idt126:j_idt128:0:closeButton&quot;,f:&quot;j_idt126&quot;,u:&quot;j_idt126&quot;});return false;" type="submit"><span class="ui-button-text ui-c">×</span></button><script id="j_idt126:j_idt128:0:closeButton_s" type="text/javascript">PrimeFaces.cw("CommandButton","widget_j_idt126_j_idt128_0_closeButton",{id:"j_idt126:j_idt128:0:closeButton"});</script> TEST BANNER MESSAGE
                        </div></div>

</form>]]></update><update id="j_idt438"><![CDATA[<div id="j_idt438"></div>]]></update><update id="j_id1:javax.faces.ViewState:0"><![CDATA[3363457700739744111:2197977746364639093]]></update><eval><![CDATA[bind_bsui_components();]]></eval></changes></partial-response>

-------------------

Thanks very much,
Steven.

Philip Durbin

unread,
Jan 3, 2023, 9:46:18 AM1/3/23
to dataverse...@googlegroups.com
Hi Steven,

I just played around with this on my laptop running the develop branch (post 5.12.1, commit d02c4ba) and I can easily replicate it. Would you be so kind as to create a GitHub issue?

For what it's worth, for me the banner goes away if you log out and back in again but obviously we want the banner to go away immediately when you click the X.

Thanks,

Phil

--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/e9ff1b31-b636-4c95-87a7-0bd5b5789af8n%40googlegroups.com.


--

Steven FEREY

unread,
Jan 4, 2023, 11:21:18 AM1/4/23
to Dataverse Users Community
Hi Philip,

Thank you for your reply.
The issue has been created and can be accessed here: 


Thank you.
Steven.
Reply all
Reply to author
Forward
0 new messages