Jahia Dev Forum > GWT classe override...

0 (0 Good)
0 (0 Bad)

GWT classe override in a simple Jahia module

by  bonniny »  2012/10/02 14:37

Hello,

I would try to override a class (EditModeDNDListener) in package org.jahia.ajax.gwt.client.widget.edit in a simple Jahia Module. But it doesn't seem to work. I emptied the work folder, checked the right deployment class. I have a System.out.println simple line but it never appeared.

Is this package in the GWT cache ? Is it necessary to recompile the GWT module "org.jahia.ajax.gwt.module.edit.Edit"  ? Any other idea ? Mistakes ?

Thank you for your help !

Regards

Yann

  • GWT classe override in a simple Jahia module
    2012/10/02 14:37

    bonniny <p> Hello,</p> <p> I would try to override a class (EditModeDNDListener) in package org.jahia.ajax.gwt.client.widget.edit in a simple Jahia Module. But it doesn&#39;t seem to work. I emptied the work folder, checked the right deployment class. I have a System.out.println simple line but it never appeared.</p> <p> Is this package in the GWT cache ? Is it necessary to recompile the GWT module &quot;org.jahia.ajax.gwt.module.edit.Edit&quot;&nbsp; ? Any other idea ? Mistakes ?</p> <p> Thank you for your help !</p> <p> Regards</p> <p> Yann</p>

  • Number of messages  8
    Registration date Oct 2, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: GWT classe override in a simple Jahia module

    by  shyrkov »  2012/10/22 22:05

    Hello Yann,

     

    the org.jahia.ajax.gwt.client.widget.edit.EditModeDNDListener is a client side GWT class, meaning, it is compiled by the GWT compiler into a JavaScript code (org.jahia.ajax.gwt.module.edit.Edit module).

    So, "overriding" the class by simply copyiong the compiled Java class into WEb-INF/classes is not working.

    You need to compile Jahia from source for such purpose.

     

    If you think, the changes in the EditModeDNDListener can be considered as enhancements of bug fixes, do not hesitate to file a JIRA ticket so that they can be potentially incorporated into Jahia code.

    Kind regards

    Sergiy

  • Re: GWT classe override in a simple Jahia module
    2012/10/22 22:05

    shyrkov <p> Hello Yann,</p> <p> &nbsp;</p> <p> the org.jahia.ajax.gwt.client.widget.edit.EditModeDNDListener is a client side GWT class, meaning, it is compiled by the GWT compiler into a JavaScript code (org.jahia.ajax.gwt.module.edit.Edit module).</p> <p> So, &quot;overriding&quot; the class by simply copyiong the compiled Java class into WEb-INF/classes is not working.</p> <p> You need to compile Jahia from source for such purpose.</p> <p> &nbsp;</p> <p> If you think, the changes in the EditModeDNDListener can be considered as enhancements of bug fixes, do not hesitate to file a <a href="https://jira.jahia.org/secure/CreateIssue.jspa?pid=10000&amp;issuetype=1&amp;Create=Create">JIRA ticket</a> so that they can be potentially incorporated into Jahia code.</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Oct 22, 2012
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page