org.apache.wicket.Component.setVisibilityAllowed(boolean) is for that purpose.

if component.isVisibleInHierachy() returns false then the component is
not rendered.
What exactly is the problem with setVisible(false) ?

On Thu, Aug 11, 2011 at 12:59 PM, Lurtz Nazgul <lu...@ymail.com> wrote:
> 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.



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to