Tapestry 4 - omitting component render?

I don't think there's anything like T5's rendering phases in T4, but you could wrap the component in an If component where you evaluate privileges.

1 Well, that's business logic leaking to the view layer. Not to mention you don't have any checks done by the compiler that way and you clutter your view with ugly constructs (at least for my tastes). I have decided to override renderCoponent and it works like a charm.

But thanks for the answer anyway, Martin. – MichaÅ‚ Minicki Feb 12 '10 at 16:07.

I have a component in Tapestry 4 that should render only when user has privileges to use it's attached business code. But how would I go about doing it in Tapestry 4? I could probably override renderComponent( IMarkupWriter writer, IRequestCycle cycle ) and suppress a call to super when one doesn't have rights to use this functionality.

But this seems kind of hackish. Is there a Tapestry 4 way to do that?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions