XPages Dialog boxes stacking -
i got problem, dialog boxes stacking each time click button opens dialog. if i've clicked 3 times this:
i couldn't find out how prevent this. no matter button click (ok partial refresh | abbrechen (cancel) full update) box each time click button.
code of button opens dialog:
<xp:button value="plan meeting" id="buttonplanmeeting"> <xp:eventhandler event="onclick" submit="true" refreshmode="complete"> <xp:this.action><![cdata[#{javascript:try { var c = getcomponent("dplanmeeting") c.show(); } catch(e) { dbar.error(location + e); }}]]></xp:this.action> </xp:eventhandler> </xp:button>
code complete dialog box:
<xe:dialog id="dplanmeeting" title="plan meeting" keepcomponents="true"> <xp:panel> <xp:text escape="true" id="mbplanmeeting"> <xp:this.value><![cdata[#{javascript:specialstrings.getstring("ccesgdocwflcontenteditinfos.dplanmeeting.mbplanmeeting")}]]></xp:this.value> </xp:text> </xp:panel> <xe:dialogbuttonbar> <xp:button value="ok" id="buttondelegateok" styleclass="lotusformbutton"> <xp:eventhandler event="onclick" submit="true" refreshmode="complete"> <xp:this.action><![cdata[#{javascript:try { //will create meeting every day visit registered var wfdoc:notesdocument = docapplication.getdocument(true); specialmeetingcreate(wfdoc); var c = getcomponent("dplanmeeting"); c.hide(); var c = getcomponent("dmeetingcreated") c.show(); } catch (e) { dbar.error(location + e); } }]]></xp:this.action> </xp:eventhandler> </xp:button> <xp:button value="cancel" id="buttondelegatecancel" styleclass="lotusformbutton"> <xp:eventhandler event="onclick" submit="true" refreshmode="complete"> <xp:this.action><![cdata[#{javascript:try { var c = getcomponent("dplanmeeting"); c.hide(); } catch (e) { dbar.error(location + e); } }]]></xp:this.action> </xp:eventhandler></xp:button> </xe:dialogbuttonbar> </xe:dialog>
does have keepcomponents? i've tried true , false, effect stays same.
any idea?
ok seems solution set "keepcomponents = false". i've tried before, it's working. dialog box once no matter how click button
Comments
Post a Comment