I have changed.
Change tested OK.

thanks
--
@Component
public class Index extends Page {

    @Resource(name="testService")
    private TestService testService;

    private String stes="initdat";
    private String title="title";

    public Index(){
        //When you set here, nested error.
    }

    public void onGet(){
        stes = "onGet:" + testService.getTestMessage();
        System.out.println(stes);
    }

    public void onRender(){
        stes = "onRender:" + testService.getTestMessage();
        System.out.println(stes);
    }

    public void onInit(){
        stes = "onInit:" + testService.getTestMessage();
        System.out.println(stes);
        addModel("stes",stes);
    }

}

2011/2/9 tomasz bandura <[email protected]>

> I modified a little your example ( for spring 3.0 but it shouldn't any
> meaning)
>
>

Reply via email to