sorry to bother you again, but i have another problem:
i got 2views, and i want the view to change when i hit a specific button
i tried to do this by just excecuting a viewTest command defined in my commands-context.xml
commands-context.xml
Code:
<bean id="windowCommandManager"
class="org.springframework.richclient.application.support.ApplicationWindowCommandManager">
<property name="sharedCommandIds">
<list>
...
<value>testCommand</value>
...
</list>
</property>
</bean>
and
Code:
<bean id="testCommand" class="org.springframework.richclient.command.support.ShowViewCommand">
<property name="viewDescriptor" ref="testView" />
</bean>
following the pdf-documentation i found in this forum i tried to get this command in the application with
Code:
ActionCommand test =(ActionCommand)Application.instance().getActiveWindow().getCommandManager().getCommand("testCommand");
and tried test.execute() to trigger the change view command
but it doesnt work, test.getActionCommand() returns null, why is that?