You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by "Andun Sameera Liyanagunawardana (JIRA)" <ji...@apache.org> on 2013/04/02 10:35:15 UTC

[jira] [Commented] (OPENMEETINGS-507) Error message is shown when user save the Profile settings

    [ https://issues.apache.org/jira/browse/OPENMEETINGS-507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619621#comment-13619621 ] 

Andun Sameera Liyanagunawardana commented on OPENMEETINGS-507:
--------------------------------------------------------------

I have deeply looked in to this issue. When the "Save"  button is clicked, following code in the /singlewebapp/WebContent/src/modules/conference/popups/rpcerrorDialog.lzx is executed. That is responsible to show the pop up message.

<class name="contentSaveWindow" extends="baseErrorDialog">
	
    <attribute name="saveObj" value="null" />
    <attribute name="refObj" value="null" />
    <attribute name="processNextIndex" value="0" type="number" />
    <attribute name="errorid" value="0" type="number" />
    
    <handler name="oninit">
        lz.ModeManager.makeModal(this);
        if ($debug) Debug.write("contentsavewindow: ",errorid);
        this.startSave();
    </handler>
    
    <handler name="onclose">
        lz.ModeManager.release(this);
    </handler>
    
    <method name="startSave">
    	<![CDATA[
    	for (var i=0;i<this.saveObj.length;i++){
    		this.saveObj[i].prepareCall();
    	}
    	this.processNext();
    	]]>
    </method>
	
    <method name="errorByCode" args="eCode">
	this.errorid = eCode;
	this.getErrorByCode.doCall();
    </method>
    
    <method name="processNext">
    	<![CDATA[
    	//Debug.write("processNext: ",this.saveObj.length,this.processNextIndex);
    	if (this.saveObj.length>this.processNextIndex){
    		this.saveObj[this.processNextIndex].returnObj=this;
    		this.saveObj[this.processNextIndex].doCall();
    		this.processNextIndex++;
    	} else {
    		//Debug.write("update process complete");
    		this.refObj.onsavecompleted.sendEvent();
                this.close();
    	}
    	]]>
    </method>
	
    <method name="doCallBack">
	this.close();
    </method>
	
    <simpleLabelButton name="_btn" labelid="333" width="100" x="$once{ parent.width-104 }" 
		y="$once{ parent.height-24 }" onclick="parent.doCallBack();" /> 
	
</class>

I think the pop up of this dialog is not caused by a error. But the false content shown in the dialog is causing the problem. Basically this pop up message is showed to indicated the the Save process is completed. So the problem I found is,

-Message goes invisible just after it shows
-The title and content of the message is a error message while in this particular context it is showed to indicated the completion of the save process.

The first problem can be easily corrected by removing the this.close(); call in the processNext method. But what should be the way to correct the second problem ? Can we create a save completion dialog by extending baseErrorDialog ?

Thanks
AndunSLG

                
> Error message is shown when user save the Profile settings 
> -----------------------------------------------------------
>
>                 Key: OPENMEETINGS-507
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-507
>             Project: Openmeetings
>          Issue Type: Bug
>            Reporter: Vasiliy Degtyarev
>            Priority: Minor
>
> Go to the openmeetings Profile tab and select "Edit settings". Click on "Save" button and observe. Error message is shown.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira