Error: View-Presenter binding in packages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error: View-Presenter binding in packages

Dmitry Zamotkin-3
Hello, all!

1. Create subclass of (Composite)Presenter MyPresenter.
2. Create 'Default view' for MyPresenter.
3. Create new package MyPackage and place there MyPresenter.
4. Use PAX source format for this package.
5. Rename MyPresenter to BuggyPresenter.
6. Save MyPackage changes. Changes are saved in MyPackage.pax, but
MyPresenter.Default view.vu is not renamed to BuggyPresenter.Default
view.vu.
7. Uninstall MyPackage.
6. Try to load MyPackage.pax. Here is error: '[path]\BuggyPresenter.Default
view.vu' - Cannot be found.

Dmitry


Reply | Threaded
Open this post in threaded view
|

Re: Error: View-Presenter binding in packages

Keith Alcock
Since Dmitry mentions this problem, maybe I can chime in with one that
might be related.  Unfortunately, I don't have a step-by-step example
handy.  If I did, I'm sure that the numbers would be sequential and
increasing ;)

We have a large project that is broken down into several different
packages all having views of their own and some using view classes that
are contained in other packages (if that makes a difference).  Each
package is saved in a separate directory and all are in pax format.  At
various times we get complaints from Dolphin about views not being able
to be found.  It is often during dependency checking that happens either
when packages are saved or when the application is being packaged for
deployment.  Sometimes the "MyPresenter show" does not want to work
either.  Sorry for the vagueness.  The problem is often solved by doing
a fileIn of the very popular nothing.st file from a workspace window.
That seems to set the current directory to the place where Dolphin is
trying to find the view.  If the problem occurs during application
deployment, Dolphin just exits and deployment must be started anew.

One day I tried to track down the problem and it seemed like the system
was not able to keep track of the package directory when looking for the
views.  It only knows of the view name and the presenter, but doesn't
know that the presenter is in a package that may be based in a different
directory.

If anyone has any insight into this, please write.


Keith Alcock


Dmitry Zamotkin wrote:

>
> Hello, all!
>
> 1. Create subclass of (Composite)Presenter MyPresenter.
> 2. Create 'Default view' for MyPresenter.
> 3. Create new package MyPackage and place there MyPresenter.
> 4. Use PAX source format for this package.
> 5. Rename MyPresenter to BuggyPresenter.
> 6. Save MyPackage changes. Changes are saved in MyPackage.pax, but
> MyPresenter.Default view.vu is not renamed to BuggyPresenter.Default
> view.vu.
> 7. Uninstall MyPackage.
> 6. Try to load MyPackage.pax. Here is error: '[path]\BuggyPresenter.Default
> view.vu' - Cannot be found.
>
> Dmitry


Reply | Threaded
Open this post in threaded view
|

Re: Error: View-Presenter binding in packages

Blair McGlashan
In reply to this post by Dmitry Zamotkin-3
"Dmitry Zamotkin" <[hidden email]> wrote in message
news:9g9j1t$jlf$[hidden email]...

> Hello, all!
>
> 1. Create subclass of (Composite)Presenter MyPresenter.
> 2. Create 'Default view' for MyPresenter.
> 3. Create new package MyPackage and place there MyPresenter.
> 4. Use PAX source format for this package.
> 5. Rename MyPresenter to BuggyPresenter.
> 6. Save MyPackage changes. Changes are saved in MyPackage.pax, but
> MyPresenter.Default view.vu is not renamed to BuggyPresenter.Default
> view.vu.
> 7. Uninstall MyPackage.
> 6. Try to load MyPackage.pax. Here is error:
'[path]\BuggyPresenter.Default
> view.vu' - Cannot be found.

Thanks Dmitry. Recorded as defect 279.

Regards

Blair