Collection popup shows alert as "i.contentWindow is null" while closing

2013-05-15
2013-09-14
  • Vijayakumar

    Vijayakumar - 2013-05-15

    Hi,

    Using Html Text editor in View contains a collection list, while closing a pop-up for collection it shows a alert as "i.contentWindow is null".

    Using normal text field in View it works fine.

    Please help. Thanks in advance.

    Vijayakumar

     
  • Javier Paniza

    Javier Paniza - 2013-05-17

    Hi Vijayakumar,

    thanks for reporting. I think this issue is related with this known bug:
    https://sourceforge.net/p/openxava/bugs/330/

    If you want, add a comment in this bug talking about your case to revise it too when we'll fix the bug.


    Help others in this forum as I help you.
    Need more help? Get OpenXava professional support.

     
  • Gustavo LK

    Gustavo LK - 2013-05-28

    Hi
    Is not related with sections or collections. Try this very simple class:

    @Entity
    public class TestHtml
    {

    @Id 
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer id;
    
    @Column(length=80)
    private String texto;
    
    @Column @Lob @Stereotype("HTML_TEXT")
    private String htmlText;
    
    public String getHtmlText() {
        return htmlText;
    }
    
    public void setHtmlText(String htmlText) {
        this.htmlText = htmlText;
    }
    
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public String getTexto()
    {
        return texto;
    }
    
    public void setTexto(String texto)
    {
        this.texto = texto;
    }
    

    }

    I alwas get "i.contentWindow is null" popup when switching from detail view to list view. When this happens the view remains with loading icon and text until a page refresh.
    This is happening since version 4.6.1 ( in 4.7.1 the same happens ) and stop me from updating my OX installation. I have tested it with FF 16.0.1 Linux, FF 16.0.2 Windows and Chrome 27 Windows.

     
  • Gustavo LK

    Gustavo LK - 2013-05-29

    I've tried changing the following line in the file web/xava/editors/js/HtmlEditor.js

    CKEDITOR.instances[instance].destroy(false); // Needs to be false, otherwise calculated properties in the same view reset editor content

    Results:
    1) if the parameter is false occurs the error mentioned in this thread
    2) if the parameter is true the following happens: when editing the field HTML_TEXT and then saving, changes made disappear from the html editor but are recorded in the database anyway.

     
  • Javier Paniza

    Javier Paniza - 2013-05-30

    Hi Gustavo,

    if the parameter is true the following happens: when editing the field
    HTML_TEXT and then saving, changes made disappear from the html

    That is just a bug fixed in OX4.6.1


    Help others in this forum as I help you.
    Need more help? Get OpenXava professional support.

     
  • Gustavo LK

    Gustavo LK - 2013-05-30

    Hi javier
    Exactly, the bug was fixed in version 4.6.1 but the fix generated a new bug ( i.contentWindow is null popup ). I really want to use the new 4.7.1 version but this bug prevents me from doing so. I've changed parameter back to "true" ( like pre 4.6.1 versions ) in order to use version 4.7.1
    That's because I prefer the older bug,

    I've also tried letting parameter = "false" and sorrounding statemente with a try-catch block, with empty catch block, in order to ignore the exception generated by ckeditor but no work at all, I get the old bug plus not writing the changes in db.

     
  • ivan.svi

    ivan.svi - 2013-09-13

    Hi, I have the same error.

    which is way to fix or replace in the project?

    Thanks in advance

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks