Announcement Announcement Module
Collapse
No announcement yet.
Spring RCP Updating Table Content Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring RCP Updating Table Content

    Hello all

    I am very new to Spring RCP and created a view with a table like this tutorial.

    Now i want to update the content thought replacing the datastore i registered in the bean definition.

    PHP Code:
        <bean id="MarketView" class="org.springframework.richclient.application.support.DefaultViewDescriptor">    
            <
    property name="viewClass" value="simple.MainView" />
            <
    property name="viewProperties">
                <
    map>
                    <
    entry key="marketDataStore" value-ref="marketDataStore" />
                </
    map>
            </
    property>
        </
    bean>

        <
    bean id="marketDataStore" class="domain.MarketDataStore" /> 
    How can i access the datastore defined in bean definition ?

    thanks and greetings
    hetzge

  • #2
    Something like this?

    mainView.setMarketDataStore(new MarketDataStore());

    And to access the data store:

    mainView.getMarketDataStore();

    Comment

    Working...
    X