• Dialog does not work with a full update

    By Jan Christian Krüger 1 decade ago

    A full update after hiding a dialog does not work. A partial update does.

    Sample Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <xp:view
    xmlns:xp="http://www.ibm.com/xsp/core"
    xmlns:xe="http://www.ibm.com/xsp/coreex">
    <xp:text

    escape=&quot;true&quot;
    
    id=&quot;computedField1&quot;
    
    value=&quot;#{viewScope.test}&quot;&gt;
    
    &lt;/xp:text&gt;
    
    &lt;xp:button
    
    value=&quot;Change Value CF&quot;
    
    id=&quot;button2&quot;&gt;
    
    &lt;xp:eventHandler
    
    event=&quot;onclick&quot;
    
    submit=&quot;true&quot;
    
    refreshMode=&quot;complete&quot;&gt;
    
    &lt;xp:this.action&gt;&lt;![CDATA[#{javascript:getComponent(&quot;dialog1&quot;).show();}]]&gt;&lt;/xp:this.action&gt;
    
    &lt;/xp:eventHandler&gt;&lt;/xp:button&gt;
    
    &lt;xe:dialog id=&quot;dialog1&quot; title=&quot;Update CF&quot;&gt;
    
    &lt;xe:dialogContent id=&quot;dialogContent1&quot;&gt;
    
    &lt;xp:inputText id=&quot;inputText1&quot; value=&quot;#{viewScope.test}&quot;&gt;&lt;/xp:inputText&gt;&lt;/xe:dialogContent&gt;
    
    &lt;xe:dialogButtonBar id=&quot;dialogButtonBar1&quot;&gt;
    
    &lt;xp:button
    
    value=&quot;OK&quot;
    
    id=&quot;button1&quot;&gt;
    
    &lt;xp:eventHandler
    
    event=&quot;onclick&quot;
    
    submit=&quot;true&quot;
    
    <span style="color:#ff0000;"><strong>refreshMode=&quot;complete&quot; (fails)&nbsp;</strong></span><strong>refreshMode=&quot;partial&quot; refreshId=&quot;computedField1&quot; (work)</strong>&gt;</div>
    
    &lt;xp:this.action&gt;&lt;![CDATA[#{javascript:getComponent(&quot;dialog1&quot;).hide();}]]&gt;&lt;/xp:this.action&gt;
    
    &lt;/xp:eventHandler&gt;&lt;/xp:button&gt;&lt;/xe:dialogButtonBar&gt;&lt;/xe:dialog&gt;
    
    &lt;/xp:view&gt;