Can we create different instance of 'View' in runtime and fire it up on the page?
The following code doesn't work properly, it will give me null pointer exception. Can anyone kind enough to correct me pls
java.lang.NullPointerExceptionCode:DefaultViewDescriptor vdesciptor = new DefaultViewDescriptor(); vdesciptor.setViewClass(MyView.class); getActiveWindow().getPage().showView(vdesciptor);
at org.springframework.richclient.application.support .AbstractApplicationPage$1.test(AbstractApplicatio nPage.java:73)
at org.springframework.core.closure.support.AbstractE lementGenerator$ObjectFinder.handle(AbstractElemen tGenerator.java:182)
at org.springframework.core.closure.support.Block.cal l(Block.java:28)
at org.springframework.core.closure.support.AbstractE lementGeneratorWorkflow.run(AbstractElementGenerat orWorkflow.java:26)
at org.springframework.core.closure.support.AbstractE lementGenerator.findFirst(AbstractElementGenerator .java:74)
at org.springframework.core.closure.support.AbstractE lementGenerator.findFirst(AbstractElementGenerator .java:69)
at org.springframework.core.closure.support.Algorithm s.findFirst(Algorithms.java:125)
at org.springframework.core.closure.support.Algorithm s.findFirst(Algorithms.java:113)
at org.springframework.core.closure.support.Algorithm sAccessor.findFirst(AlgorithmsAccessor.java:35)
at org.springframework.core.closure.support.AbstractC onstraint.findFirst(AbstractConstraint.java:51)
at org.springframework.richclient.application.support .AbstractApplicationPage.findPageComponent(Abstrac tApplicationPage.java:77)
at org.springframework.richclient.application.support .AbstractApplicationPage.showView(AbstractApplicat ionPage.java:168)


Reply With Quote