Am 11.08.2011 11:59, schrieb Lurtz Nazgul:
Hi, Is it possible not to render a component for security issues.
I know i can use IAuthorizationStrategy for this but i want to to it manually

I don't need just setVisible(false), i really need not to render that component.
I don't know which method to override. Below code gives error.

TextField nameField = new TextField<String>("name", new 
PropertyModel<String>(this,
                 "name")) {
             @Override
             protected void onRender(MarkupStream markupStream) {
}
         };

Any way ?
Thanks.
Maybe you can add a placeholder (WebMarkupContainer or something). Add then you could use replace in onBeforeRender. If this is not allowed you don't replace the placeholder.

Hth
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to