I use alertManager.success for output: press the Save Alert Messages button after use if the user can save multiple times Presses the button, then I will get several t: alert messages displayed. How can I clear the previous t: alert message so that only 1 message is displayed?
This is my TML file
& lt; Div class = "center" & gt; & Lt; T: Alert / & gt; & Lt; / Div & gt; & Lt; T: zone t: id = "detailZone" id = "detailZone" & gt; & Lt; T: core.usermgmt.UserDetailComp t: id = "detail" mode = "action mode" preview user = "selected user" function = "showFunctions" /> & Lt; / T: Region & gt;
@ session location (create = false) Private AlertStorage storage; SumeEvent at zero () {if (storage! = Null) {storage.dismissAll (); }}
No comments:
Post a Comment