2012-08-02 28 views
1

我正在定製Alfresco Share for Business目的。所以我定製並覆蓋了默認的登錄頁面。但是現在我想以與ALfresco Share相同的方式顯示無效登錄消息。通過核心文件,我發現它使用了ALfresco.Util.PopupmanagerAlfresco.Util.Message。所以,我包括alfresco.js文件,並從slingshot-login.ftl它採用ALfresco.Util.Popupmanager.displayprompt複製的代碼的一部分,但是當我部署它,呈現在頁面併發出無效登錄我得到了以下錯誤:Alfresco分享:在我的自定義登錄頁面中使用ALfresco.Util.PupupManager

Alfresco.messages.global is null var globalMsg = 
    Alfresco.messages.global[p_messageId]; 

請幫助。

回答

1

什麼是您的p_messageId

這是應該工作:

Alfresco.util.PopupManager.displayPrompt(
{ 
    text: "My message here" 
});