Hi,

I have build a RestrictedVisibility Mixin which shows or hides an entire component by returning true or false in the @SetupRender method [1]. This works well but I just realized there is one drawback. When I return true, setup render skips to the next step (@BeginRender) where I would like it to continue down the line so @SetupRender of the component it is mixed in is also executed.

I have partially solved this by annotating the mixing with @MixinAfter, but now I execute the setup render methods of components that are never shown which not ideal.

Is there another return type or another way to achieve this? Or are there better ways to achieve my visibility restriction.

Thanks,
Joost

[1] (simplified)
@SetupRender
private Object setup() {
       if(showComponent) {
               return true;
       }
       return false;
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to