Hi,

I'm using Environmental to passing parameters to nested components. In my
page there is:

   @SetupRender
    void onSetupRenderer() {
        environment.push(IPageParams.class, this.pageParams);
    }

    @AfterRender
    void afterRender()
    {
        environment.pop(IPageParams.class);
    }

In my nested components is:

    @Environmental
    private IPageParams pageParams;

It works fine for page rendering but when a form is submitted then the
onSetupRenderer is not called and parameters are not passed to nested
component :-(.
I have tried to use @PageAttached and @PageDettached functions which are
called for form submission too, but it doesn't work because (I think) there
is used different class loader and nested component doesn't load the data
from environmental.

Could you advice me how to put parameters to environmental for page
rendering and form submitting?

Thanks,

Marek

Reply via email to