mff-uk / odcs

ODCleanStore
1 stars 11 forks source link

DPU Configuration - getConfiguration() is called when selecting DPU template, why? #1289

Closed jakubklimek closed 10 years ago

jakubklimek commented 10 years ago

on ODCS, In DPU Templates:

Notice that it accesses ARES Updates DPU!!

tomas-knap commented 10 years ago

When clicking on Ares Updates or Buyers' profile DPU template in the tree, the error above occurs. The error says that the configuration is taken from the dialog, but the dialog is not yes initialized, so when getting and parsing number from the field it throws an exception as above. That is probably the problem.

Why is the method getConfiguration() called when clicking on the DPU template?

skodapetr commented 10 years ago

The problem is that Frontend set the DPU. This invokes the isChanged handler and this cause the call of ConfigDialog.isConfigChanged method and then getConfiguration method, before the frontend actually set the configuration.

I add check which automatically return false as an answer for isConfigChanged , in case that the configuration has not been set yet.