[Cartoweb-dev] [Bug 1224] New: extended coreplugin and ajax incompatibility

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Dec 21 02:15:24 EST 2005


           Summary: extended coreplugin and ajax incompatibility
           Product: CartoWeb
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P3
         Component: Core
        AssignedTo: cartoweb-dev at lists.maptools.org
        ReportedBy: oliver.christen at camptocamp.com

An issue happen when using ajax with an extended coreplugin (or plugin).
Extending a corepugin (or plugin) force you to duplicate the part of code from
the parent class that should still be used. But when using ajax to call a
plugin, only the data (parameters) concerning that plugin alone is sent back to
the server. 
This will cause problem because, when the extended coreplugin (or plugin) react
to the ajax call, this will force the parent plugin to react too (because of the
duplicate the part of code). But since ajax only returned the parameters of the
extended plugin and NOT the ones of the parent coreplugin (or plugin), the
parent plugin will crash.

Possible solution, implement ajax class inheritance, meaning, when triggering an
ajax response, also fire up the ajax return function for the parent plugin.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.

More information about the Cartoweb-dev mailing list